This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
62 lines (58 loc) · 1.84 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: check-merge-conflict
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: debug-statements
language_version: python3.10
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place, --ignore-init-module-imports]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-annotations
- flake8-bandit
- flake8-docstrings
- flake8-bugbear
- flake8-comprehensions
# - flake8-quotes
# using dev version in hope it doesn't break
- git+https://github.com/zheller/flake8-quotes.git@master
- flake8-raise
- flake8-deprecated
- flake8-print
# - flake8-dunder-all # plugin code for `flake8-dunder-all[DALL]` does not match ^[A-Z]{1,3}[0-9]{0,3}$
# using fix from @Aspect1103 instead (PR isn't merged yet)
- git+https://github.com/Aspect1103/flake8-dunder-all.git@flake8-regex-fix
- flake8-pyi
- flake8-debugger
- flake8-builtins
# - flake8-requirements # don't know how to ignore AlbertoX3
- pep8-naming
language_version: python3.10
# - repo: https://github.com/kumaraditya303/mirrors-pyright
# rev: "v1.1.258"
# hooks:
# - id: pyright
# args: [--warnings]
exclude:
CNAME
ci:
autoupdate_branch: 'develop'