-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
73 lines (70 loc) · 1.89 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
default_language_version:
python: python3
repos:
# - repo: https://github.com/pdm-project/pdm
# rev: 2.2.1
# hooks:
# - id: pdm-export
# args: ['-f', 'setuppy', '-o', 'setup.py']
# files: |
# (?x)^(
# pdm.lock|
# esgpull/version.py
# )$
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [ '--py310-plus' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: '(setup.cfg|.svg)'
- id: end-of-file-fixer
- id: check-toml
- id: debug-statements
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- attrs==22.1.0
- sqlalchemy==2.0.0b2
- types-pyopenssl==22.1.0.1
- types-aiofiles==22.1.0
- types-python-dateutil==2.8.19.2
- types-pymysql==1.0.19.1
- types-pyyaml==6.0.12
- types-cryptography==3.3.23.1
- types-setuptools==65.5.0.1
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.4
hooks:
- id: check-github-workflows
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
skip: [ ]
submodules: false