| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d46ba96 commit cd052b2
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,4 +24,3 @@ nbproject | |||
| 24 | 24 | .pytest_cache/ | |
| 25 | 25 | monkeytype.sqlite3 | |
| 26 | 26 | output.txt | |
| 27 | - tox.ini | ||
| 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 | |||
| 7 | 7 | ||
| 8 | 8 | pytest-icdiff | |
| 9 | 9 | # pytest-profiling | |
| 10 | - | ||
| 11 | - | ||
| 12 | - tox | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,24 @@ | |||
| 1 | + [tox] | ||
| 2 | + requires = tox>=4 | ||
| 3 | + env_list = py{37,38,39,310,311,312}, lint, mypy, black | ||
| 4 | + | ||
| 5 | + [testenv] | ||
| 6 | + description = Run unit tests | ||
| 7 | + package = wheel | ||
| 8 | + extras = test | ||
| 9 | + commands = pytest --color=yes {posargs} | ||
| 10 | + | ||
| 11 | + [testenv:lint] | ||
| 12 | + description = Lint via pre-commit | ||
| 13 | + basepython = py39 | ||
| 14 | + commands = pre-commit run --all-files | ||
| 15 | + | ||
| 16 | + [testenv:mypy] | ||
| 17 | + description = Typecheck with mypy | ||
| 18 | + basepython = py39 | ||
| 19 | + commands = mypy -p git | ||
| 20 | + | ||
| 21 | + [testenv:black] | ||
| 22 | + description = Check style with black | ||
| 23 | + basepython = py39 | ||
| 24 | + commands = black --check --diff git | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments