-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
56 lines (52 loc) · 1.5 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
47
48
49
50
51
52
53
54
55
56
repos:
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.1
hooks:
- id: autoflake
args: ["-i", "--remove-all-unused-imports"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
args: ["-l", "120"]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort (python)
args: ["-sl", "--profile", "black"]
- id: isort
name: isort (pyi)
types: [pyi]
args: ["-sl", "--profile", "black"]
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
name: flake8-py3
args: ["--max-line-length", "120", "--max-doc-length", "120"]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
name: flake8-py27
language_version: python2.7
files: "simulation_data.py$"
args: [ "--max-line-length", "120", "--max-doc-length", "120" ]
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2
hooks:
- id: markdown-toc
name: Table of Contents
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
# match all files except js-lib and css-lib folders
files: "aedttest\\/static\\/(?!.*js-lib|.*css-lib).*"