forked from mixxxdj/manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.37 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
41
42
43
44
45
46
47
48
49
50
51
52
53
default_language_version:
python: python3
repos:
- repo: local
hooks:
- id: scour
name: "Optimize SVG files"
files: ^.*\.svg$
entry: python tools/optimize_svg.py
language: python
additional_dependencies:
- scour==0.38.2
- id: gh-wiki-anchors
name: "Fix GitHub Wiki Anchors for Linkcheck"
types: [rst]
entry: python tools/fixup_gh_wiki_anchors.py
language: python
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: ^source/locale/.*$
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: f7f304cb40596e4706be27ca44d1401396a97420
hooks:
- id: codespell
name: "Check for spelling mistakes"
args: ["--ignore-words", ".codespellignore"]
exclude: ^(.*\.svg|source/locale/.*)$
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: "Reformat Python code"
- repo: https://github.com/pycqa/flake8
rev: '3.8.3'
hooks:
- id: flake8
name: "Check for Python warnings"
files: ^tools/.*$
types: [text, python]
- repo: https://github.com/myint/rstcheck
rev: '3f92957478422df87bd730abde66f089cc1ee19b'
hooks:
- id: rstcheck
name: "Check RST syntax"
additional_dependencies:
- sphinx