File size: 1,433 Bytes
ce4bc73
 
 
 
 
ff73b92
 
e3fd3fb
ce4bc73
ff73b92
 
e3fd3fb
ce4bc73
 
 
 
 
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
e3fd3fb
ce4bc73
 
 
 
 
 
e3fd3fb
ce4bc73
 
 
 
 
e3fd3fb
ce4bc73
779ae91
 
 
 
 
 
 
 
 
 
 
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
repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.11.4
    hooks:
      - id: ruff
        args: [--fix]
        files: ^(src|tests)/
        stages: [pre-commit]
      - id: ruff-format
        files: ^(src|tests)/
        types_or: [python, pyi]
        stages: [pre-push]

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: trailing-whitespace
        stages: [pre-commit]
      - id: end-of-file-fixer
        stages: [pre-commit]
      - id: check-yaml
        stages: [pre-push]
      - id: check-added-large-files
        stages: [pre-push]
      - id: check-toml
        stages: [pre-push]
      - id: check-json
        stages: [pre-push]
      - id: debug-statements
        stages: [pre-commit]
      - id: check-merge-conflict
        stages: [pre-commit]

  - repo: https://github.com/python-jsonschema/check-jsonschema
    rev: 0.28.0
    hooks:
      - id: check-github-workflows
        args: ["--verbose"]
        stages: [pre-push]

  - repo: https://github.com/python-poetry/poetry
    rev: 1.8.2
    hooks:
      - id: poetry-check
        stages: [pre-push]
        files: ^pyproject.toml$

  # Run local hooks using Poetry
  - repo: local
    hooks:
      - id: pytest-check
        name: pytest-check
        entry: poetry run pytest
        language: system
        pass_filenames: false
        always_run: true
        stages: [pre-push]