-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
53 lines (46 loc) · 1.08 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[tox]
isolated_build = True
envlist = py38, py39, py310
[testenv]
# means we'll run the equivalent of `pip install .[dev]`, also installing pytest
# and the linters from pyproject.toml
extras = dev
# Enable package caching
package_cache = .tox/cache
# Run both pytest and coverage since pytest was initialized with the --cov option in the pyproject.toml
# while black, isort and flake8 are also i
commands =
black --check src
isort src --profile=black
isort docs/neural_modeling --profile=black
isort docs/background --profile=black
isort docs/neural_modeling --profile=black
flake8 --config={toxinidir}/tox.ini src
pytest --cov=nemos --cov-report=xml
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[flake8]
max-complexity = 10
max-line-length = 120
exclude = '''
((\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.md
| \.toml
| \.cfg
| \.txt
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| examples
| __init__.py # Exclude __init__.py files
))'''
extend-ignore = W605, E203, DAR