Debian Codegraph @

Makefile

raw
1
2 # lists all available targets
3 list:
4 @sh -c "$(MAKE) -p no_targets__ | \
5 awk -F':' '/^[a-zA-Z0-9][^\$$#\/\\t=]*:([^=]|$$)/ {\
6 split(\$$1,A,/ /);for(i in A)print A[i]\
7 }' | grep -v '__\$$' | grep -v 'make\[1\]' | grep -v 'Makefile' | sort"
8 # required for list
9 no_targets__:
10
11 lint-rust:
12 cd rust && cargo fmt --all -- --check
13 cd rust && cargo clippy --tests -- -D warnings
14
15
16 format-rust:
17 cd rust && cargo fmt --all
18 cd rust && cargo clippy --tests --fix --allow-dirty -- -D warnings
19
20 dev:
21 poetry install --only main --only test --only typing --only build --only lint
22 poetry run maturin develop
23
24 lint:
25 poetry run mypy
26 poetry run pre-commit run --all-files
27
28 test:
29 PENDULUM_EXTENSIONS=0 poetry run pytest -q tests
30 poetry run pytest -q tests
31
32 clean:
33 rm src/pendulum/*.so