Skip to content

Commit 23e6771

Browse files
committed
Add a noqa
1 parent c20f18a commit 23e6771

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,16 @@ line-length = 120
7272

7373
[tool.ruff.lint]
7474
ignore = [
75-
# Leave enabled
7675
"C408", # Unnecessary `dict()` call (rewrite as a literal)
7776
"S102", # Use of `exec` detected
7877
"SIM905", # Consider using a list literal instead of `str.split`
78+
"RUF012", # Mutable default value for class attribute
7979

80-
# Possibly disable the following ones:
80+
# Possibly fix the following lints:
8181
"I001", # Import block is un-sorted or un-formatted
8282
"PLC0414", # Import alias does not rename original package
8383
"FA100", # Add `from __future__ import annotations` to simplify `typing.Optional`
8484
"D419", # Docstring is empty
85-
"RUF012", # Mutable default value for class attribute
8685
"RUF022", # `__all__` is not sorted
87-
"B006", # Do not use mutable data structures for argument defaults
8886
"RUF023", # `SingleMatch.__slots__` is not sorted
8987
]

‎src/cutadapt/adapters.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def removed_sequence_length(self) -> int:
490490
return len(self.sequence) - self.rstart
491491

492492

493-
def _generate_adapter_name(_start=[1]) -> str:
493+
def _generate_adapter_name(_start=[1]) -> str: # noqa: B006
494494
name = str(_start[0])
495495
_start[0] += 1
496496
return name

0 commit comments

Comments
 (0)