Skip to content

Commit 68e1178

Browse files
committed
Added pre-commit config.
Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent b775dbb commit 68e1178

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.4.0
6+
hooks:
7+
- id: check-ast
8+
- id: trailing-whitespace
9+
- id: check-toml
10+
- id: end-of-file-fixer
11+
12+
- repo: https://github.com/asottile/add-trailing-comma
13+
rev: v2.1.0
14+
hooks:
15+
- id: add-trailing-comma
16+
17+
- repo: local
18+
hooks:
19+
- id: black
20+
name: Format with Black
21+
entry: poetry run black
22+
language: system
23+
types: [python]
24+
25+
- id: autoflake
26+
name: autoflake
27+
entry: poetry run autoflake
28+
language: system
29+
types: [python]
30+
args: [--in-place, --remove-all-unused-imports, --remove-duplicate-keys]
31+
32+
- id: isort
33+
name: isort
34+
entry: poetry run isort
35+
language: system
36+
types: [python]
37+
38+
- id: flake8
39+
name: Check with Flake8
40+
entry: poetry run flake8
41+
language: system
42+
pass_filenames: false
43+
types: [python]
44+
args: [--count, taskiq_nats]
45+
46+
- id: mypy
47+
name: Validate types with MyPy
48+
entry: poetry run mypy
49+
language: system
50+
types: [python]
51+
52+
- id: yesqa
53+
name: Remove usless noqa
54+
entry: poetry run yesqa
55+
language: system
56+
types: [python]

0 commit comments

Comments
 (0)