Skip to content

Commit d0ad16e

Browse files
authored
Merge pull request #103 from opsmill/pog-ruff-ignore-rules
Ignore specific RUF rules instead of ignoring everything
2 parents 9ba9864 + 168d715 commit d0ad16e

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)