2022-06-17 20:04:12 +02:00
|
|
|
[tox]
|
2023-05-07 17:06:50 +02:00
|
|
|
envlist = codestyle-coverage-pylint
|
2022-06-17 20:29:48 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/gadjo/{env:BRANCH_NAME:}
|
2022-06-17 20:04:12 +02:00
|
|
|
|
|
|
|
[testenv]
|
2023-05-07 17:06:50 +02:00
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
nocoverage: False
|
|
|
|
setenv =
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
JUNIT=--junitxml=junit-{envname}.xml
|
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=gadjo/
|
2022-06-17 20:04:12 +02:00
|
|
|
deps =
|
2023-05-07 17:06:50 +02:00
|
|
|
pytest
|
|
|
|
pytest-django
|
|
|
|
WebTest
|
|
|
|
psycopg2-binary
|
|
|
|
psycopg2
|
2023-05-07 16:42:07 +02:00
|
|
|
pyquery
|
2022-06-17 20:04:12 +02:00
|
|
|
codestyle: pre-commit
|
2023-05-07 17:06:50 +02:00
|
|
|
coverage: pytest-cov
|
2023-10-03 06:19:16 +02:00
|
|
|
pylint: pylint<3
|
|
|
|
pylint: astroid<3
|
2022-06-17 20:04:12 +02:00
|
|
|
pylint: pylint-django
|
2023-04-06 11:34:55 +02:00
|
|
|
pylint: django>=3.2,<3.3
|
2024-01-09 17:57:45 +01:00
|
|
|
allowlist_externals =
|
|
|
|
./pylint.sh
|
2022-06-17 20:04:12 +02:00
|
|
|
commands =
|
2023-05-07 17:06:50 +02:00
|
|
|
pytest {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
|
2022-06-17 20:04:12 +02:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
|
|
|
pylint: ./pylint.sh gadjo/
|