-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
110 lines (92 loc) · 2.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[tox]
envlist =
py38
py39
py310
py311
cercis
flake8-basic
flake8-misc
flake8-docstrings
pydoclint
pre-commit
[gh-actions]
python =
3.8: py38, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.9: py39, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.10: py310, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.11: py311, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
[testenv:cercis]
deps =
cercis==0.2.3
skip_install = true
commands =
cercis --version
# use the '--check' flag to avoid accidentally formatting code
cercis --wrap-line-with-long-string=True --check --diff PySeismoSoil tests
[testenv:flake8-basic]
skip_install = true
deps = flake8>=5.0
commands =
flake8 .
[testenv:flake8-misc]
skip_install = true
deps =
flake8-bugbear
flake8-comprehensions
flake8-eradicate
flake8-broken-line
flake8-quotes
flake8-debugger
flake8-length
flake8-clean-block
flake8-indent-in-def
flake8-picky-parentheses
flake8-implicit-str-concat
flake8-return
flake8-broken-line
commands =
flake8 --select B,C,D,E800,N4,Q,T,LN,CLB,IND,PAR,ISC,R,N400 .
[testenv:flake8-docstrings]
skip_install = true
deps =
flake8-docstrings
commands =
flake8 --ignore D100,D104,D105,D107,D400,D205 --select D ./PySeismoSoil
[testenv:pydoclint]
skip_install = true
deps =
pydoclint
commands =
pydoclint ./PySeismoSoil
[testenv]
deps = pytest
commands =
pytest --tb=long .
[testenv:pre-commit]
skip_install = true
deps =
pre-commit
set_env =
# Skipping auto-formatter here to avoid accidentally formatting code
SKIP = cercis
commands =
pre-commit run -a
[flake8]
max-line-length = 79
extend-ignore =
# E501: line length
E501,
# LN002: doc/comment line too long
LN002,
# W503 and W504 are mutually exclusive; we choose to follow W504
W503,
E203,
C901,
R504,
count = true
statistics = true
max-complexity = 10
exclude =
.*,
venv/*,