Skip to content

Conversation

martin-martin
Copy link
Contributor

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

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?)
@martin-martin martin-martin requested a review from gahjelle March 3, 2025 10:18
@martin-martin martin-martin self-assigned this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant