@@ -6,11 +6,11 @@ disallow_incomplete_defs = true
66disallow_untyped_calls = true
77disallow_untyped_defs = true
88exclude = [
9- " ^examples/" , # examples directory
9+ " ^examples/" , # examples directory
1010 " ^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
1414]
1515show_column_numbers = true
1616show_error_codes = true
@@ -82,7 +82,7 @@ select = [
8282 # "EM", # flake8-errmsg
8383 # "ERA", # eradicate
8484 # "EXE", # flake8-executable
85- " F" , # Pyflakes
85+ " F" , # Pyflakes
8686 " FA" , # flake8-future-annotations
8787 # "FBT", # flake8-boolean-trap
8888 " G" , # flake8-logging-format
@@ -93,7 +93,7 @@ select = [
9393 # "ISC", # flake8-implicit-str-concat
9494 # "N", # pep8-naming
9595 " NPY" , # NumPy-specific rules
96- " PD" , # pandas-vet
96+ " PD" , # pandas-vet
9797 # "PGH", # pygrep-hooks
9898 # "PIE", # flake8-pie
9999 # "PL", # Pylint
@@ -119,21 +119,21 @@ select = [
119119]
120120ignore = [
121121 # `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
128128 " 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
130130 " 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
137137]
138138
139139# 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]+?))$"
145145
146146mccabe.max-complexity = 49
147147
148- per-file-ignores."docs/conf.py" = [
149- " F401" , # Unused import
150- ]
151-
152148per-file-ignores."examples/scripts/*.py" = [
153149 " F821" , # Undefined name `app`
154150]
0 commit comments