33 lines
652 B
INI
33 lines
652 B
INI
# tox (https://tox.readthedocs.io/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
envlist = py310, linters
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
|
|
[isort]
|
|
profile=black
|
|
line_length = 120
|
|
|
|
[testenv]
|
|
deps =
|
|
Jinja2==3.1.2
|
|
requests==2.28.1
|
|
vcrpy==4.2.1
|
|
commands =
|
|
python -m unittest discover tests
|
|
|
|
[testenv:linters]
|
|
deps =
|
|
black
|
|
flake8
|
|
flake8-black
|
|
commands =
|
|
black --check --diff athletico
|
|
black --check --diff tests
|
|
flake8 athletico
|
|
flake8 tests |