-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 1.16 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 1.16 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.4
hooks:
# Run the formatter.
- id: ruff-format
# Run the linter.
- id: ruff
args:
[--fix]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py3-plus, --py310-plus]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
hooks:
- id: docformatter
language_version: python3.12
args:
[--in-place, --wrap-summaries=88, --wrap-descriptions=88]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-json
# Unsafe required for mkdocs.yml format
- id: check-yaml
args: [--unsafe]
- id: check-toml
- id: end-of-file-fixer
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
files: \.(md|yml)$