forked from DisnakeDev/guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
30 lines (30 loc) · 975 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,mdx']
# for code in .md files
# (patched with support for codeblock options and `py` shortcodes)
- repo: https://github.com/shiftinv/blacken-docs
rev: 9b32b93b0a44216eacada45c4574a65bd1df3641
hooks:
- id: blacken-docs
additional_dependencies: [black==22.3.0]
files: '\.(rst|md|markdown|mdx|py|tex)$'
args: [--line-length=100]
# for code samples
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--line-length=100]
# for markdown formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
types_or: [html, css, javascript, markdown, mdx]
args: [--print-width=120, --tab-width=4, --single-quote]