Skip to content

Commit ce225fc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8e2f909 commit ce225fc

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

Diff for: pyproject.toml

+18-17
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ lint.select = [
5656
# "TCH", # flake8-type-checking
5757
# "TRY", # tryceratops
5858
]
59+
lint.ignore = [
60+
# `ruff rule S101` for a description of that rule
61+
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` -- FIX ME
62+
"B905", # `zip()` without an explicit `strict=` parameter -- FIX ME
63+
"EM101", # Exception must not use a string literal, assign to variable first
64+
"EXE001", # Shebang is present but file is not executable -- DO NOT FIX
65+
"G004", # Logging statement uses f-string
66+
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
67+
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
68+
"PLW2901", # PLW2901: Redefined loop variable -- FIX ME
69+
"PT011", # `pytest.raises(Exception)` is too broad, set the `match` parameter or use a more specific exception
70+
"PT018", # Assertion should be broken down into multiple parts
71+
"S101", # Use of `assert` detected -- DO NOT FIX
72+
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
73+
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
74+
"UP038", # Use `X | Y` in `{}` call instead of `(X, Y)` -- DO NOT FIX
75+
]
76+
5977
lint.per-file-ignores."arithmetic_analysis/newton_raphson.py" = [
6078
"PGH001",
6179
]
@@ -96,23 +114,6 @@ lint.pylint.max-args = 10 # default: 5
96114
lint.pylint.max-branches = 20 # default: 12
97115
lint.pylint.max-returns = 8 # default: 6
98116
lint.pylint.max-statements = 88 # default: 50
99-
lint.ignore = [
100-
# `ruff rule S101` for a description of that rule
101-
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` -- FIX ME
102-
"B905", # `zip()` without an explicit `strict=` parameter -- FIX ME
103-
"EM101", # Exception must not use a string literal, assign to variable first
104-
"EXE001", # Shebang is present but file is not executable -- DO NOT FIX
105-
"G004", # Logging statement uses f-string
106-
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
107-
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
108-
"PLW2901", # PLW2901: Redefined loop variable -- FIX ME
109-
"PT011", # `pytest.raises(Exception)` is too broad, set the `match` parameter or use a more specific exception
110-
"PT018", # Assertion should be broken down into multiple parts
111-
"S101", # Use of `assert` detected -- DO NOT FIX
112-
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
113-
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
114-
"UP038", # Use `X | Y` in `{}` call instead of `(X, Y)` -- DO NOT FIX
115-
]
116117

117118
[tool.codespell]
118119
ignore-words-list = "3rt,ans,bitap,crate,damon,fo,followings,hist,iff,kwanza,manuel,mater,secant,som,sur,tim,toi,zar"

0 commit comments

Comments
 (0)