Add basic pre-commit to handle eol space (#592)

This commit is contained in:
J. Nick Koston 2023-10-19 14:00:36 -10:00 committed by GitHub
parent 713dae18f1
commit 741308c93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 33 additions and 27 deletions

View File

@ -17,4 +17,3 @@
}
]
}

9
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,9 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

View File

@ -13,4 +13,3 @@ Before creating a release: Check the latest commit passes continuous integration
When the release button on the draft is clicked, GitHub Actions will publish the release to PyPi.
After any push to the main branch, the "protoc-update" workflow is run which updates the generated python protobuf files. This is to ensure that if a contributor has a newer protoc version installed than the protobuf python package, we won't run into any issues.

View File

@ -32,4 +32,3 @@ disable = [
[build-system]
requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3.0.2']