-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (48 loc) · 1.09 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
53
54
55
56
57
58
59
[tox]
# list of env that will be executed when running `tox` without any argument
envlist =
lint
tests
[testenv:tests]
description = Run the tests of the Python package
deps =
ase
pytest
commands =
pytest {posargs}
[testenv:lint]
description =
lint the Python code with flake8 (code linter), black (code formatter), and
isort (sorting of imports)
package = skip
deps =
flake8
flake8-bugbear
black
blackdoc
isort
commands =
flake8 --extend-exclude "*/build/*" src tests
black --check --diff src tests
blackdoc --check --diff src tests
isort --check-only --diff --extend-skip-glob "*/build/*" src tests
[testenv:format]
description = Abuse tox to do actual formatting on all files.
package = skip
deps =
black
blackdoc
isort
commands =
black src tests
blackdoc src tests
isort src tests
[testenv:docs]
description = Invoke sphinx-build to build the HTML docs
deps =
sphinx
commands =
sphinx-build -d docs/build/doctrees -W -b html docs/src docs/build/html
[flake8]
max_line_length = 88
extend-ignore = E203