Introduce a pre-commit config to auto-fix linting issues
This commit is contained in:
parent
840cd164d2
commit
5e57380194
1 changed files with 33 additions and 0 deletions
33
.pre-commit-config.yaml
Normal file
33
.pre-commit-config.yaml
Normal 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
|
Loading…
Reference in a new issue