-
Notifications
You must be signed in to change notification settings - Fork 9
/
justfile
39 lines (31 loc) · 831 Bytes
/
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
############################################################
# All commands are to be run inside a virtual environment. #
# E.g., #
# uv run just lint #
############################################################
# check formatting via ruff
formatcheck:
ruff format --check .
# check docstring formatting via pydocstyle
docstylecheck:
pydocstyle .
# check type hints via mypy
typecheck:
mypy --strict .
# run linter via ruff
lint:
ruff check .
# run tests via pytest and coverage
test:
pytest --cov=. --cov-fail-under=100 -svv
# build docs via sphinx
docs:
make -C docs html
# run all checks
checkall:
just formatcheck
just docstylecheck
just typecheck
just lint
just test
just docs