forked from linkml/linkml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 1.01 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
default_language_version:
python: python3
# Specify files to exclude - pre-commit hook doesn't parse pyproject.toml
exclude: tests/data/hp.ttl|tests/data/hp_f.ttl|.*\.svg|jsonschema_value_constraints.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
exclude: __snapshots__
- id: check-yaml
exclude: (__snapshots__|test_utils/input)
- id: check-toml
- id: trailing-whitespace
# TODO: This is temporary while bioliank is being fixed upstream.
# TODO: Should look at snapshot exclusion to find upstream problems
exclude: (__snapshots__|biolink-model.yaml)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ensure this version stays in sync with tox.ini
rev: v0.11.13
hooks:
# Run the linter.
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli