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

Pre commit version #760

Merged
merged 11 commits into from
Nov 5, 2024
Merged

Conversation

RasmusOrsoe
Copy link
Collaborator

@RasmusOrsoe RasmusOrsoe commented Oct 28, 2024

Since the recent update of pre-commit to 4.0, docformatter has failed in workflows across the globe, including in ours.

This PR sets pre-commit <= 3.8 in setup.py and updates our hooks (flake8, mypy, etc) to recent versions.

I took this as an opportunity to do some spring cleaning, and to get flake8 to catch unused imports. The size of this PR might look overwhelming, but there is no functional change introduced here other than what's mentioned above. The changes seen here are superficial changes to make the codebase pass the updated hooks (In total, ~108 code climate flags has been solved).

Closes #757. Tagging @AlexKurek for completeness, as you've worked on the unused imports in the past.

Copy link
Collaborator

@Aske-Rosted Aske-Rosted left a comment

Choose a reason for hiding this comment

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

Gave it a look over and think everything looks fine. Good to get back to pre-commits working.

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.

pre-commit broken
2 participants