Skip to content

Commit

Permalink
DX: extend ignored Ruff rules for notebooks (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Dec 1, 2023
1 parent acdfb85 commit 6621d5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/repoma/check_dev_files/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,16 @@ def _update_ruff_per_file_ignores(has_notebooks: bool) -> None:
"B018", # useless-expression
"C90", # complex-structure
"D", # pydocstyle
"E402", # import not at top of file
"E703", # useless-semicolon
"N806", # non-lowercase-variable-in-function
"N816", # mixed-case-variable-in-global-scope
"PLR09", # complicated logic
"PLR2004", # magic-value-comparison
"PLW0602", # global-variable-not-assigned
"PLW0603", # global-statement
"S101", # `assert` detected
"T201", # print found
"TCH00", # type-checking block
}
minimal_settings[key] = __merge_rules(
Expand Down

0 comments on commit 6621d5e

Please sign in to comment.