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

Add pre-commit, replace GHA workflows, remove flake8 config #288

Merged
merged 3 commits into from
Oct 15, 2023

Conversation

mwtoews
Copy link
Member

@mwtoews mwtoews commented Oct 15, 2023

This also uses ruff in-place of flake8, so clean up a now unused .flake8 file.

Several of the GHA jobs are also redundant, and cleaned-up.

The maintenance-only pre-commit/action@v3.0.0 is chosen (for now), but should ideally be using pre-commit.ci (which I don't have permissions to configure).

Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

I'm not the biggest fan of pre-commit/pyupgrade but they are pretty popular and reasonable

.pre-commit-config.yaml Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
@mwtoews
Copy link
Member Author

mwtoews commented Oct 15, 2023

I'm not the biggest fan of pre-commit/pyupgrade but they are pretty popular and reasonable

Thanks for weighing in @adamjstewart as I thought it was an annoying tool for a while too. I now see it's value, and indeed has become a popular tool across many projects.

@mwtoews mwtoews changed the title Add and apply pre-commit with black, isort, pyupgrade, end-of-line-fixer, etc. Add pre-commit, replace GHA workflows, remove flake8 config Oct 15, 2023
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

I prob won't use it directly, but I'm fine with it being used in CI.

@mwtoews mwtoews merged commit ffa71c1 into Toblerity:master Oct 15, 2023
41 checks passed
@mwtoews mwtoews deleted the pre-commit branch October 15, 2023 21:35
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.

None yet

2 participants