Skip to content

Commit 168d715

Browse files
committed
Ignore specific RUF rules instead of ignoring everything
This ignore rule was incorrectly setup to ignore the entire RUF specific ruleset instead of just the ones with failing checks.
1 parent 9ba9864 commit 168d715

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,14 @@ ignore = [
249249
"PTH100", # `os.path.abspath()` should be replaced by `Path.resolve()`
250250
"PTH109", # `os.getcwd()` should be replaced by `Path.cwd()`
251251
"RET504", # Unnecessary assignment to `data` before `return` statement
252-
"RUF", # Unused `noqa` directive
252+
"RUF005", # Consider `[*path, str(key)]` instead of concatenation
253+
"RUF010", # [*] Use explicit conversion flag
254+
"RUF015", # Prefer `next(iter(input_data["variables"].keys()))` over single element slice
255+
"RUF019", # [*] Unnecessary key check before dictionary access
256+
"RUF020", # [*] `Union[NoReturn, T]` is equivalent to `T`
257+
"RUF022", # [*] `__all__` is not sorted
258+
"RUF029", # Function is declared `async`, but doesn't `await` or use `async` features.
259+
"RUF100", # [*] Unused `noqa` directive
253260
"S108", # Probable insecure usage of temporary file or directory
254261
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
255262
"S701", # By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True`

0 commit comments

Comments
 (0)