-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
687bc47
commit ca93ee5
Showing
4 changed files
with
140 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
format-nix: | ||
alejandra . | ||
fix-format-nix: | ||
#alejandra . | ||
|
||
format-python: | ||
#black probe_src/probe_py | ||
check-format-nix: | ||
#alejandra --check . | ||
|
||
fix-ruff: | ||
#ruff format probe_src | ||
ruff check --fix probe_src | ||
|
||
check-ruff: | ||
ruff check probe_src/probe_py | ||
#ruff format --check probe_src | ||
ruff check probe_src | ||
|
||
check-mypy: | ||
cd probe_src | ||
mypy --package probe_py --strict | ||
MYPYPATH=probe_src mypy --strict --package arena | ||
MYPYPATH=probe_src mypy --strict --package probe_py | ||
#mypy --strict probe_src/libprobe | ||
|
||
compile-fresh-libprobe: | ||
make --directory=probe_src/libprobe clean | ||
make --directory=probe_src/libprobe all | ||
|
||
compile-libprobe: | ||
make --directory=probe_src/libprobe all | ||
|
||
test: | ||
#cd probe_src | ||
#make --directory=libprobe all | ||
#python -m pytest . | ||
test: compile-fresh-libprobe | ||
#cd probe_src && python -m pytest . | ||
|
||
test-dev: | ||
cd probe_src | ||
make --directory=libprobe all | ||
python -m pytest . --failed-first --maxfail=1 | ||
test-dev: compile-libprobe | ||
make --directory=probe_src/libprobe all | ||
#cd probe_src && python -m pytest . --failed-first --maxfail=1 | ||
|
||
flake-check: | ||
check-flake: | ||
nix flake check --all-systems | ||
|
||
pre-commit: fix-format-nix fix-ruff check-mypy check-flake test-dev | ||
|
||
on-push: check-format-nix check-ruff check-mypy check-flake test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters