Skip to content

Commit 71b6876

Browse files
authored
Pin selected effective ruff rules to match NetBox core (#412)
1 parent bd563e1 commit 71b6876

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ line-length = 120
22
target-version = "py310"
33

44
[lint]
5+
# Pin the effective default rule set used with `preview = true` to match Ruff 0.15.1.
6+
# Ruff 0.15.2 changed the preview defaults, see https://github.com/astral-sh/ruff/releases/tag/0.15.2
7+
# Keeping this explicit makes ruff deterministic.
8+
select = ["E4", "E7", "E9", "F"]
59
extend-select = ["E1", "E2", "E3", "E501", "W"]
610
ignore = ["F403", "F405"]
711
preview = true

0 commit comments

Comments
 (0)