Skip to content

Commit

Permalink
Add tox-ini-fmt pre-commit hook (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Apr 7, 2023
1 parent 604f72b commit 31ab683
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
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
@@ -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 {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 {posargs:tests}

0 comments on commit 31ab683

Please sign in to comment.