1
0
Fork 0
operator-repo/tox.ini

61 lines
879 B
INI
Raw Permalink Normal View History

2023-08-03 08:52:14 +00:00
[tox]
envlist = autoflake, isort, black, pylint, mypy, bandit, py{39,310,311,py39}
2023-08-19 09:26:58 +00:00
isolated_build = True
2023-08-03 08:52:14 +00:00
2023-08-18 17:55:18 +00:00
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
2023-08-03 08:52:14 +00:00
[testenv]
2023-08-19 09:26:58 +00:00
groups =
test
2023-08-03 08:52:14 +00:00
commands =
pytest --cov-report term-missing --cov-fail-under=100 --cov=operator_repo -v tests/
2023-08-19 09:13:58 +00:00
[testenv:autoflake]
groups =
lint
commands =
autoflake --check src tests
[testenv:isort]
groups =
lint
commands =
isort --check src tests
[testenv:black]
groups =
lint
commands =
black --check src tests
2023-08-19 09:13:58 +00:00
[testenv:pylint]
2023-08-19 09:26:58 +00:00
groups =
lint
2023-08-19 09:13:58 +00:00
commands =
pylint src
[testenv:mypy]
2023-08-19 09:26:58 +00:00
groups =
test
lint
2023-08-19 09:13:58 +00:00
commands =
2023-08-18 10:44:43 +00:00
mypy --strict src tests
2023-08-19 09:13:58 +00:00
[testenv:bandit]
2023-08-19 09:26:58 +00:00
groups =
lint
2023-08-19 09:13:58 +00:00
commands =
bandit -c pyproject.toml -r .
2023-08-20 08:11:13 +00:00
[testenv:format]
groups =
lint
commands =
autoflake --in-place src tests
isort src tests
black src tests