-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.36 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
---
# run on only items staged in git: pre-commit
# automatically run on commit: pre-commit install
# check all files in repo: pre-commit run --all-files
# update all checks to latest: pre-commit autoupdate
# https://github.com/pre-commit/pre-commit-hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ["--maxkb=150"]
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-xml
- id: end-of-file-fixer
# https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
# - id: mixed-line-ending
# args: ['--fix=no']
- id: requirements-txt-fixer
- id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
- id: detect-private-key
# - id: no-commit-to-branch
# args: [--branch, main]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args: [-c=.yamllint.yaml]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black