123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- [tox]
- envlist = flake8,py310,bandit
- [testenv]
- deps =
- coverage
- pytest
- pytest-cov
- pycodestyle>=2.0
- commands =
- coverage erase
- pip install -r {toxinidir}/requirements.txt
- pytest --cov=tests --cov=hfapi --cov-report=term-missing --cov-config=setup.cfg
- coverage report
- coverage html -d htmlcov-{envname}
- [testenv:autopep8]
- basepython = python3
- skip_install = true
- deps =
- autopep8>=1.5
- commands =
- autopep8 --in-place --aggressive -r hfapi/
- [testenv:flake8]
- basepython = python3
- skip_install = true
- deps =
- flake8
- flake8-bugbear
- flake8-colors
- flake8-typing-imports>=1.1
- pep8-naming
- commands =
- flake8 hfapi/ tests/ setup.py
- [testenv:bandit]
- basepython = python3
- deps =
- bandit
- commands =
- bandit -r hfapi/
- [flake8]
- exclude =
- .tox,
- .git,
- __pycache__,
- docs/source/conf.py,
- build,
- dist,
- tests/fixtures/*,
- *.pyc,
- *.egg-info,
- .cache,
- .eggs
- max-complexity = 10
- import-order-style = google
- application-import-names = flake8
- max-line-length = 120
- ignore =
- B008,
- N803,
- N806,
- E126
|