File: .pre-commit-config.yaml

package info (click to toggle)
dosage 3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,400 kB
  • sloc: python: 12,703; sh: 55; makefile: 6
file content (62 lines) | stat: -rw-r--r-- 1,713 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: © 2025 Tobias Gruetzmacher
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
repos:
  - repo: meta
    hooks:
      - id: check-useless-excludes
      - id: check-hooks-apply

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
    hooks:
      - id: check-added-large-files
      - id: check-case-conflict
      - id: check-executables-have-shebangs
      - id: check-illegal-windows-names
      - id: check-merge-conflict
      - id: check-shebang-scripts-are-executable
        exclude: Jenkinsfile
      - id: check-toml
      - id: check-yaml
      - id: destroyed-symlinks
      - id: end-of-file-fixer
      - id: fix-byte-order-marker
      - id: mixed-line-ending
      - id: trailing-whitespace
        exclude_types: [svg]

  - repo: https://github.com/PyCQA/isort
    rev: "7.0.0"
    hooks:
      - id: isort

# Not yet, removes comments: https://github.com/tox-dev/tox-ini-fmt/issues/42
#  - repo: https://github.com/tox-dev/tox-ini-fmt
#    rev: "1.5.0"
#    hooks:
#      - id: tox-ini-fmt

  - repo: https://github.com/PyCQA/flake8
    rev: "7.3.0"
    hooks:
      - id: flake8
        additional_dependencies:
          - flake8-2020
          - flake8-breakpoint
          - flake8-bugbear
          - flake8-coding
          - flake8-commas
          - flake8-comprehensions
          - flake8-deprecated
          - flake8-eradicate
          - flake8-fixme
          - flake8-future-annotations
          - flake8-logging
          - flake8-noqa
          - Flake8-pyproject
          - flake8-pytest
          - flake8-pytest-style
          - mccabe