forked from SainsburyWellcomeCentre/aeon_mecha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (46 loc) · 1.26 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
# For info on running pre-commit manually, see `pre-commit run --help`
files: "^(test|aeon)\/.*$"
repos:
- repo: meta
hooks:
- id: identity
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
exclude: LICENSE
- id: no-commit-to-branch
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
# Run the linter with the `--fix` flag.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.380
hooks:
- id: pyright
args: [--level, error, --project, ./pyproject.toml]
# Pytest is expensive, so we show its set-up but leave it commented out.
# - repo: local
# hooks:
# - id: pytest-py
# name: pytest-py
# entry: pytest
# language: system
# pass_filenames: false
# args:
# - "-v"
# - "-n"
# - "auto"