materials
materials copied to clipboard
Check for final newline in code files
When selecting specific Ruff rules, I think we need to add W292 so that it checks for final newlines in code files.
(Might be that black is doing that in this dual setup, but maybe we can move towards using only ruff?)
We could also switch to Ruff entirely from my understanding:
target-version = "py313"
exclude = [
".git",
"venv",
".venv",
"migrations",
"node_modules",
]
lint.select = [
"E",
"F",
"I",
"RUF100",
"W292"
]
line-length = 79