-
Notifications
You must be signed in to change notification settings - Fork 27
/
.pre-commit-config.yaml
68 lines (67 loc) · 1.91 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
# pip install pre-commit
# pre-commit install
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-vcs-permalinks
- id: debug-statements
- id: end-of-file-fixer
exclude: tests/test_changes/
files: \.(py|sh|rst|yml|yaml)$
- id: mixed-line-ending
- id: trailing-whitespace
files: \.(py|sh|rst|yml|yaml)$
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 23.9.0
hooks:
- id: black
args: ["--config=pyproject.toml"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--sp=pyproject.toml"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
args: ["--config=pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
args: ["--config-file=pyproject.toml"]
additional_dependencies:
- aiopath
- git+https://github.com/Nachtalb/aiopixiv#egg=aiopixiv
- git+https://github.com/Nachtalb/bot_manager#egg=bot_manager
- git+https://github.com/Nachtalb/tgtools#egg=tgtools
- httpx
- pytest
- python-telegram-bot
- yarl
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
types_or: [markdown, toml]
args: [--prose-wrap=always]
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
hooks:
- id: poetry-check