Update some ruff rules
This commit is contained in:
parent
26c55eab5c
commit
75e5c6e663
|
@ -6,10 +6,14 @@ select = [
|
||||||
"PD", # Pandas vet rules
|
"PD", # Pandas vet rules
|
||||||
"NPY", # NumPy specific rules
|
"NPY", # NumPy specific rules
|
||||||
"RUF", # Ruff specific rules
|
"RUF", # Ruff specific rules
|
||||||
"E1", # pycodestyle indentation rules
|
"PERF1", "PERF2", # Performance lints from Perflint
|
||||||
|
"E101", # Mixed spaces and tabs
|
||||||
"E501", # Line too long
|
"E501", # Line too long
|
||||||
"C901", # Complex structure
|
"C901", # Complex structure
|
||||||
"I001", # Import block un-sorted / un-formatted
|
"I001", # Import block un-sorted / un-formatted
|
||||||
|
"I002", # Missing required import
|
||||||
|
"N804", # First argument of class method should be cls
|
||||||
|
"N805" # First argument of method should be self
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"W191", # Ignore due to conflict with ruff formatter
|
"W191", # Ignore due to conflict with ruff formatter
|
||||||
|
@ -25,9 +29,9 @@ ignore = [
|
||||||
"COM812", # Ignore due to conflict with ruff formatter
|
"COM812", # Ignore due to conflict with ruff formatter
|
||||||
"COM819", # Ignore due to conflict with ruff formatter
|
"COM819", # Ignore due to conflict with ruff formatter
|
||||||
"ISC001", # Ignore due to conflict with ruff formatter
|
"ISC001", # Ignore due to conflict with ruff formatter
|
||||||
"ISC002", # Ignore due to conflict with ruff formatter
|
"ISC002" # Ignore due to conflict with ruff formatter
|
||||||
]
|
]
|
||||||
unfixable = ["B", "W", "E1", "C901" ""]
|
unfixable = ["W", "B", "PD", "NPY", "RUF", "E101", "E501", "C901", "I001", "I002"]
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
docstring-code-format = true
|
docstring-code-format = true
|
||||||
|
|
Loading…
Reference in a new issue