tox.ini
[tox]
envlist = lint,{py39,py310,py311,py312}-pytest
isolated_build = true
skip_missing_interpreters = true
[testenv]
deps =
pytest
yfinance
commands =
pytest tests/
[testenv:lint]
basepython = python3.10
deps =
flake8
flake8-bugbear
flake8-docstrings
flake8-bandit
black
commands =
flake8 src tests
black --check src tests
; tools configuration
[flake8]
max-line-length = 130
exclude = .git,__pycache__,.venv,tmp/cache
ignore = C, T003, M502, N802, F405, T001, D100, D101, D104, D105, D107, E203
per-file-ignores =
./tests/*: D100,D101,D102,D103
[pytest]
addopts = -ra --tb=short