Add pre-commit configuration

This commit is contained in:
Mark Veidemanis 2022-07-21 13:45:18 +01:00
parent 4b1ca4c895
commit f12373e259
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 18 additions and 0 deletions

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

@ -0,0 +1,18 @@
repos:
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
exclude: \.py-tpl$
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.18.0
hooks:
- id: eslint