File: .pre-commit-config.yaml

package info (click to toggle)
python-aioesphomeapi 25.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 964 kB
  • sloc: python: 10,688; sh: 8; makefile: 4
file content (38 lines) | stat: -rw-r--r-- 933 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
---
exclude: '^aioesphomeapi/api.*$'
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
    - id: trailing-whitespace
    - id: end-of-file-fixer
    - id: check-added-large-files
  - repo: https://github.com/asottile/pyupgrade
    rev: v2.37.1
    hooks:
    - id: pyupgrade
      args: [--py39-plus]
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.5.4
    hooks:
      - id: ruff
        args: [--fix]
      - id: ruff-format
  - repo: https://github.com/psf/black-pre-commit-mirror
    rev: 24.1.1
    hooks:
    - id: black
      args:
        - --safe
        - --quiet
      files: ^((aioesphomeapi|tests)/.+)?[^/]+\.py$
  - repo: https://github.com/cdce8p/python-typing-update
    rev: v0.6.0
    hooks:
    - id: python-typing-update
      stages: [manual]
      args:
      - --py39-plus
      - --force
      - --keep-updates
      files: ^(aioesphomeapi)/.+\.py$