Skip to content

Commit 0abcda9

Browse files
authored
Merge pull request #108 from maxmind/greg/tox-linting
Use tox to run linters too
2 parents 1cc0171 + 21393b4 commit 0abcda9

File tree

2 files changed

+21
-44
lines changed

2 files changed

+21
-44
lines changed

.github/workflows/lint.yml

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

setup.cfg

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,40 @@
22
build_html = build_sphinx -b html --build-dir docs
33

44
[flake8]
5+
extend-ignore = E203
56
# black uses 88 : ¯\_(ツ)_/¯
67
max-line-length = 88
78

89
[wheel]
910
universal = 1
1011

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

1415
[gh-actions]
1516
python =
1617
3.7: py37
1718
3.8: py38
1819
3.9: py39
19-
"3.10": py310
20-
3.11: py311, mypy
20+
"3.10": py310,black,lint,flake8,mypy
2121

22-
23-
[testenv]
24-
deps =
25-
pytest
22+
[testenv:{py37,py38,py39,py310}-test]
23+
deps = pytest
2624
commands = pytest tests
2725
passenv = *
26+
27+
[testenv:py310-black]
28+
deps = black
29+
commands = black --check --diff .
30+
31+
[testenv:py310-lint]
32+
deps = pylint
33+
commands = pylint maxminddb
34+
35+
[testenv:py310-flake8]
36+
deps = flake8
37+
commands = flake8 maxminddb
38+
39+
[testenv:py310-mypy]
40+
deps = mypy
41+
commands = mypy maxminddb tests

0 commit comments

Comments
 (0)