-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
35 lines (35 loc) · 1.13 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.6
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17 # Use the ref you want to point at
hooks:
- id: mdformat
args: [ --wrap, "72", --number ]
# Optionally add plugins
additional_dependencies:
- mdformat-gfm
- mdformat-black
- mdformat-config
# - repo: https://github.com/LilSpazJoekp/docstrfmt
# rev: v1.6.1 # Replace by any tag/version: https://github.com/LilSpazJoekp/docstrfmt/tags
# hooks:
# - id: docstrfmt
# language_version: python3
# types_or: [python, rst] # only needed if you want to include txt files.