-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
64 lines (58 loc) · 1.81 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# GH Actions
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: '0.28.6'
hooks:
- id: check-github-workflows
# Quality
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.1'
hooks:
- id: mypy
args: [ --no-strict-optional, --ignore-missing-imports, --check-untyped-defs]
# NOTE: you might need to add some deps here:
additional_dependencies: ["requests", "types-requests"]
# License 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: 'v5.0.2'
# hooks:
# - id: reuse
# Project Metadata
- repo: https://github.com/Materials-Data-Science-and-Informatics/somesy
rev: 'v0.4.3'
hooks:
- id: somesy
# Various general + format-specific helpers
# (run last to fix general syntactic defects)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# - id: mixed-line-ending
# args: [--fix=lf]
- id: check-symlinks
- id: trailing-whitespace
exclude: 'CITATION.cff'
- 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 ]