minor: update header and use pytest (#3054)

This commit is contained in:
Yineng Zhang
2025-01-22 23:45:18 +08:00
committed by GitHub
parent 9d9b482a39
commit b2bd8f444c
7 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ clean:
@rm -rf build dist *.egg-info
test:
@find tests -name "test_*.py" | xargs -n 1 python3
@find tests -name "test_*.py" | xargs -n 1 python3 && pytest tests/test_norm.py && pytest tests/test_activation.py
format:
@find src tests -name '*.cc' -o -name '*.cu' -o -name '*.cuh' -o -name '*.h' -o -name '*.hpp' | xargs clang-format -i && find src tests -name '*.py' | xargs isort && find src tests -name '*.py' | xargs black