Skip to content

Add ruff lints#735

Closed
HU90m wants to merge 5 commits intoolofk:mainfrom
HU90m:lints
Closed

Add ruff lints#735
HU90m wants to merge 5 commits intoolofk:mainfrom
HU90m:lints

Conversation

@HU90m
Copy link
Copy Markdown
Contributor

@HU90m HU90m commented Feb 25, 2025

I noticed a few problems in the code base that would have been picked up on by a linter.

I've added the ruff linter to pre-commit and addressed some of the failures with simpler fixes.

Do we think using ruff for linting is a good idea?

There are quite a few cases of unused imports,
and even some errors like undefined name.
Ruff can be used to catch these going forward.

For now, all failing lints are ignored.
These can be ratcheted down in the future.
@olofk
Copy link
Copy Markdown
Owner

olofk commented Mar 3, 2025

I don't have any opinions on what linter to use, but it looks like it picked up some nice clean-ups at least, so I'm happy to give it a go. Want to pull some other things in first though to avoid merge conflicts.

@HU90m
Copy link
Copy Markdown
Contributor Author

HU90m commented Jan 9, 2026

Closing in favour of #763

@HU90m HU90m closed this Jan 9, 2026
@erikwa
Copy link
Copy Markdown
Contributor

erikwa commented Jan 9, 2026

Sorry, did not notice your PR before I had almost finished with my changes :)

@HU90m
Copy link
Copy Markdown
Contributor Author

HU90m commented Jan 10, 2026

No worries, pleased to see it being worked on!

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.

3 participants