Improve exclusion syntax to match exact files (#209)

This commit is contained in:
Charlie Marsh
2022-09-15 21:40:49 -04:00
committed by GitHub
parent 6bbf3f46c4
commit 9d4a4478f7
13 changed files with 193 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
a = "abc"
b = f"ghi{'jkl'}"
c = f"def"
d = f"def" + "ghi"
e = (
f"def" +
"ghi"
)

View File

@@ -1,6 +1,10 @@
[tool.ruff]
line-length = 88
extend-exclude = ["excluded.py", "migrations"]
extend-exclude = [
"excluded.py",
"migrations",
"./resources/test/fixtures/directory/also_excluded.py",
]
select = [
"E402",
"E501",