-
Notifications
You must be signed in to change notification settings - Fork 5
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.ci #83
Conversation
87b9aa4
to
179834d
Compare
Ignore H021 (inline styles), swap to `url_for` where applicable from static links, and update image tags with width, height, and alt attributes.
If I understand it correctly (no deep knowledge if github actions though)
Should we not have both activities be executed for every PR on GitHub - in case that the developer is not using pre-commit? And why not keep pytest as part of pre-commit? The only downside I saw so far is that during a commit the server cannot run in parallel. |
This is actually not correct. pytest is only being removed from the pre-commit.ci run, it still gets run locally. It just breaks when being run on the CI server, so I moved it to github actions. Basically, everything gets executed on every PR push, and can be run locally if pre-commit is installed. |
Here's a better breakdown of what's actually happening here - pre-commit.ci - Remote CI server, runs goosebit/.pre-commit-config.yaml Lines 1 to 3 in d8e6a30
GitHub Actions - Local action added to run pytest because it is not being run on pre-commit.ci pytest-md-report - Runs as part of the pytest action, it will display a chart of failed tests as a comment if the tests fail. pre-commit - Locally run pre-commit config. No changes, this works exactly the same as before. This means that all in all -
|
Is it possible that you did not commit |
It's a website, technically installed as a github app. You can also take a look at the checks for this PR for more info. |
Alright - now I did understand all the magic that is going on here ;-) Could have helped to use a different commit message than "Skip pytest in pre-commit.ci" - something like
|
Just looked at the report as well - love this integration. |
Still getting the hang of when to use longer commit messages and for what. |
Adds proper pre-commit handling for PRs, along with pytest being run in a separate github action.
Closes #80