-
-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
24 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,3 @@ nbproject | |
.pytest_cache/ | ||
monkeytype.sqlite3 | ||
output.txt | ||
tox.ini |
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 |
---|---|---|
|
@@ -7,6 +7,3 @@ flake8-type-checking;python_version>="3.8" # checks for TYPE_CHECKING only | |
|
||
pytest-icdiff | ||
# pytest-profiling | ||
|
||
|
||
tox |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tox] | ||
requires = tox>=4 | ||
env_list = py{37,38,39,310,311,312}, lint, mypy, black | ||
|
||
[testenv] | ||
description = Run unit tests | ||
package = wheel | ||
extras = test | ||
commands = pytest --color=yes {posargs} | ||
|
||
[testenv:lint] | ||
description = Lint via pre-commit | ||
basepython = py39 | ||
commands = pre-commit run --all-files | ||
|
||
[testenv:mypy] | ||
description = Typecheck with mypy | ||
basepython = py39 | ||
commands = mypy -p git | ||
|
||
[testenv:black] | ||
description = Check style with black | ||
basepython = py39 | ||
commands = black --check --diff git |