@@ -15,6 +15,8 @@ exclude = [
1515 " doc/usage/extensions/example*.py" ,
1616]
1717ignore = [
18+ # pycodestyle
19+ " E741" , # Ambiguous variable name: `{name}`
1820 # pylint
1921 " PLC1901" , # simplify truthy/falsey string comparisons
2022]
@@ -112,58 +114,7 @@ select = [
112114 " DTZ011" , # The use of `datetime.date.today()` is not allowed, use `datetime.datetime.now(tz=).date()` instead
113115 " DTZ012" , # The use of `datetime.date.fromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=).date()` instead
114116 # pycodestyle ('E')
115- " E101" , # Indentation contains mixed spaces and tabs
116- " E111" , # Indentation is not a multiple of {indent_size}
117- " E112" , # Expected an indented block
118- " E113" , # Unexpected indentation
119- " E114" , # Indentation is not a multiple of {indent_size} (comment)
120- " E115" , # Expected an indented block (comment)
121- " E116" , # Unexpected indentation (comment)
122- " E117" , # Over-indented (comment)
123- " E201" , # Whitespace after '{symbol}'
124- " E202" , # Whitespace before '{symbol}'
125- " E203" , # Whitespace before '{symbol}'
126- " E211" , # Whitespace before '{bracket}'
127- " E221" , # Multiple spaces before operator
128- " E222" , # Multiple spaces after operator
129- " E223" , # Tab before operator
130- " E224" , # Tab after operator
131- " E225" , # Missing whitespace around operator
132- " E226" , # Missing whitespace around arithmetic operator
133- " E227" , # Missing whitespace around bitwise or shift operator
134- " E228" , # Missing whitespace around modulo operator
135- " E231" , # Missing whitespace after '{token}'
136- " E241" , # Multiple spaces after comma
137- " E242" , # Tab after comma
138- # "E251", # Unexpected spaces around keyword / parameter equals
139- " E252" , # Missing whitespace around parameter equals
140- " E261" , # Insert at least two spaces before an inline comment
141- " E262" , # Inline comment should start with `# `
142- " E265" , # Block comment should start with `# `
143- " E266" , # Too many leading `#` before block comment
144- " E271" , # Multiple spaces after keyword
145- " E272" , # Multiple spaces before keyword
146- " E273" , # Tab after keyword
147- " E274" , # Tab before keyword
148- " E275" , # Missing whitespace after keyword
149- " E401" , # Multiple imports on one line
150- " E402" , # Module level import not at top of file
151- " E501" , # Line too long ({width} > {limit} characters)
152- " E701" , # Multiple statements on one line (colon)
153- " E702" , # Multiple statements on one line (semicolon)
154- " E703" , # Statement ends with an unnecessary semicolon
155- " E711" , # Comparison to `None` should be `cond is None`
156- " E712" , # Comparison to `True` should be `cond is True` or `if cond:`
157- " E713" , # Test for membership should be `not in`
158- " E714" , # Test for object identity should be `is not`
159- # "E721", # Do not compare types, use `isinstance()`
160- " E722" , # Do not use bare `except`
161- " E731" , # Do not assign a `lambda` expression, use a `def`
162- # "E741", # Ambiguous variable name: `{name}`
163- " E742" , # Ambiguous class name: `{name}`
164- " E743" , # Ambiguous function name: `{name}`
165- " E902" , # {message}
166- " E999" , # SyntaxError: {message}
117+ " E" ,
167118 # flake8-errmsg ('EM')
168119 " EM101" , # Exception must not use a string literal, assign to variable first
169120 " EM102" , # Exception must not use an f-string literal, assign to variable first
0 commit comments