-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
67 lines (63 loc) · 1.33 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
60
61
62
63
64
65
66
67
[tox]
envlist = check_lint
skipsdist = true
[testenv:clean_build]
skip_install = true
commands =
rm -rf build
bash -ec 'find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf'
description = Clean up build directories
allowlist_externals =
/bin/rm
/bin/find
/bin/grep
/bin/bash
/usr/bin/rm
/usr/bin/find
/usr/bin/grep
/usr/bin/bash
[testenv:autoformat]
deps =
black==22.6.0
isort==5.10.1
skip_install = true
commands =
; isort mpic mpi/ test/
black --extend-exclude third_party --preview .
description = Run black, and isort autoformatters.
allowlist_externals =
/bin/find
/bin/xargs
/usr/bin/find
/usr/bin/xargs
/usr/bin/bash
/usr/local/bin/bash
[testenv:check_lint]
skip_install = true
deps =
black==22.6.0
flake8==4.0.1
flake8-black==0.3.0
flake8-isort==4.1.1
pep8-naming==0.13.0
commands =
; flake8
black --check --extend-exclude third_party --preview .
description = Run flake8 and clang-tidy to check formatting
allowlist_externals =
/bin/find
/bin/xargs
/bin/bash
/usr/bin/find
/usr/bin/xargs
/usr/bin/bash
/usr/bin/clang-format
/usr/local/bin/clang-format
/usr/local/bin/bash
[testenv:pytest]
description = Invoke pytest
deps =
pytest>=7
pytest-sugar
Jinja2>=3
commands = pytest test