-
Notifications
You must be signed in to change notification settings - Fork 8
/
justfile
46 lines (34 loc) · 1.31 KB
/
justfile
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
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: (poetry "install") && _install-pre-commit
update: (poetry "install")
poetry *args:
poetry {{args}}
test *args: (poetry "run" "pytest" "--cov=pydantic_partial" "--cov-report" "term-missing:skip-covered" args)
test-all: (poetry "run" "tox")
ruff *args: (poetry "run" "ruff" "check" "pydantic_partial" "tests" args)
pyright *args: (poetry "run" "pyright" "pydantic_partial" args)
lint: ruff pyright
publish: (poetry "publish" "--build")
release version: (poetry "version" version)
git add pyproject.toml
git commit -m "release: 🔖 v$(poetry version --short)" --no-verify
git tag "v$(poetry version --short)"
git push
git push --tags