This repository was archived by the owner on Jan 29, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (50 loc) · 1.46 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (50 loc) · 1.46 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/python-poetry/poetry-plugin-export
rev: '1.9.0'
hooks:
- id: poetry-export
entry: poetry export
language: python
pass_filenames: false
files: ^(.*/)?poetry\.lock$
args: [--without-hashes, -f, requirements.txt, -o, requirements.txt]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: check-merge-conflict
- id: end-of-file-fixer
exclude_types: [image, binary, executable]
- id: debug-statements
language_version: python3.12
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/PyCQA/autoflake
rev: 'v2.3.1'
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place, --ignore-init-module-imports]
- repo: https://github.com/pycqa/isort
rev: '6.0.1'
hooks:
- id: isort
language: python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.11.6'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
language: python
- repo: https://github.com/psf/black
rev: '25.1.0'
hooks:
- id: black
language_version: python3.12
exclude:
'CNAME'
ci:
autoupdate_branch: 'develop'