-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (31 loc) · 883 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
34 lines (31 loc) · 883 Bytes
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
# Pre-commit hooks for latence-python
# Install with: pre-commit install
# Run manually: pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
# Run the formatter
- id: ruff-format
args: [--config, pyproject.toml]
# Run the linter
- id: ruff
args: [--fix, --config, pyproject.toml]
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy src/latence --config-file pyproject.toml
language: system
types: [python]
pass_filenames: false
always_run: true