mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
28f297f1f7
Base file from:
c4790b589b/tox.ini
Most failing rules disabled, rather than fixing now
Bug: T355090
Change-Id: Ie0f499809d84b94b95dddac9abd433c8f81e04ce
35 lines
987 B
INI
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
|