-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
tox
as a dev dependency to test perfsephone across different ve…
…rsions of python (#4) * Add `tox` as a dev dependency to test perfsephone across different versions of python * Add section in readme documenting how tox can be used to run tests
- Loading branch information
1 parent
c0e1e00
commit e663c8f
Showing
4 changed files
with
174 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,33 @@ | ||
[tox] | ||
requires = | ||
tox>=4 | ||
env_list = 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, test, lint, format, mypy | ||
|
||
commands_pre = | ||
poetry install --no-root --sync | ||
|
||
[testenv] | ||
allowlist_externals = poetry | ||
|
||
commands = | ||
poetry run pytest | ||
|
||
[testenv:format] | ||
description = check project formatting | ||
skip_install = true | ||
allowlist_externals = poetry | ||
commands = | ||
poetry run ruff format | ||
|
||
|
||
[testenv:lint] | ||
description = check project linting | ||
skip_install = true | ||
allowlist_externals = poetry | ||
commands = | ||
poetry run ruff check | ||
|
||
[testenv:mypy] | ||
allowlist_externals = poetry | ||
commands = | ||
poetry run mypy . |