forked from HuaweiCloudDeveloper/gaussdb-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (35 loc) · 1.05 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (35 loc) · 1.05 KB
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
# See https://pre-commit.com for more information
#
# Note: we use `language: system` to make sure that pre-commit uses the same
# dependencies installed by `pip install psycopg[dev]` and not some random
# version installed in a hidden virtualenv. This way running the tools via
# pre-commit should give the same result of running them manually.
#
# Please check README.rst about setting up a development env.
repos:
- repo: local
hooks:
- id: black
name: black
language: system
entry: black --check --diff --color --quiet
files: \.py[i]?$
- id: codespell
name: codespell
language: system
entry: codespell
- id: flake8
name: flake8
language: system
entry: flake8
files: \.py$
- id: mypy
name: mypy
language: system
entry: mypy --pretty --follow-imports=silent
files: \.py[i]?$
- id: isort
name: isort
language: system
entry: isort --diff --color --check
files: \.(py[i]?|pxd|pyx)$