Skip to content

Commit

Permalink
FIX: do not insert empty list of rules (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Aug 6, 2024
1 parent 2c9eba2 commit b6dbd99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compwa_policy/check_dev_files/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ def __update_per_file_ignores(
per_file_ignores = pyproject.get_table(
"tool.ruff.lint.per-file-ignores", create=True
)
minimal_settings = {k: v for k, v in minimal_settings.items() if v}
if not complies_with_subset(per_file_ignores, minimal_settings):
per_file_ignores.update(minimal_settings)
msg = "Updated Ruff configuration"
Expand Down

0 comments on commit b6dbd99

Please sign in to comment.