File: .pre-commit-config.yaml

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,924 kB
  • sloc: python: 21,132; javascript: 187; makefile: 89; sh: 29; xml: 10
file content (44 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download
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
repos:

  - repo: https://github.com/ComPWA/taplo-pre-commit
    rev: v0.9.3
    hooks:
      - id: taplo-format

  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.9.9
    hooks:
    - id: ruff
      args: [--fix]
    - id: ruff-format

  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.15.0
    hooks:
    - id: mypy
      files: sphinx_needs/.*
      args: []
      additional_dependencies:
      - sphinx==7.4.7
      - docutils==0.20
      - types-docutils==0.20.0.20240201
      - types-jsonschema
      - types-requests

  # TODO this does not work on pre-commit.ci
  # - repo: https://github.com/astral-sh/uv-pre-commit
  #   rev: 0.5.5
  #   hooks:
  #     - id: uv-lock  # Update the uv lockfile

  - repo: local
    hooks:
      - id: check-readme
        name: check-readme
        files: README.rst
        language: python
        entry: rst2html.py README.rst --halt=warning
        pass_filenames: false
        additional_dependencies:
        - docutils==0.20.1
        - pygments