summaryrefslogtreecommitdiff
path: root/packages/responsive-image/.pre-commit-config.yaml
blob: 4e2feafe2598a71843f1539bf05e7b4a9811256a (plain) (blame)
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.5.0
  hooks:
    - id: check-yaml
    - id: check-toml
    - id: check-symlinks
    - id: check-added-large-files
    - id: check-vcs-permalinks
    - id: debug-statements
    - id: trailing-whitespace
      exclude_types: ["image", "svg"]
    - id: end-of-file-fixer
    - id: mixed-line-ending

- repo: https://github.com/pre-commit/pygrep-hooks
  rev: 'v1.10.0'
  hooks:
    - id: python-check-blanket-noqa
    - id: python-check-blanket-type-ignore
    - id: python-use-type-annotations

- repo: https://github.com/astral-sh/ruff-pre-commit
  # Ruff version.
  rev: v0.1.14
  hooks:
    # Run the linter.
    - id: ruff
      args: [--fix]
    # Run the formatter.
    - id: ruff-format

- repo: https://github.com/pdm-project/pdm
  rev: '2.12.2'
  hooks:
    - id: pdm-lock-check