Skip to content

Commit 98adc5d

Browse files
committed
Use tox to run linters too
1 parent 42adf45 commit 98adc5d

2 files changed

Lines changed: 27 additions & 41 deletions

File tree

.github/workflows/lint.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

setup.cfg

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,40 @@ max-line-length = 88
99
universal = 1
1010

1111
[tox:tox]
12-
envlist = py36, py37, py38, py39, py310, mypy
12+
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
1313

1414
[gh-actions]
1515
python =
1616
3.7: py37
1717
3.8: py38
1818
3.9: py39
19-
"3.10": py310, mypy
19+
"3.10": py310,black,lint,flake8,mypy
2020

21-
[testenv]
21+
[testenv:{py37,py38,py39,py310}-test]
2222
deps =
23-
pytest
2423
mocket
24+
pytest
25+
26+
# explicitly require indirect dependency to fix build failure.
27+
# This can be removed when aiohttp 3.9 is released.
28+
charset-normalizer==2.1.1
2529
commands = pytest tests
30+
31+
[testenv:py310-black]
32+
deps = black
33+
commands = black --check --diff .
34+
35+
[testenv:py310-lint]
36+
deps = pylint
37+
commands = pylint minfraud
38+
39+
[testenv:py310-flake8]
40+
deps = flake8
41+
commands = flake8 minfraud
42+
43+
[testenv:py310-mypy]
44+
deps =
45+
mypy
46+
types-requests
47+
voluptuous-stubs
48+
commands = mypy minfraud tests

0 commit comments

Comments
 (0)