mirror of
https://github.com/ModOrganizer2/pystubs-generation.git
synced 2026-07-27 14:07:13 -07:00
34 lines
848 B
INI
34 lines
848 B
INI
[flake8]
|
|
# Use black line length:
|
|
max-line-length = 88
|
|
extend-ignore =
|
|
# See https://github.com/PyCQA/pycodestyle/issues/373
|
|
E203,
|
|
per-file-ignores =
|
|
*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822
|
|
# Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload.
|
|
# Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself.
|
|
typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822
|
|
|
|
[mypy]
|
|
warn_return_any = True
|
|
warn_unused_configs = True
|
|
namespace_packages = True
|
|
|
|
[tox:tox]
|
|
skipsdist = true
|
|
envlist = py38-lint
|
|
|
|
[testenv:py38-lint]
|
|
skip_install = true
|
|
deps =
|
|
black
|
|
mypy
|
|
flake8
|
|
flake8-black
|
|
PyQt5-stubs
|
|
commands =
|
|
black generator main.py --check --diff
|
|
flake8 generator main.py
|
|
mypy generator main.py
|