This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
109 lines (107 loc) · 2.77 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ci:
autoupdate_schedule: weekly
default_stages: [commit]
repos:
# fixers
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
additional_dependencies:
- flake8-absolute-import
- flake8-annotations
- flake8-bandit
- flake8-bugbear
- flake8-comprehensions
- flake8-debugger
- flake8-eradicate
- flake8-executable
- flake8-no-pep420
- flake8-pie
- flake8-print
- flake8-simplify
- flake8-unused-arguments
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
[
--in-place,
--remove-all-unused-imports,
--remove-duplicate-keys,
--remove-unused-variables,
]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
# linters
- repo: https://github.com/compwa/mirrors-pyright
rev: "v1.1.246"
hooks:
- id: pyright
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- id: no-commit-to-branch
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-absolute-import
- flake8-annotations
- flake8-bandit
- flake8-bugbear
- flake8-comprehensions
- flake8-debugger
- flake8-eradicate
- flake8-no-pep420
- flake8-pie
- flake8-print
- flake8-simplify
- flake8-unused-arguments
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
# others
- repo: https://github.com/dycw/pre-commit-hooks
rev: 0.4.22
hooks:
- id: run-bump2version
args: [--setup-cfg]
- id: run-poetry-export
args: [--filename=requirements-all.txt, --dev, --without-hashes]
- id: run-scan-deps