-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.33 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.33 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
repos:
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
args: ["--count", "--select=E9,F63,F7,F82", "--show-source", "--statistics"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
args: ["--failure-threshold", "error", "Dockerfile"]
- repo: local
hooks:
- id: docker-compose-config
name: docker compose config
entry: docker compose --env-file .env.example config
language: system
pass_filenames: false
stages: [pre-commit]
- id: docker-build-ci
name: docker build (ci parity)
entry: docker build --file Dockerfile --tag telegram-mcp:ci .
language: system
pass_filenames: false
stages: [pre-push]
- id: pytest-coverage-ci
name: pytest with coverage (ci parity)
entry: uv run --env-file .env.example pytest --cov --cov-report=term-missing --cov-report=xml
language: system
pass_filenames: false
stages: [pre-push]