forked from LucasHild/mcp-server-bigquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (48 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (48 loc) · 1.29 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
45
46
47
48
49
50
51
52
# pre commit hook config
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
types_or: [ python, pyi ]
stages: [pre-commit]
args: [ --fix, --unsafe-fixes ]
- id: ruff-format
stages: [pre-commit]
types_or: [ python, pyi ]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.11
hooks:
- id: uv-lock
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.2
hooks:
# Run the linter.
# - id: ruff
# args: [ --fix, --unsafe-fixes]
# Run the formatter.
- id: ruff-format
# pre push needs install of podman & podman-compose
- repo: local
hooks:
- id: run-unit-tests
name: Run unit tests in container
entry: bash -c 'PYTEST=TRUE podman-compose up --build --force-recreate --remove-orphans'
language: system
stages: [pre-push]
verbose: true