File: .pre-commit-config.yaml

package info (click to toggle)
python-octavia-lib 3.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 536 kB
  • sloc: python: 2,148; sh: 57; makefile: 23
file content (32 lines) | stat: -rw-r--r-- 1,050 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
# 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: 3298ddab3c13dd77d6ce1fc0baf97691430d84b0 # v4.3.0
  hooks:
    - id: trailing-whitespace
    # Replaces or checks mixed line ending
    - id: mixed-line-ending
      args: ['--fix', 'lf']
      exclude: '.*\.(svg)$'
    - id: end-of-file-fixer
    # Forbid files which have a UTF-8 byte-order marker
    - id: check-byte-order-marker
    # Checks that non-binary executables have a proper shebang
    - id: check-executables-have-shebangs
    # Check for files that contain merge conflict strings.
    - id: check-merge-conflict
    - id: debug-statements
    - id: check-yaml
      files: .*\.(yaml|yml)$
    - id: check-added-large-files
- repo: local
  hooks:
    - id: flake8
      name: flake8
      additional_dependencies:
        - hacking>=6.1.0,<6.2.0
      language: python
      entry: flake8
      files: '^.*\.py$'
      exclude: '^(doc|releasenotes|tools)/.*$'