Skip to content

Commit

Permalink
Add tox-ini-fmt pre-commit hook (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Apr 7, 2023
1 parent b4fdcc3 commit b5d223c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
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
23 changes: 13 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
[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 pytest {posargs:tests}
deps = -r requirements/{envname}.txt
setenv =
PYTHONDEVMODE=1
python \
-W error::ResourceWarning \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-m pytest {posargs:tests}

0 comments on commit b5d223c

Please sign in to comment.