Skip to content
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

Add tox-ini-fmt pre-commit hook #536

Merged
merged 1 commit into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ repos:
- id: setup-cfg-fmt
args:
- --include-version-classifiers
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.0
hooks:
- id: tox-ini-fmt
- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
hooks:
Expand Down
25 changes: 14 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[tox]
envlist =
py{37,38,39,310,311}
requires =
tox>=4.2
env_list =
py{311, 310, 39, 38, 37}

[testenv]
deps =
-r requirements/{envname}.txt
set_env =
PYTHONDEVMODE = 1
commands =
python \
-W error::ResourceWarning \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-m coverage run \
-m pytest -p no:randomly {posargs:tests}
deps = -r requirements/{envname}.txt
setenv =
PYTHONDEVMODE=1
python \
-W error::ResourceWarning \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-m coverage run \
-m pytest -p no:randomly {posargs:tests}