forked from syngenta/linchemin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
32 lines (32 loc) · 967 Bytes
/
.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
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: detect-private-key
- id: end-of-file-fixer
exclude: '^docs/source/reference/generated/.*\.rst'
- id: fix-byte-order-marker
exclude: '^docs/source/reference/generated/.*\.rst'
- id: no-commit-to-branch
args: [--branch, main]
- id: trailing-whitespace
exclude: '^docs/source/reference/generated/.*\.rst'
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
files: '.*\.pyi?$'
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus, --keep-runtime-typing]
files: '.*\.pyi?$'