configure pre-commit for project #346
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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,