tempesta-tech / tempesta-test

Test suite for Tempesta FW
10 stars 4 forks source link

black and isort formatters to pre-commit #327

Closed RomanBelozerov closed 1 year ago

RomanBelozerov commented 1 year ago

Removed wemake linter and added black and isort formatters in pre-commit hook . Formatted all files with black and isort. Hid formatting commit in git blame.

Run setup.sh again or use the git config blame.ignoreRevsFile .git-blame-ignore-revs command to hide the formatting commit.

b3b commented 1 year ago

Nice, hooks works locally and GitHub blame view hide the reformatting commit.

b3b commented 1 year ago

All 415 tests passed on our CI:

./run_tests.py -L Shows only 155 tests - it looks strange

Shows 415 on my machine.

./run_tests.py -L 2>/dev/null | grep -v "Root privileges are required" | wc -l
415