Amélioration de l'environnement de développement
This commit is contained in:
parent
dcc11b994f
commit
50f0361b91
40
.pre-commit-config.yaml
Normal file
40
.pre-commit-config.yaml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# See http://pre-commit.com for more information
|
||||||
|
# See http://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: git://github.com/asottile/reorder_python_imports
|
||||||
|
sha: v0.3.5
|
||||||
|
hooks:
|
||||||
|
- id: reorder-python-imports
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
||||||
|
sha: v0.18.0
|
||||||
|
hooks:
|
||||||
|
- id: yapf
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
sha: v0.9.2
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
name: Supprime espaces fin de ligne
|
||||||
|
files: .py$
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
name: Règle problème sur les fins de fichiers
|
||||||
|
- id: check-yaml
|
||||||
|
name: Syntaxe des fichiers YAML
|
||||||
|
- id: check-json
|
||||||
|
name: Syntaxe des fichiers JSON
|
||||||
|
- id: debug-statements
|
||||||
|
name: Supprime les PDB restants
|
||||||
|
- id: detect-private-key
|
||||||
|
name: Trouve les clefs privées
|
||||||
|
- id: flake8
|
||||||
|
name: Vérification code Python avec flake8
|
||||||
|
args: ["--exclude=.git, __pycache__"]
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
name: Réordonne le fichier requirements.txt
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-jshint
|
||||||
|
sha: v2.9.5
|
||||||
|
hooks:
|
||||||
|
- id: jshint
|
||||||
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
|
||||||
|
sha: v1.1.0
|
||||||
|
hooks:
|
||||||
|
- id: python-safety-dependencies-check
|
5
dev-requirements.txt
Normal file
5
dev-requirements.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-r requirements.txt
|
||||||
|
flake8
|
||||||
|
pre-commit
|
||||||
|
pylint
|
||||||
|
pylint_django
|
Loading…
Reference in New Issue
Block a user