Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable linting via ruff #1551

Closed
wants to merge 3 commits into from
Closed

Enable linting via ruff #1551

wants to merge 3 commits into from

Conversation

akx
Copy link

@akx akx commented Sep 29, 2023

I noticed there was an utterly unused flake8 configuration in this repo (apparently gotten orphaned in e97f8cc) and there had been some issues a linter could have possibly caught in #1433 (see dc0a579).

This gets rid of the abandoned flake8 configuration in favor of ruff and wires it up to be runnable via pre-commit and automagically in GitHub Actions.

It also applies the ruff --fix autofixes in the third commit.

I'd recommend enabling more (and stricter) Ruff rules in the future, this only has a very bare skeleton set.

@akx
Copy link
Author

akx commented Nov 14, 2023

Well, this was done in #1557 (duplicate work could've probably been avoided if someone had taken a look at open PRs back then).

@akx akx closed this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants