mirror of
https://github.com/trussed-dev/fido2-tests.git
synced 2026-06-20 04:16:30 -07:00
Add isort to make check/fix
This commit is contained in:
@@ -38,9 +38,10 @@ update:
|
||||
# ensure this passes before commiting
|
||||
check:
|
||||
$(BIN)/black --check tests/
|
||||
$(BIN)/isort --check-only --recursive tests/
|
||||
|
||||
# automatic code fixes
|
||||
fix: black
|
||||
fix: black isort
|
||||
|
||||
black:
|
||||
$(BIN)/black tests/
|
||||
|
||||
@@ -39,13 +39,11 @@ pytest --sim tests/standard
|
||||
|
||||
# Contributing
|
||||
|
||||
We use `black` to prevent code formatting discussions.
|
||||
We use `black` and `isort` to prevent code formatting discussions.
|
||||
|
||||
The `make venv` setup method installs git pre-commit hooks that check conformance automatically.
|
||||
|
||||
You can also `make check` and `make fix` manually, or use an editor plugin.
|
||||
|
||||
Additionally, please run `make isort` before committing.
|
||||
You can also `make check` and `make fix` manually, or use an editor plugins.
|
||||
|
||||
# License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user