1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #32165 -- Added pre-commit hooks

* Added pre-commit hooks for isort, flake8 and eslint
* Added documentation on how to install and use the tool
This commit is contained in:
David Smith
2020-12-15 20:32:08 +00:00
committed by Carlton Gibson
parent 3a0ed0ce3f
commit 3bca95cca2
3 changed files with 42 additions and 1 deletions

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

@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.16.0
hooks:
- id: eslint