File: .pre-commit-config.yaml

package info (click to toggle)
numcodecs 0.16.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,004 kB
  • sloc: python: 4,167; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 937 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
exclude: ^fixture/  # files with trailing whitespaces on purpose
ci:
  autoupdate_commit_msg: "chore: update pre-commit hooks"
  autoupdate_schedule: "monthly"
  autofix_commit_msg: "style: pre-commit fixes"
  autofix_prs: false
default_stages: [pre-commit, pre-push]
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
    - id: trailing-whitespace
    - id: check-yaml
    - id: debug-statements

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

  - repo: https://github.com/scientific-python/cookie
    rev: 2025.01.22
    hooks:
    - id: sp-repo-review

  -   repo: https://github.com/pre-commit/mirrors-mypy
      rev: v1.15.0
      hooks:
      -   id: mypy
          args: [--config-file, pyproject.toml]
          additional_dependencies: [numpy, pytest, crc32c, zfpy, 'zarr>=3']