Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/lint.yml

This file was deleted.

28 changes: 21 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,40 @@
build_html = build_sphinx -b html --build-dir docs

[flake8]
extend-ignore = E203
# black uses 88 : ¯\_(ツ)_/¯
max-line-length = 88

[wheel]
universal = 1

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

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
"3.10": py310
3.11: py311, mypy
"3.10": py310,black,lint,flake8,mypy


[testenv]
deps =
pytest
[testenv:{py37,py38,py39,py310}-test]
deps = pytest
commands = pytest tests
passenv = *

[testenv:py310-black]
deps = black
commands = black --check --diff .

[testenv:py310-lint]
deps = pylint
commands = pylint maxminddb

[testenv:py310-flake8]
deps = flake8
commands = flake8 maxminddb

[testenv:py310-mypy]
deps = mypy
commands = mypy maxminddb tests