-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (40 loc) · 901 Bytes
/
justfile
File metadata and controls
52 lines (40 loc) · 901 Bytes
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
52
set no-exit-message := true
test-args := env("TEST_ARGS", "")
[private]
default:
@just --list --unsorted --justfile {{ justfile() }}
# run linters with autofix
[group("Linting")]
lint:
ruff format . && ruff check --fix .
# run linters (check only)
[group("Linting")]
lint-check:
ruff format --check . && ruff check .
# run type checking
[group("Linting")]
lint-types:
mypy universalasync
# run tests
[group("Testing")]
test *args:
pytest {{ trim(test-args + " " + args) }}
# run ci checks (without tests)
[group("CI")]
ci-lint: lint-check lint-types
# run ci checks
[group("CI")]
ci *args: ci-lint (test args)
# docs
# build documentation
[group("Documentation")]
docs:
mkdocs build
# serve documentation
[group("Documentation")]
docs-serve:
mkdocs serve
# develop documentation with live reload
[group("Documentation")]
docs-dev:
mkdocs serve --livereload