mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-24 05:42:54 +00:00
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
|