-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (59 loc) · 1.39 KB
/
tox.ini
File metadata and controls
69 lines (59 loc) · 1.39 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[tox]
envlist = py38,py39,py310,py311,py312,flake8,mypy,docs
isolated_build = true
[testenv]
deps =
pytest>=6.0
pytest-cov>=2.0
numpy>=1.20.0
scipy>=1.7.0
commands =
pytest tests/ -v --cov=prime_resonance_field --cov-report=term-missing
[testenv:flake8]
deps = flake8>=3.8
commands = flake8 prime_resonance_field/ tests/
[testenv:mypy]
deps =
mypy>=0.900
numpy>=1.20.0
scipy>=1.7.0
commands = mypy prime_resonance_field/
[testenv:black]
deps = black>=21.0
commands = black --check prime_resonance_field/ tests/
[testenv:isort]
deps = isort>=5.0
commands = isort --check-only prime_resonance_field/ tests/
[testenv:docs]
deps =
sphinx>=4.0
sphinx-rtd-theme>=1.0
myst-parser>=0.15
numpy>=1.20.0
scipy>=1.7.0
commands =
sphinx-build -b html docs docs/_build/html
[testenv:benchmark]
deps =
pytest>=6.0
numpy>=1.20.0
scipy>=1.7.0
matplotlib>=3.3
pandas>=1.3
seaborn>=0.11
commands =
python -m prime_resonance_field.benchmark --quick
[flake8]
max-line-length = 88
extend-ignore = E203,W503,E501,F401
exclude = .git,__pycache__,.pytest_cache,.mypy_cache,build,dist,*.egg-info,.venv,venv,.tox
[coverage:run]
source = prime_resonance_field
omit = */tests/*,*/test_*,setup.py
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.: