-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tox-ini-fmt pre-commit hook (#487)
- Loading branch information
1 parent
eaa4214
commit bdadb8b
Showing
2 changed files
with
24 additions
and
18 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
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
[tox] | ||
envlist = | ||
py37-django{32} | ||
py38-django{32,40,41,42} | ||
py39-django{32,40,41,42} | ||
py310-django{32,40,41,42} | ||
py311-django{41,42} | ||
requires = | ||
tox>=4.2 | ||
env_list = | ||
py311-django{42, 41} | ||
py311-codegen | ||
py310-django{42, 41, 40, 32} | ||
py39-django{42, 41, 40, 32} | ||
py38-django{42, 41, 40, 32} | ||
py37-django{32} | ||
|
||
[testenv] | ||
# Ignoring 'path is deprecated' from certifi: https://github.com/certifi/python-certifi/issues/192 | ||
deps = | ||
-r requirements/{envname}.txt | ||
set_env = | ||
PYTHONDEVMODE = 1 | ||
commands = | ||
python \ | ||
-W error::ResourceWarning \ | ||
-W error::DeprecationWarning \ | ||
-W error::PendingDeprecationWarning \ | ||
-W 'ignore:path is deprecated. Use files() instead.:DeprecationWarning' \ | ||
-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 \ | ||
-W 'ignore:path is deprecated. Use files() instead.:DeprecationWarning' \ | ||
-m coverage run \ | ||
-m pytest {posargs:tests} | ||
|
||
[testenv:py311-codegen] | ||
deps = | ||
commands = | ||
python ./scripts/generate_default_media_types.py --check | ||
deps = |