mirror of
1
0
Fork 0

Introduce a pre-commit config to auto-fix linting issues

This commit is contained in:
Kurt McKee 2023-09-10 10:52:25 -05:00
parent 840cd164d2
commit 5e57380194
No known key found for this signature in database
GPG Key ID: 64713C0B5BA8E1C2
1 changed files with 33 additions and 0 deletions

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

@ -0,0 +1,33 @@
# Run `pre-commit autoupdate` to update tool versions.
# Note that pre-commit.ci can update hook versions automatically.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
name: "Enforce Python 3.6 idioms"
args: [--py36-plus]
- repo: https://github.com/psf/black
rev: 23.9.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
hooks:
- id: editorconfig-checker