-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 2.34 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 2.34 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.1
hooks:
- id: clang-format
types_or: [c++, c, cuda]
# Avoid potential problems with py.test if __init__.py files are missing
- repo: https://github.com/lk16/detect-missing-init
rev: v0.1.6
hooks:
- id: detect-missing-init
args: ["--create", "--python-folders", "htc,htc_projects,paper"]
- repo: https://github.com/citation-file-format/cff-converter-python
rev: "44e8fc9"
hooks:
- id: validate-cff
- repo: https://github.com/tcort/markdown-link-check
rev: v3.14.2
hooks:
- id: markdown-link-check
args: ["--config", "link_checker_config.json"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.20.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
# mkdocs uses custom tags
args: [--unsafe]
- id: check-toml
- id: trailing-whitespace
- id: check-case-conflict
- id: debug-statements
- id: name-tests-test
args: [--pytest-test-first]
- id: mixed-line-ending
- id: end-of-file-fixer
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
- repo: local
hooks:
- id: check-notebooks
name: Check notebooks for common errors
entry: python hooks/check_notebooks.py
language: system
types: [jupyter]
- id: check-public-readme
name: Check for common mistakes in the public README
entry: python hooks/check_public_readme.py
language: system
types: [file]
files: ^README_public.md$
# Enable this hook if you want to automatically format a bib entry
# Just paste the bib entry into a new file, stage it and run: pre-commit run --all-files biber-autoformat
# - id: biber-autoformat
# name: automatic formatting of the *.bib files
# language: docker_image
# entry: texlive/texlive:latest python hooks/biber_autoformat.py
# files: '^.+\.bib$'
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes