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

Switch from flake8 and isort to ruff #480

Merged
merged 4 commits into from
May 10, 2023
Merged

Conversation

TimJentzsch
Copy link
Contributor

@TimJentzsch TimJentzsch commented May 10, 2023

Relevant issue: N/A

Description:

This PR replaces the linting from flake8 and isort with ruff.
This improves the lint time from 8.74s to 0.03s on my machine.

I chose the Ruff config such that there are as little formatting changes in this PR as possible.
In the future, we probably want to re-enable some of the disabled rules and fix the corresponding errors.

I also vote to increase the maximum line length for Ruff and Black to at least 100 (and then enable the Ruff lint rule for that).

This PR also fixes the Toml entry for dev dependencies as the naming has been changed for poetry.

@TimJentzsch TimJentzsch requested a review from a team as a code owner May 10, 2023 10:57
Copy link
Member

@itsthejoker itsthejoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@TimJentzsch TimJentzsch merged commit 0350966 into master May 10, 2023
3 checks passed
@TimJentzsch TimJentzsch deleted the switch-to-ruff-for-linting branch May 10, 2023 12:25
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.

None yet

2 participants