-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
34 lines (30 loc) · 627 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[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