-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (44 loc) · 1.42 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (44 loc) · 1.42 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
33
34
35
36
37
38
39
40
41
42
43
44
# Pre-commit hooks run via `prek` (a fast, pre-commit-compatible runner).
# CI mirrors local behaviour: `uv run prek run --all-files` (pushes) or
# `uv run prek run --from-ref BASE --to-ref HEAD` (PRs).
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude_types: [svg]
- id: end-of-file-fixer
exclude_types: [svg]
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=1500"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
- id: ruff-format
types_or: [python, pyi, jupyter, text]
files: \.(py|pyi|ipynb|qmd)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
args: [--ignore-missing-imports]
files: ^tidydraws/
additional_dependencies: [numpy>=1.20, pandas-stubs, polars]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: Add MIT license header to Python files
args:
- --license-filepath=LICENSE_HEADER.txt
- --comment-style=#
- --detect-license-in-X-top-lines=10
- --use-current-year
files: \.py$
exclude: ^tests/__init__\.py$