Skip to content

Commit 3f626e4

Browse files
authored
Merge 7fb49f7 into dc23f9c
2 parents dc23f9c + 7fb49f7 commit 3f626e4

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

tests/lint/flake8.ini

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,38 @@ max-line-length = 110
2727
hang-closing = False
2828

2929
ignore =
30-
W191, # indentation contains tabs
31-
W503, # line break before binary operator. We want W504(line break after binary operator)
30+
# indentation contains tabs
31+
W191,
32+
# Line break before binary operator.
33+
# We want W504 (line break after binary operator).
34+
W503,
3235

36+
# inform flake8 about functions we consider built-in.
37+
builtins =
38+
# translation lookup
39+
_,
40+
# translation lookup
41+
ngettext,
42+
# translation lookup
43+
pgettext,
44+
# translation lookup
45+
npgettext,
3346

34-
builtins = # inform flake8 about functions we consider built-in.
35-
_, # translation lookup
36-
ngettext, # translation lookup
37-
pgettext, # translation lookup
38-
npgettext, # translation lookup
39-
40-
exclude = # don't bother looking in the following subdirectories / files.
47+
# don't bother looking in the following subdirectories / files.
48+
exclude =
4149
.git,
4250
__pycache__,
4351
.tox,
4452
build,
4553
output,
46-
include/*,
47-
miscDeps,
48-
source/louis,
49-
source/comInterfaces/*, # #10924: generated by third-party dependencies
54+
# When excluding concrete paths relative to a directory,
55+
# not matching multiple folders by name e.g. `__pycache__`,
56+
# paths are relative to the configuration file.
57+
../../include/*,
58+
../../miscDeps,
59+
../../source/louis,
60+
# #10924: generated by third-party dependencies
61+
../../source/comInterfaces/*,
5062

5163
filename =
5264
*.py,

0 commit comments

Comments
 (0)