forked from perdy/starlette-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
repos:
- repo: git@github.com:pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-added-large-files
args:
- --maxkb=2000
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: name-tests-test
args:
- --django
- id: pretty-format-json
args:
- --autofix
- --indent=2
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v4.0.0
hooks:
- id: commitlint
stages: [commit-msg]
- repo: local
hooks:
- id: flake8
name: Flake8 - Code Linter
entry: poetry run flake8
language: system
types: [python]
- id: black
name: Black - Code Style
entry: poetry run black
args:
- -q
- --safe
- --line-length=120
language: system
types: [python]
- id: isort
name: Isort - Sort Imports
entry: poetry run isort
args:
- -e
language: system
types: [python]