-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
116 lines (96 loc) · 2.25 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
111
112
113
114
115
116
[tox]
envlist =
py39
py310
py311
py312
py313
mypy
cercis
check-self
flake8-basic
flake8-misc
flake8-docstrings
pre-commit
[gh-actions]
python =
3.9: py39, mypy, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.10: py310, mypy, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.11: py311, mypy, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.12: py311, mypy, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
3.13: py311, mypy, cercis, check-self, flake8-basic, flake8-misc, flake8-docstrings, pre-commit
[testenv:mypy]
deps =
mypy
commands =
mypy pydoclint/
[testenv:cercis]
deps =
cercis
skip_install = true
commands =
# use the '--check' flag to avoid accidentally formatting code
cercis --check --diff --extend-exclude=.*tests/data.* pydoclint 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 ./pydoclint
[testenv]
deps = pytest
commands =
pytest --tb=long .
[testenv:check-self]
deps = .
commands =
pydoclint --config=pyproject.toml .
[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 = 88
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,
count = true
statistics = true
max-complexity = 10
exclude =
.*,
build/*,
venv/*,
tests/data/*,