-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
39 lines (30 loc) · 1.09 KB
/
Justfile
File metadata and controls
39 lines (30 loc) · 1.09 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
default: tests
# normalize Python code
black:
pipx run black delb_existdb tests
# verifies testable code snippets in the HTML documentation
doctest:
pipx run hatch run docs:clean
pipx run hatch run docs:doctest
# code & data & document linting with doc8 & flake8 & yamllint
lint:
pipx run doc8 --ignore-path docs/build --max-line-length=80 docs
pipx run hatch run linting:check
pipx run yamllint $(find . -name "*.yaml" -or -name "*.yml")
# run static type checks with mypy
mypy:
pipx run hatch run mypy:check
# run the complete testsuite
pytest:
pipx run hatch run tests:check
# run the complete testsuite and report code coverage
pytest-coverage-report:
pipx run hatch run tests:coverage-report
# watch, build and serve HTML documentation at 0.0.0.0:8000
serve-docs:
mkdir -p {{ justfile_directory() }}/docs/_build/html || true
pipx run hatch run docs:serve
tests: black lint mypy pytest doctest
# run the testsuite against a wheel (installed from $WHEEL_PATH); intended to run on a CI platform
test-wheel $WHEEL_PATH:
pipx run hatch run test-wheel:check