-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
104 lines (96 loc) · 2.61 KB
/
.pre-commit-config.yaml
File metadata and controls
104 lines (96 loc) · 2.61 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
repos:
- repo: https://github.com/python-poetry/poetry
rev: "1.7.0"
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-install
- id: poetry-export
name: Export requeriments.txt
args:
[
"--without-hashes",
"-o",
"requirements.txt",
"-f",
"requirements.txt",
]
files: ^(pyproject\.toml|poetry\.lock)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^.*\.egg-info/
- id: check-merge-conflict
- id: check-case-conflict
- id: check-json
- id: check-toml
exclude: tests/fixtures/invalid_lock/poetry\.lock
- id: check-yaml
- id: check-ast
- id: debug-statements
- id: check-docstring-first
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
language_version: python3.9
args:
[
--line-length=88,
--target-version=py311,
--exclude=\.venv/,
--exclude=\.nox/,
--exclude=\.tox/,
--exclude=\.eggs/,
--exclude=build/,
--exclude=dist/,
--exclude=docs/,
--exclude=\.mypy_cache/,
--exclude=\.pytest_cache/,
--exclude=\.git/,
--exclude=\.github/,
--exclude=\.vscode/,
--exclude=\.pyright/,
--exclude=\.pylint_cache/,
--exclude=\.hypothesis/,
--exclude=\.mypy/,
--exclude=\.coverage/,
]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: [--max-line-length=88, --ignore=E203]
- repo: https://github.com/myint/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args:
[
"--in-place",
"--remove-all-unused-imports",
"--remove-unused-variables",
"--remove-duplicate-keys",
".",
]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--filter-files, --profile=black, --src-path=src, --gitignore]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.6
hooks:
- id: prettier
additional_dependencies:
- prettier@2.8.1
- repo: https://github.com/pre-commit/pre-commit
rev: v3.6.0
hooks:
- id: validate_manifest
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
hooks:
- id: ruff