Skip to content

Commit a98c130

Browse files
committed
Use tox to run the linting builds
1 parent 578cd94 commit a98c130

File tree

2 files changed

+24
-43
lines changed

2 files changed

+24
-43
lines changed

.github/workflows/lint.yml

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

setup.cfg

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,40 @@ universal = 1
1212
disable = duplicate-code
1313

1414
[tox:tox]
15-
envlist = py36, py37, py38, py39, py310, mypy
15+
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
1616

1717
[gh-actions]
1818
python =
1919
3.7: py37
2020
3.8: py38
2121
3.9: py39
22-
"3.10": py310, mypy
22+
"3.10": py310,black,lint,flake8,mypy
2323

24-
[testenv]
24+
[testenv:{py37,py38,py39,py310}-test]
2525
deps =
26-
pytest
2726
mocket
27+
pytest
28+
2829
# explicitly require indirect dependency to fix build failure.
2930
# This can be removed when aiohttp 3.9 is released.
3031
charset-normalizer==2.1.1
3132
commands = pytest tests
33+
34+
[testenv:py310-black]
35+
deps = black
36+
commands = black --check --diff .
37+
38+
[testenv:py310-lint]
39+
deps = pylint
40+
commands = pylint geoip2
41+
42+
[testenv:py310-flake8]
43+
deps = flake8
44+
commands = flake8 geoip2
45+
46+
[testenv:py310-mypy]
47+
deps =
48+
mypy
49+
types-requests
50+
voluptuous-stubs
51+
commands = mypy geoip2 tests

0 commit comments

Comments
 (0)