-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
68 lines (65 loc) · 2.17 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
repos:
# Various general + format-specific helpers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-symlinks
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
- id: check-yaml
exclude: 'mkdocs.yml'
- id: check-toml
- id: check-json
- id: check-ast
- id: debug-statements
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-added-large-files
args: [--maxkb=10000]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: '0.29.0'
hooks:
- id: check-github-workflows
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.4
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.0'
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
# NOTE: you might need to add some deps here:
additional_dependencies: []
# Metadata
- repo: https://github.com/citation-file-format/cff-converter-python
rev: '054bda51dbe278b3e86f27c890e3f3ac877d616c'
hooks:
- id: validate-cff
- repo: https://github.com/fsfe/reuse-tool
rev: 'v4.0.3'
hooks:
- id: reuse
- repo: local
hooks:
# NOTE: copy from .pre-commit-hooks.yaml, for technical reasons
- id: somesy-sync
name: Run somesy sync
entry: somesy sync
language: python
files: '^\.somesy\.toml|pyproject\.toml$'
pass_filenames: false
- id: somesy-fill
name: Update AUTHORS.md
entry: somesy fill -t docs/_template_authors.md -o AUTHORS.md
language: python
files: '^\.somesy\.toml|pyproject\.toml$'
pass_filenames: false