-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (39 loc) · 1.47 KB
/
justfile
File metadata and controls
51 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
default:
just --list
[unix]
_install-pre-commit:
#!/usr/bin/env bash
if ( which pre-commit > /dev/null 2>&1 )
then
pre-commit install --install-hooks
else
echo "-----------------------------------------------------------------"
echo "pre-commit is not installed - cannot enable pre-commit hooks!"
echo "Recommendation: Install pre-commit ('brew install pre-commit')."
echo "-----------------------------------------------------------------"
fi
[windows]
_install-pre-commit:
#!powershell.exe
Write-Host "Please ensure pre-commit hooks are installed using 'pre-commit install --install-hooks'"
install: (uv "sync" "--group" "dev") && _install-pre-commit
update: (uv "sync" "--group" "dev")
uv *args:
uv {{args}}
test *args: (uv "run" "pytest" "--cov=async_signals" "--cov-report" "term-missing:skip-covered" args)
test-all: (uv "run" "tox")
ruff *args: (uv "run" "ruff" "check" "async_signals" "tests" args)
pyright *args: (uv "run" "pyright" "async_signals" args)
lint: ruff pyright
release version: (uv "version" version)
git add pyproject.toml
git commit -m "release: 🔖 v$(uv version --short)" --no-verify
git tag "v$(uv version --short)"
git push
git push --tags
version-bump version_bump: (uv "version" "--bump" version_bump)
git add pyproject.toml
git commit -m "release: 🔖 v$(uv version --short)" --no-verify
git tag "v$(uv version --short)"
git push
git push --tags