forked from fpgmaas/deptry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (44 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: "v3.2.2"
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/psf/black
rev: "22.10.0"
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: "5.10.1"
hooks:
- id: isort
# Temporarily run both ruff and flake8, to see if we are satisfied with ruff so it can replace flake8.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.128
hooks:
- id: ruff
- repo: https://github.com/PyCQA/flake8
rev: "5.0.4"
hooks:
- id: flake8
additional_dependencies:
- "flake8-bugbear==22.10.27" # renovate: pep440-python-dependency
- "flake8-comprehensions==3.10.1" # renovate: pep440-python-dependency
- "flake8-simplify==0.19.3" # renovate: pep440-python-dependency
- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.9.0"
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: "34.28.0"
hooks:
- id: renovate-config-validator