Skip to content

Commit 9e52ecc

Browse files
committed
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?)
1 parent bc99ab4 commit 9e52ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ target-version = "py312"
1616
exclude = [".git", "venv", "migrations", "node_modules"]
1717

1818
[tool.ruff.lint]
19-
select = ["E", "F", "I", "RUF100"]
19+
select = ["E", "F", "I", "RUF100", "W292"]
2020
ignore = ["E501"] # Line length is controlled by Black

0 commit comments

Comments
 (0)