-
Notifications
You must be signed in to change notification settings - Fork 155
/
.pre-commit-config.yaml
51 lines (50 loc) · 1.35 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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
repos:
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
exclude: .*/__init__\.py|setup\.py
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
args:
- --settings-path=.github/linters/pyproject.toml
- --check
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.3
hooks:
- id: add-trailing-comma
name: add-trailing-comma (1st round)
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black (1st round)
args:
- --config=.github/linters/pyproject.toml
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.3
hooks:
- id: add-trailing-comma
name: add-trailing-comma (2nd round)
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black (2nd round)
args:
- --config=.github/linters/pyproject.toml
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args:
- --config=.github/linters/tox.ini
exclude: \.git|__pycache__|docs|build|dist|.*\.egg-info|docker_files|\.vscode|\.github|scripts|tests|maro\/backends\/.*.cp|setup.py