-
Notifications
You must be signed in to change notification settings - Fork 229
configure pre-commit for project #346
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
Conversation
Not really sure why the CI is failing on generation as none of that code has been touched here. |
The CI failures were caused as |
The new failures should be resolved via #345. |
This change moves black and doc8 checking into pre-commit hooks. This also simplifies the ci code quality workflow. In addition, doc8 configuration is now moved to `pyproject.toml`.
When `--exclude` is used, the default exclude list is overwritten. The expected option is `--extend-exclude`. However, since the generated files are already ignored, these flags can be safely skipped,
@Gobot1234 would be great to get this one in too; should speed up CI by ~2.5 minutes based on the current active runs. Particularly since the cache key is the lock file too. |
This change moves black and doc8 checking into pre-commit hooks. This also simplifies the ci code quality workflow. In addition, doc8 configuration is now moved to
pyproject.toml
.This is more a proposal to make development experience a bit easier and standardised. It helps to not have to remember to execute all the required checks before pushing up code. Additionally, having a standard config mechanism helps the CI job to be simpler. This can potentially be outsourced to pre-commit.ci as well to keep the hooks up-to-date.
peo: fix black task to include gitignore
When
--exclude
is used, the default exclude list is overwritten. The expected option is--extend-exclude
. However, since the generated files are already ignored, these flags can be safely skipped,