-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
52 lines (47 loc) · 1.36 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
exclude: 'build|docs|node_modules|.git|.tox|dist|docs|octue.egg-info|twined.egg-info'
default_stages: [commit]
fail_fast: true
default_language_version:
python: python3 # force all unspecified python hooks to run python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=10240']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
- repo: https://github.com/thclark/pre-commit-sphinx
rev: 0.0.3
hooks:
- id: build-docs
language_version: python3
additional_dependencies:
- 'Sphinx'
- 'sphinx-rtd-theme'
- 'sphinx-tabs'
- 'sphinx-charts'
- 'jsonschema'
- repo: https://github.com/windpioneers/pre-commit-hooks
rev: 0.0.5
hooks:
- id: check-branch-name
args:
- "^main$"
- "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
- repo: https://github.com/octue/conventional-commits
rev: 0.9.0
hooks:
- id: check-commit-message-is-conventional
stages: [commit-msg]