Skip to content

Commit ddf0dc4

Browse files
committed
Update ruff-base
1 parent 126e4c0 commit ddf0dc4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ruff-base.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Copied originally from pandas. This config requires ruff >= 0.2.
2-
target-version = "py311"
1+
target-version = "py312"
32

43
# fix = true
54
lint.unfixable = []
@@ -31,6 +30,7 @@ lint.extend-select = [
3130
"ARG001", # Unused function argument
3231
"RSE102", # Unnecessary parentheses on raised exception
3332
"PERF401", # Use a list comprehension to create a transformed list
33+
"S101", # Use of `assert` detected
3434
]
3535

3636
lint.ignore = [
@@ -41,10 +41,13 @@ lint.ignore = [
4141
"B028", # No explicit `stacklevel` keyword argument found
4242
"PLR0913", # Too many arguments to function call
4343
"PLR1730", # Checks for if statements that can be replaced with min() or max() calls
44+
"PLC0415", # `import` should be at the top-level of a file
45+
"PLW1641", # Class implements `__hash__` if `__eq__` is implemented
4446
]
4547

4648
extend-exclude = [
4749
"docs",
50+
"build",
4851
]
4952

5053
[lint.pycodestyle]
@@ -56,4 +59,5 @@ max-line-length = 100 # E501 reports lines that exceed the length of 100.
5659
# - D205: Don't worry about test docstrings
5760
# - ARG001: Unused function argument false positives for some fixtures
5861
# - E501: Line-too-long
59-
"**/tests/test_*.py" = ["D205", "ARG001", "E501"]
62+
# - S101: Do not use assert
63+
"**/tests/test_*.py" = ["D205", "ARG001", "E501", "S101"]

0 commit comments

Comments
 (0)