File: .pre-commit-config.yaml

package info (click to toggle)
pyartnet 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 668 kB
  • sloc: python: 1,845; makefile: 5
file content (51 lines) | stat: -rw-r--r-- 1,346 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
repos:

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
    hooks:
      - id: check-ast
      - id: check-builtin-literals
      - id: check-docstring-first
      - id: check-merge-conflict
      - id: check-toml
      - id: check-yaml
      - id: debug-statements
      - id: end-of-file-fixer
        exclude: \.(?:pdf|svg)$
      - id: trailing-whitespace


  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.14.3
    hooks:
      - id: ruff
        name: ruff unused imports
        #  F401 [*] {name} imported but unused
        args: [ "--select", "F401", "--extend-exclude", "__init__.py", "--fix"]

      - id: ruff
        #  I001 [*] Import block is un-sorted or un-formatted
        # UP035 [*] Import from {target} instead: {names}
        #  Q000 [*] Double quote found but single quotes preferred
        #  Q001 [*] Double quote multiline found but single quotes preferred
        args: [ "--select", "I001,UP035,Q000,Q001", "--fix"]


  - repo: https://github.com/pre-commit/pygrep-hooks
    rev: v1.10.0
    hooks:
      - id: rst-backticks


  - repo: https://github.com/JelleZijlstra/autotyping
    rev: 24.9.0
    hooks:
      - id: autotyping
        types: [python]
        args: [--safe]


  - repo: meta
    hooks:
      - id: check-hooks-apply
      - id: check-useless-excludes