-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
46 lines (42 loc) · 1.23 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
# pre-commit runs static analysis in the CI for this repo
#
# you can also use it to have the static analysis run incrementally on your commits;
#
# install:
#
# pip install .[test]
# pre-commit install
#
# after this, pre-commit will run automatically when you run `git commit`; it will
# flag any answers, and in the case of black / isort will automatically update
# your local files
#
# run on the whole repo: pre-commit run --all-files
# run a single hook: pre-commit run --all-files black
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
description: Forces to replace line ending by the UNIX 'lf' character.
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: Flake PEP8 check
additional_dependencies: ["importlib-metadata<=4.13.0"]
args: ["--max-line-length=120"]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
name: Black autoformatting
- repo: https://github.com/pycqa/isort
rev: 5.11.4
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.991"
hooks:
- id: mypy