-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (33 loc) · 1.24 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Hooks
# Please note the hooks below are intended to be installed as a pre-push hook, e.g. specifying the --hook-type option:
# pre-commit install --hook-type pre-push
# Hooks can and should be customized for personal and project-specific settings.
# Checkin to the repository should be aligned with the other service maintainers.
default_language_version:
python: python3.12
default_stages: [pre-push]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.7" # Update to the latest Ruff version
hooks:
- id: ruff
name: Ruff Linter & Formatter
args: ["--fix"]
# Use local hooks to tools installed via the environment-dev.yml.
# This should allow to ake the installed tool without pre-commit, e.g., integrated in the IDE or manually.
- repo: local
hooks:
- id: uv-pytoml-check
name: UV Pytoml Check
entry: uv pip check
language: system
types: [python]
pass_filenames: false
- id: uv-requirements-sync
name: UV Sync Dependencies
entry: uv pip compile pyproject.toml -o requirements.txt
language: system
types: [python]
pass_filenames: false