This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
71 lines (61 loc) · 1.71 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
# Drawing on:
# https://pre-commit.ci/
# https://pre-commit.com/#usage
# https://github.com/pdm-project/pdm/blob/main/.pre-commit-config.yaml
# https://github.com/nonebot/nonebot2/blob/master/.pre-commit-config.yaml
ci:
autoupdate_schedule: monthly
autofix_commit_msg: "Auto fix by pre-commit hooks"
autoupdate_commit_msg: "Auto update by pre-commit hooks"
repos:
# upgrade the syntax.
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
# adding "from __future__ import annotations" for enabling new features
- repo: https://github.com/frostming/fix-future-annotations
rev: 0.5.0
hooks:
- id: fix-future-annotations
# code style formatting
# see pyproject.toml for config
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
# removing unused import statements
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
# import sentences sorting
# see pyproject.toml for config
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
# typo checking
# see setup.cfg for config
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
# common python problem checking
# see setup.cfg for config
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
# see setup.cfg for config
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
args: [ puntgun ]
pass_filenames: false
additional_dependencies:
- types-requests
- types-certifi