File: .pre-commit-config.yaml

package info (click to toggle)
python-fabio 2025.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,932 kB
  • sloc: python: 24,414; ansic: 1,126; makefile: 145; sh: 5
file content (26 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (3)
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
# 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: v6.0.0
    hooks:
    -   id: trailing-whitespace
    -   id: end-of-file-fixer
    -   id: check-yaml
    -   id: check-json
    -   id: check-toml
    -   id: check-added-large-files

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
  # Ruff version.
  rev: v0.14.1
  hooks:
    # Run the linter.
    - id: ruff-check
      types_or: [ python, pyi ]
      args: [ --fix ]
      files: ^src/
    # Run the formatter.
    #- id: ruff-format
    #  types_or: [ python, pyi ]