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 pylint and other linting rules in ruff #418

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

markbandstra
Copy link
Member

This PR enables the following rulesets in ruff:

  • SIM: flake8-simplify rules to simplify code
  • PL: pylint rules to "check[] for errors, enforce[] a coding standard, look[] for code smells, and [] make suggestions about how the code could be refactored"

I thought these made useful improvements and would be helpful for maintaining our code going forward.

This PR is a second take on #417 but without the experimental rules from ruff's preview mode.

Suggested by ruff rule PLW3201, which is only part of ruff preview mode, but it seems like a good change to make at this point.
@markbandstra markbandstra requested a review from jvavrek June 5, 2024 23:27
@markbandstra markbandstra self-assigned this Jun 5, 2024
@markbandstra markbandstra merged commit 71be85a into main Jun 5, 2024
21 checks passed
@markbandstra markbandstra deleted the enable-ruff-pylint-take2 branch June 5, 2024 23:50
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