Debian Codegraph @

.pre-commit-config.yaml

raw
1 ci:
2 autofix_prs: true
3 autoupdate_schedule: monthly
4 skip: [pylint, deptry, mypy]
5
6 repos:
7 - repo: https://github.com/pre-commit/pre-commit-hooks
8 rev: 'v6.0.0'
9 hooks:
10 - id: check-ast
11 - id: check-case-conflict
12 - id: check-symlinks
13 #- id: check-xml
14 - id: debug-statements
15 - id: end-of-file-fixer
16 - id: mixed-line-ending
17 - id: trailing-whitespace
18 exclude: setup.cfg
19 - repo: https://github.com/astral-sh/ruff-pre-commit
20 rev: 'v0.16.6'
21 hooks:
22 - id: ruff
23 args: [--fix]
24 files: ^(async_upnp_client|tests)/.+\.py$
25 - id: ruff-format
26 files: ^(async_upnp_client|tests)/.+\.py$
27 - repo: https://github.com/codespell-project/codespell
28 rev: 'v2.4.3'
29 hooks:
30 - id: codespell
31 args:
32 - --skip="./.*,*.csv,*.json"
33 - --quiet-level=2
34 exclude_types: [csv, json]
35 files: ^(async_upnp_client|tests)/.+\.py$
36 - repo: https://github.com/PyCQA/pylint
37 rev: 'v4.0.8'
38 hooks:
39 - id: pylint
40 additional_dependencies:
41 - pytest~=9.0.2
42 - voluptuous~=0.16.0
43 - aiohttp>3.9.0,<4.0
44 - python-didl-lite~=1.5.0
45 - defusedxml~=0.7.1
46 - pytest-asyncio >= 1.0,< 1.4
47 - pytest-aiohttp >=1.0.5,<1.2.0
48 files: ^(async_upnp_client|tests)/.+\.py$
49 - repo: https://github.com/fpgmaas/deptry
50 rev: '0.25.1'
51 hooks:
52 - id: deptry
53 - repo: https://github.com/pre-commit/mirrors-mypy
54 rev: 'v2.3.1'
55 hooks:
56 - id: mypy
57 args: [--ignore-missing-imports]
58 additional_dependencies:
59 - python-didl-lite~=1.5.0
60 - pytest~=9.0.2
61 - aiohttp~=3.13.3
62 - pytest-asyncio >= 1.0,< 1.4
63 - pytest-aiohttp >=1.0.5,<1.2.0
64 files: ^(async_upnp_client|tests)/.+\.py$