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

Migrate from pylint and flake8 to ruff #248

Merged
merged 7 commits into from
Oct 24, 2024
Merged

Conversation

aris-aiven
Copy link
Contributor

@aris-aiven aris-aiven commented Oct 19, 2024

Update pre-commit hooks and transition to ruff.
This simplifies the linting workflow and improves its performance.

@aris-aiven aris-aiven force-pushed the aris-pre-commit-update branch from fe5719e to 955a533 Compare October 19, 2024 20:42
@aris-aiven aris-aiven changed the title Update pre-commit hooks Migrate from pylint and flake8 to ruff Oct 19, 2024
@aris-aiven aris-aiven force-pushed the aris-pre-commit-update branch 2 times, most recently from e01155e to 146ee43 Compare October 19, 2024 21:02
@aris-aiven aris-aiven marked this pull request as ready for review October 19, 2024 21:06
@aris-aiven aris-aiven requested a review from a team October 21, 2024 08:28
Makefile Outdated
Comment on lines 64 to 66
.PHONY: isort
isort:
isort: $(GENERATED)
pre-commit run isort --all-files
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need isort? Ruff sorts imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, just removing isort b/c the current ruff config should cover sorting AFAICT

It is superseded by a ruff rule
@aris-aiven aris-aiven dismissed joelynch’s stale review October 24, 2024 10:05

isort check removed

@aris-aiven aris-aiven requested a review from joelynch October 24, 2024 10:05
@joelynch joelynch merged commit 7d39946 into main Oct 24, 2024
2 checks passed
@joelynch joelynch deleted the aris-pre-commit-update branch October 24, 2024 10:23
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