Skip to content

Commit 72f4904

Browse files
authored
Extend default ignores of flake8 (senaite#2085)
* Extend default ignores of flake8 * Fix redefinition of unused name (F811)
1 parent c716c8f commit 72f4904

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/senaite/core/exportimport/instruments/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from myself import myinstrument
5555
from nuclisens import easyq
5656
from genexpert import genexpert
57-
from varian.vistapro import icp
57+
from varian.vistapro import icp as icp_2
5858
from cobasintegra.model_400_plus import model_400_plus
5959
from facscalibur.calibur import model_e9750
6060

travis_ci_flake8.cfg

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
# temporarily disable violations for existing code until they are cleaned up
3-
ignore =
3+
extend-ignore =
44
# E101: indentation contains mixed spaces and tabs
55
E101,
66
# E111: indentation is not a multiple of 4
@@ -13,18 +13,12 @@ ignore =
1313
E116,
1414
# E117: over-indented
1515
E117,
16-
# E121: continuation line under-indented for hanging indent
17-
E121,
1816
# E122: continuation line missing indentation or outdented
1917
E122,
20-
# E123: closing bracket does not match indentation of opening bracket's line
21-
E123,
2218
# E124: closing bracket does not match visual indentation
2319
E124,
2420
# E125: continuation line with same indent as next logical line
2521
E125,
26-
# E126: continuation line over-indented for hanging indent
27-
E126,
2822
# E127: continuation line over-indented for visual indent
2923
E127,
3024
# E128: continuation line under-indented for visual indent
@@ -45,14 +39,10 @@ ignore =
4539
E222,
4640
# E225: missing whitespace around operator
4741
E225,
48-
# E226: missing whitespace around arithmetic operator
49-
E226,
5042
# E228: missing whitespace around modulo operator
5143
E228,
5244
# E231: missing whitespace after ','
5345
E231,
54-
# E241: multiple spaces after ':'
55-
E241,
5646
# E251: unexpected spaces around keyword / parameter equals
5747
E251,
5848
# E261: at least two spaces before inline comment
@@ -99,8 +89,6 @@ ignore =
9989
F632,
10090
# F706: 'return' outside function
10191
F706,
102-
# F811: redefinition of unused 'StringIO' from line 27
103-
F811,
10492
# F812: list comprehension redefines 'service' from line 446
10593
F812,
10694
# F821: undefined name 'Report'
@@ -117,10 +105,6 @@ ignore =
117105
W293,
118106
# W391: blank line at end of file
119107
W391,
120-
# W503: line break before binary operator
121-
W503,
122-
# W504: line break after binary operator
123-
W504,
124108
# W601: .has_key() is deprecated, use 'in'
125109
W601,
126110
# W605: invalid escape sequence '\d'

0 commit comments

Comments
 (0)