Skip to content

Switch to ruff - #365

Open
Alicipy wants to merge 7 commits into
OWASP:masterfrom
Alicipy:switch-to-ruff
Open

Switch to ruff#365
Alicipy wants to merge 7 commits into
OWASP:masterfrom
Alicipy:switch-to-ruff

Conversation

@Alicipy

@Alicipy Alicipy commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

As already mentioned in #331, this PR will switch 'black' fully to ruff.

There was a configuration for ruff already, but black was the main formater used before. This change removes black, reformats all files, fixes some linting errors, and enforces the rules in CI as well, so no drift happens now.

Also drop the UP007 ignore, we require Python 3.11 now.

Signed-off-by: Stefan Kraus <dev@stefankraus.org>
Signed-off-by: Stefan Kraus <dev@stefankraus.org>
Signed-off-by: Stefan Kraus <dev@stefankraus.org>
Nothing enforced formatting until now, so a few files had drifted.

Signed-off-by: Stefan Kraus <dev@stefankraus.org>
ruff finds the files on its own, so the wildcard lists can go.

Signed-off-by: Stefan Kraus <dev@stefankraus.org>
Signed-off-by: Stefan Kraus <dev@stefankraus.org>
Signed-off-by: Stefan Kraus <dev@stefankraus.org>
@Alicipy
Alicipy requested a review from izar as a code owner August 20, 2026 16:47
@NoodlesNZ

Copy link
Copy Markdown
Contributor

LGTM

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.

2 participants