-
Notifications
You must be signed in to change notification settings - Fork 304
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.19 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
exclude: ^hugo/static/.*$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-xml
exclude: |
(?x)^(
hugo/layouts/sitemap.xml|
hugo/layouts/_default/rss.xml
)$
- id: check-yaml
exclude: ^python/mkdocs.yml$
- id: end-of-file-fixer
- id: name-tests-test
files: ^python/tests/.*\.py$
- id: no-commit-to-branch
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
files: ^python/.*\.py$
args: ['--license-filepath', 'python/LICENSE.header', '--use-current-year']
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
files: ^python/.*\.py$
args: ['--config', 'python/pyproject.toml']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
files: ^python/.*\.py$
args: ['--config', 'python/pyproject.toml']
- repo: https://github.com/python-poetry/poetry
rev: '1.6.0'
hooks:
- id: poetry-check
args: ['--lock', '--directory=python']