@@ -6,11 +6,11 @@ disallow_incomplete_defs = true
6
6
disallow_untyped_calls = true
7
7
disallow_untyped_defs = true
8
8
exclude = [
9
- " ^examples/" , # examples directory
9
+ " ^examples/" , # examples directory
10
10
" ^noxfile\\ .py$" , # nox config file
11
- " setup\\ .py$" , # any files named setup.py
12
- " ^tasks\\ .py$" , # tasks.py invoke config file
13
- " ^tests/" , # tests directory
11
+ " setup\\ .py$" , # any files named setup.py
12
+ " ^tasks\\ .py$" , # tasks.py invoke config file
13
+ " ^tests/" , # tests directory
14
14
]
15
15
show_column_numbers = true
16
16
show_error_codes = true
@@ -82,7 +82,7 @@ select = [
82
82
# "EM", # flake8-errmsg
83
83
# "ERA", # eradicate
84
84
# "EXE", # flake8-executable
85
- " F" , # Pyflakes
85
+ " F" , # Pyflakes
86
86
" FA" , # flake8-future-annotations
87
87
# "FBT", # flake8-boolean-trap
88
88
" G" , # flake8-logging-format
@@ -93,7 +93,7 @@ select = [
93
93
# "ISC", # flake8-implicit-str-concat
94
94
# "N", # pep8-naming
95
95
" NPY" , # NumPy-specific rules
96
- " PD" , # pandas-vet
96
+ " PD" , # pandas-vet
97
97
# "PGH", # pygrep-hooks
98
98
# "PIE", # flake8-pie
99
99
# "PL", # Pylint
@@ -119,21 +119,21 @@ select = [
119
119
]
120
120
ignore = [
121
121
# `ruff rule S101` for a description of that rule
122
- " B904" , # Within an `except` clause, raise exceptions with `raise ... from err` -- FIX ME
123
- " B905" , # `zip()` without an explicit `strict=` parameter -- FIX ME
124
- " E501" , # Line too long
125
- " EM101" , # Exception must not use a string literal, assign to variable first
126
- " EXE001" , # Shebang is present but file is not executable -- DO NOT FIX
127
- " G004" , # Logging statement uses f-string
122
+ " B904" , # Within an `except` clause, raise exceptions with `raise ... from err` -- FIX ME
123
+ " B905" , # `zip()` without an explicit `strict=` parameter -- FIX ME
124
+ " E501" , # Line too long
125
+ " EM101" , # Exception must not use a string literal, assign to variable first
126
+ " EXE001" , # Shebang is present but file is not executable -- DO NOT FIX
127
+ " G004" , # Logging statement uses f-string
128
128
" PLC1901" , # `{}` can be simplified to `{}` as an empty string is falsey
129
- " PLW060" , # Using global for `{name}` but no assignment is done -- DO NOT FIX
129
+ " PLW060" , # Using global for `{name}` but no assignment is done -- DO NOT FIX
130
130
" PLW2901" , # PLW2901: Redefined loop variable -- FIX ME
131
- " PT011" , # `pytest.raises(Exception)` is too broad, set the `match` parameter or use a more specific exception
132
- " PT018" , # Assertion should be broken down into multiple parts
133
- " S101" , # Use of `assert` detected -- DO NOT FIX
134
- " S311" , # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
135
- " SLF001" , # Private member accessed: `_Iterator` -- FIX ME
136
- " UP038" , # Use `X | Y` in `{}` call instead of `(X, Y)` -- DO NOT FIX
131
+ " PT011" , # `pytest.raises(Exception)` is too broad, set the `match` parameter or use a more specific exception
132
+ " PT018" , # Assertion should be broken down into multiple parts
133
+ " S101" , # Use of `assert` detected -- DO NOT FIX
134
+ " S311" , # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
135
+ " SLF001" , # Private member accessed: `_Iterator` -- FIX ME
136
+ " UP038" , # Use `X | Y` in `{}` call instead of `(X, Y)` -- DO NOT FIX
137
137
]
138
138
139
139
# Allow fix for all enabled rules (when `--fix`) is provided.
@@ -145,10 +145,6 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
145
145
146
146
mccabe.max-complexity = 49
147
147
148
- per-file-ignores."docs/conf.py" = [
149
- " F401" , # Unused import
150
- ]
151
-
152
148
per-file-ignores."examples/scripts/*.py" = [
153
149
" F821" , # Undefined name `app`
154
150
]
0 commit comments