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 isort and flake8 to ruff #414

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Oct 30, 2023

Blocked by #412 #413. Also need some workflow changes.

- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
args: [--safe, --line-length=120]
- repo: https://github.com/PyCQA/isort
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do ruff + black play well together for sorting imports? I remember that isort came after black due to them conflicting, however that was some time ago and likely fixed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah ruff went out after black so it supports it without config. (there's also ruffmt now, but I like black for having only one option).

Copy link
Collaborator

@carlio carlio left a comment

Choose a reason for hiding this comment

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

Seems okay to me, depends on the other stuff being merged I guess?

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the migrate-from-isort-and-flake8-to-ruff branch 2 times, most recently from cd78a83 to 731fba3 Compare November 4, 2023 22:45
@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as ready for review November 4, 2023 22:54
@Pierre-Sassoulas Pierre-Sassoulas merged commit 955f779 into pylint-dev:master Nov 4, 2023
28 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the migrate-from-isort-and-flake8-to-ruff branch November 4, 2023 22:55
@Pierre-Sassoulas
Copy link
Member Author

Yeah, I had to rebase on everything to make it work 👌

@michael-k michael-k mentioned this pull request Feb 28, 2024
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.

None yet

2 participants