Skip to content

Commit 8cc147a

Browse files
committed
chore: expand flake8 plugins and configuration
1 parent 18df144 commit 8cc147a

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.bandit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bandit]
2+
targets = /src/depinfo

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires = [
88

99
[tool.black]
1010
line-length = 88
11-
python-version = ['py38']
11+
python-version = ["py38"]
1212

1313
[[tool.mypy.overrides]]
1414
module = [

tox.ini

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
2-
envlist = isort, black, flake8, safety, mypy, install, py3{7,8,9,10,11}
2+
envlist = flake8, safety, mypy, install, py3{7,8,9,10,11}
33
isolated_build = true
44

55
[gh-actions]
66
python =
7-
3.7: install, isort, black, flake8, mypy, safety, py37
7+
3.7: install, flake8, mypy, safety, py37
88
3.8: install, mypy, safety, py38
99
3.9: install, mypy, safety, py39
1010
3.10: install, mypy, safety, py310
@@ -13,26 +13,20 @@ python =
1313
[testenv]
1414
# Define base for all test environments.
1515

16-
[testenv:isort]
17-
skip_install = True
18-
deps=
19-
isort
20-
commands=
21-
isort --check-only --diff {toxinidir}/src/depinfo {toxinidir}/tests {toxinidir}/setup.py
22-
23-
[testenv:black]
24-
skip_install = True
25-
deps=
26-
black
27-
commands=
28-
black --check --diff {toxinidir}/src/depinfo {toxinidir}/tests {toxinidir}/setup.py
29-
3016
[testenv:flake8]
3117
skip_install = True
3218
deps=
19+
darglint
3320
flake8
34-
flake8-docstrings
21+
flake8-bandit
22+
flake8-black
3523
flake8-bugbear
24+
flake8-builtins
25+
flake8-comprehensions
26+
flake8-docstrings
27+
flake8-eradicate
28+
flake8-isort
29+
flake8-pytest-style
3630
commands=
3731
flake8 {toxinidir}/src/depinfo {toxinidir}/tests {toxinidir}/setup.py
3832

@@ -104,6 +98,9 @@ ignore =
10498
E203
10599
W503
106100
D202
101+
# darglint
102+
strictness = long
103+
docstring_style = google
107104

108105
[isort]
109106
skip =

0 commit comments

Comments
 (0)