-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.61 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: update-services-yaml
stages: [commit]
types: [python]
name: Update services.yaml
entry: python ./update-services-yaml.py
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: update-requirements
stages: [commit]
types: [python]
name: Update References to Requirements
entry: ./update-requirements.py
language: python
additional_dependencies:
- "requirements-parser==0.5.0"
- "setuptools==69.2.0"
pass_filenames: false
always_run: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
#- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
exclude: ^.vscode/
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: local
hooks:
- id: pytest-check
stages: [push]
types: [python]
name: pytest-check
entry: python -m pytest -v tests/
language: system
pass_filenames: false
always_run: true
ci:
skip:
- update-services-yaml
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
[dependabot skip]