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

Replace pylint ruff new rules #6773

Closed
wants to merge 8 commits into from
Closed

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Oct 10, 2024

This PR:

  • Adds a few new rules to the selected ruleset in ruff.

This is done mostly as a "proof of concept" of working with ruff. Just the speed itself makes adding tweaking rules much nicer as the feedback loop is instant.

To introduce new rules without big refactor changes (i.e. for new code) you can always use:

ruff check --preview -q lms tests bin --add-noqa

which adds the relevant noqa comments.

If feeling more adventurous some rules also provides fixes that ruff can apply:

ruff check --preview -q lms tests bin --unsafe-fixes --fix

I'd like to use this PR to discuss this particular rules and potentially make one PR for each one of them.

More details on the existing rules in ruff: https://docs.astral.sh/ruff/rules/

@marcospri marcospri force-pushed the replace-pylint-ruff branch 2 times, most recently from 84fa6ab to d78de5a Compare October 14, 2024 13:41
@marcospri marcospri mentioned this pull request Oct 14, 2024
@marcospri marcospri force-pushed the replace-pylint-ruff-new-rules branch from 1f414c4 to 83c97f0 Compare October 14, 2024 13:53
@marcospri marcospri force-pushed the replace-pylint-ruff branch from d78de5a to 45fa49d Compare October 15, 2024 12:45
Base automatically changed from replace-pylint-ruff to main October 15, 2024 12:54
@marcospri marcospri force-pushed the replace-pylint-ruff-new-rules branch from 83c97f0 to 7ef6d36 Compare October 16, 2024 12:01
@marcospri marcospri force-pushed the replace-pylint-ruff-new-rules branch from 7ef6d36 to e57eadd Compare October 18, 2024 13:02
@marcospri marcospri closed this Oct 23, 2024
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.

1 participant