-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.21 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.3
hooks:
# Run the linter.
- id: ruff
args:
[--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py3-plus, --py310-plus]
- repo: https://github.com/datarootsio/databooks
rev: 1.1.1
hooks:
- id: databooks-meta
# - repo: https://github.com/pycqa/pydocstyle
# rev: 6.1.1 # pick a git hash / tag to point to
# hooks:
# - id: pydocstyle
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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)$