ihatemoney/tox.ini
Baptiste Jonglez 2d5240d3d6 Use fixed version of important dev tools to avoid failing CI
Also use the "black" profile for isort.
2023-01-31 17:58:16 +01:00

40 lines
834 B
INI

[tox]
envlist = py311,py310,py39,py38,py37,lint_docs
skip_missing_interpreters = True
[testenv]
passenv = TESTING_SQLALCHEMY_DATABASE_URI
commands =
python --version
py.test --pyargs ihatemoney.tests
deps =
-e.[database,dev]
# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp
[testenv:lint_docs]
commands =
black --check --target-version=py37 .
isort --check --profile black .
flake8 ihatemoney
vermin --no-tips --violations -t=3.7- .
sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
-e.[dev,doc]
changedir = {toxinidir}
[flake8]
exclude = migrations
max_line_length = 100
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
[travis]
python =
3.7: py37
3.8: py38, lint_docs
3.9: py39