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

Ruff Adoption & Linting Reset #166

Merged
merged 10 commits into from
Jun 26, 2024
Merged

Conversation

RHammond2
Copy link
Collaborator

This PR removes pylint and flake8 from the linting stack, and adopts ruff in its place. This switch

  • improves the pre-commit performance,
  • removes checks that have gone ignored for years, and
  • adopts some checks to ensure modern Python is used.

This PR also cleans the slate for using pre-commit without issue, so users should not be using the --no-verify flag anymore to ignore all the errors that have been ignored before their contributions.

It may be helpful to run git config blame.ignoreRevsFile .git-blame-ignore-revs to ensure the massive commit that deals the majority of this linting cleanup doesn't show up in the git blame messages.

@RHammond2 RHammond2 added enhancement Enhancement to an existing feature integration Features and requests related to integrations labels Jun 24, 2024
@RHammond2 RHammond2 requested a review from nRiccobo June 24, 2024 23:09
ORBIT/api/wisdem.py Show resolved Hide resolved
ORBIT/config.py Show resolved Hide resolved
ORBIT/api/wisdem.py Show resolved Hide resolved
ORBIT/core/library.py Outdated Show resolved Hide resolved
ORBIT/phases/design/oss_design_floating.py Outdated Show resolved Hide resolved
ORBIT/phases/design/spar_design.py Show resolved Hide resolved
ORBIT/phases/install/cable_install/export.py Show resolved Hide resolved
Copy link
Collaborator

@nRiccobo nRiccobo left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for taking care of this!

@RHammond2 RHammond2 merged commit 39cd770 into WISDEM:dev Jun 26, 2024
7 checks passed
@RHammond2 RHammond2 deleted the enhancement/ruff-linting branch June 26, 2024 20:54
@nRiccobo nRiccobo added this to the v1.1 Release milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature integration Features and requests related to integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants