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 check to GitHub workflows #163

Merged
merged 3 commits into from
May 10, 2023
Merged

Conversation

thetorpedodog
Copy link
Contributor

This adds a full run of pre-commit to the main GitHub workflow for the repository. The main effect is that file formatting of non-Python files will be enforced via Prettier.

This also slightly updates the way requirements.txt files are generated
to eliminate the spurious newline at the end that appears when you
`conda run`.
This adds a pre-commit step to the GitHub workflow. It replaces the
separate Black and Ruff runs, but does not fully replace MyPy.
@thetorpedodog thetorpedodog requested a review from johnkerl May 9, 2023 19:22
Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

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

wow, shocked we hadn't done this sooner 😎

@thetorpedodog thetorpedodog merged commit 0c02c31 into main May 10, 2023
@thetorpedodog thetorpedodog deleted the pre-commit-format branch May 10, 2023 14:06
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