mediawiki-extensions-Confir.../tox.ini
Reedy 28f297f1f7 Add tox.ini for python linting
Base file from:
c4790b589b/tox.ini

Most failing rules disabled, rather than fixing now

Bug: T355090
Change-Id: Ie0f499809d84b94b95dddac9abd433c8f81e04ce
2024-01-16 15:18:51 +00:00

35 lines
987 B
INI

[tox]
# Ensure 1.6+ is used to support 'skipsdist'
minversion = 1.6
# Do not run install command
skipsdist = True
# Environements to execute when invoking 'tox'
envlist = flake8
[testenv:flake8]
commands = flake8
deps = flake8
basepython = python3
[flake8]
exclude = .tox
max_line_length = 80
; E128 continuation line under-indented for visual indent
; E201 whitespace after '('
; E202 whitespace before ')'
; E225 missing whitespace around operator
; E226 missing whitespace around arithmetic operator
; E231 missing whitespace after ','
; E261 at least two spaces before inline comment
; E302 expected 2 blank lines, found 1
; E305 expected 2 blank lines after class or function definition, found 1
; E501 line too long (X > 80 characters)
; E711 comparison to None should be 'if cond is None:'
; E722 do not use bare 'except'
; W191 indentation contains tabs
; W503 line break before binary operator
ignore = E128,E201,E202,E225,E226,E302,E305,E231,E261,E501,E711,E722,W191,W503