Skip to content

Configure tox #1667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Start setting up tox
It is not completely working yet.
  • Loading branch information
EliahKagan committed Sep 18, 2023
commit cd052b20a71bec0d605151eeb6b7ac87fbeb3e4a
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ nbproject
.pytest_cache/
monkeytype.sqlite3
output.txt
tox.ini
3 changes: 0 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ flake8-type-checking;python_version>="3.8" # checks for TYPE_CHECKING only

pytest-icdiff
# pytest-profiling


tox
24 changes: 24 additions & 0 deletions tox.ini
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