project1/tox.ini

50 lines
900 B
INI

[flake8]
max-line-length = 88
[tox]
envlist = py37, py38, py39, py310, py311, py312, flake8, mypy, black, pylint, isort, ruff, bandit
isolated_build = True
skip_missing_interpreters = True
[testenv]
deps =
pytest
hypothesis
commands = python -m pytest
[testenv:flake8]
deps =
flake8
flake8-bugbear
skip_install = True
commands = flake8 --max-complexity 9 tests/ fib.py
[testenv:black]
deps = black
skip_install = True
commands = black --check --diff tests/ fib.py
[testenv:mypy]
deps = mypy
skip_install = True
commands = mypy --ignore-missing-imports fib.py
[testenv:pylint]
deps = pylint
skip_install = True
commands = pylint fib.py
[testenv:isort]
deps = isort
skip_install = True
commands = isort --check --profile=black fib.py
[testenv:ruff]
deps = ruff
skip_install = True
commands = ruff check fib.py
[testenv:bandit]
deps = bandit
skip_install = True
commands = bandit fib.py