@@ -40,14 +40,28 @@ requires = ["meson-python>=0.13", "cython>=3.0,<3.1"]
40
40
build-backend = " mesonpy"
41
41
42
42
[tool .cython-lint ]
43
- # We currently ignore
44
43
# E129 visually indented line with same indent as next logical line
44
+ # Reasoning: this rule is a little controversial
45
+ # (see https://github.com/PyCQA/pycodestyle/issues/386)
46
+ # and we ignore it to avoid needing additional indentation after
47
+ # long logical statements.
48
+ #
45
49
# E202 whitespace before '}'
50
+ # Reasoning: this rule flags up format strings f"{x = }". This is discussed
51
+ # here: https://github.com/PyCQA/pycodestyle/issues/1201, as we
52
+ # prefer printing whitespace around =, we disable this rule.
53
+ #
46
54
# E501 line too long (128 > 120 characters)
55
+ # Reasoning: this is a work in progress and will be enforced once a line length
56
+ # and refactor has taken place. See issue #214
57
+ #
47
58
# E741 ambiguous variable name
59
+ # Reasoning: many places it makes sense to use l or other letters as variable
60
+ # names as it is standard in mathematical notation.
61
+ #
48
62
# E743 ambiguous function definition
49
- # TODO: E743 should be fixed, see issue #210
50
- # E501 should be fixed once we decide line length
63
+ # Reasoning: this is a work in progress and will be enforced after #210 is
64
+ # resolved.
51
65
max-line-length = 120
52
66
ignore = [' E129' ,' E202' ,' E501' ,' E741' ,' E743' ]
53
67
exclude = ' src/flint/flintlib/.*'
0 commit comments