Skip to content

Commit 71e4fdb

Browse files
committed
chore: enable mypy with baseline
Related: orsinium-labs/mypy-baseline#30
1 parent 6aae554 commit 71e4fdb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+598
-92
lines changed

.pre-commit-config.yaml

Lines changed: 101 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,105 @@
1-
---
1+
# cspell: ignore gitmoji
22
ci:
3-
# We rely on renovate to update it but there is no way to fully disable it
4-
# https://github.com/pre-commit-ci/issues/issues/83
53
autoupdate_schedule: quarterly
64
skip:
7-
- ansible-lint
8-
- renovate-config-validator # container limits
5+
- ansible-lint
6+
- uv-lock
7+
- renovate-config-validator
98
repos:
10-
- repo: https://github.com/renovatebot/pre-commit-hooks
11-
rev: 41.91.1
12-
hooks:
13-
- id: renovate-config-validator
14-
alias: renovate
15-
args: [--strict]
16-
- repo: https://github.com/biomejs/pre-commit
17-
rev: "v2.2.2"
18-
hooks:
19-
- id: biome-check
20-
name: biome
21-
alias: biome
22-
args: [--unsafe]
23-
- repo: https://github.com/PyCQA/doc8.git
24-
rev: v1.1.1
25-
hooks:
26-
- id: doc8
27-
- repo: https://github.com/streetsidesoftware/cspell-cli
28-
rev: v9.2.0
29-
hooks:
30-
- id: cspell
31-
name: cspell
32-
# entry: codespell --relative
33-
args: [--relative, --no-progress, --no-summary]
34-
- repo: https://github.com/codespell-project/codespell
35-
rev: v2.4.1
36-
hooks:
37-
- id: codespell
38-
additional_dependencies: ["tomli>=2.2.1; python_version<'3.11'"]
39-
- repo: https://github.com/igorshubovych/markdownlint-cli
40-
rev: v0.45.0
41-
hooks:
42-
- id: markdownlint
43-
- repo: https://github.com/pre-commit/pre-commit-hooks.git
44-
rev: v6.0.0
45-
hooks:
46-
- id: check-added-large-files
47-
- id: check-merge-conflict
48-
- id: check-symlinks
49-
- id: debug-statements
50-
- id: detect-private-key
51-
- id: end-of-file-fixer
52-
- id: trailing-whitespace
53-
- id: mixed-line-ending
54-
- id: fix-byte-order-marker
55-
- id: check-executables-have-shebangs
56-
- id: check-merge-conflict
57-
- id: debug-statements
58-
language_version: python3
59-
- repo: https://github.com/pappasam/toml-sort
60-
rev: v0.24.2
61-
hooks:
62-
- id: toml-sort-fix
63-
alias: toml
64-
- repo: https://github.com/astral-sh/ruff-pre-commit
65-
rev: v0.12.11
66-
hooks:
67-
- id: ruff-format
68-
alias: ruff
69-
- id: ruff-check
70-
args: ["--fix"]
71-
alias: ruff
72-
- repo: https://github.com/ansible/ansible-lint
73-
rev: v25.8.2
74-
hooks:
75-
- id: ansible-lint
76-
entry: env ANSIBLE_ROLES_PATH="$ANSIBLE_ROLES_PATH:test/roles" ansible-lint
77-
args: [--fix]
9+
- hooks:
10+
- additional_dependencies:
11+
- cz-conventional-gitmoji
12+
id: commitizen
13+
- id: commitizen-branch
14+
stages:
15+
- pre-push
16+
repo: https://github.com/commitizen-tools/commitizen
17+
rev: v4.8.3
18+
- hooks:
19+
- id: uv-sync
20+
- alias: deps
21+
args:
22+
- --upgrade
23+
id: uv-lock
24+
name: 'deps: upgrade via uv sync --upgrade'
25+
stages:
26+
- manual
27+
- alias: lock
28+
id: uv-lock
29+
repo: https://github.com/astral-sh/uv-pre-commit
30+
rev: 0.8.13
31+
- hooks:
32+
- alias: renovate
33+
args:
34+
- --strict
35+
id: renovate-config-validator
36+
repo: https://github.com/renovatebot/pre-commit-hooks
37+
rev: 41.91.1
38+
- hooks:
39+
- alias: biome
40+
args:
41+
- --unsafe
42+
id: biome-check
43+
name: biome
44+
repo: https://github.com/biomejs/pre-commit
45+
rev: v2.2.2
46+
- hooks:
47+
- id: doc8
48+
repo: https://github.com/PyCQA/doc8.git
49+
rev: v1.1.1
50+
- hooks:
51+
- args:
52+
- --relative
53+
- --no-progress
54+
- --no-summary
55+
id: cspell
56+
name: cspell
57+
repo: https://github.com/streetsidesoftware/cspell-cli
58+
rev: v9.2.0
59+
- hooks:
60+
- additional_dependencies:
61+
- tomli>=2.2.1; python_version<'3.11'
62+
id: codespell
63+
repo: https://github.com/codespell-project/codespell
64+
rev: v2.4.1
65+
- hooks:
66+
- id: markdownlint
67+
repo: https://github.com/igorshubovych/markdownlint-cli
68+
rev: v0.45.0
69+
- hooks:
70+
- id: check-added-large-files
71+
- id: check-merge-conflict
72+
- id: check-symlinks
73+
- id: debug-statements
74+
- id: detect-private-key
75+
- id: end-of-file-fixer
76+
- id: trailing-whitespace
77+
- id: mixed-line-ending
78+
- id: fix-byte-order-marker
79+
- id: check-executables-have-shebangs
80+
- id: check-merge-conflict
81+
- id: debug-statements
82+
language_version: python3
83+
repo: https://github.com/pre-commit/pre-commit-hooks.git
84+
rev: v6.0.0
85+
- hooks:
86+
- alias: toml
87+
id: toml-sort-fix
88+
repo: https://github.com/pappasam/toml-sort
89+
rev: v0.24.2
90+
- hooks:
91+
- alias: ruff
92+
id: ruff-format
93+
- alias: ruff
94+
args:
95+
- --fix
96+
id: ruff-check
97+
repo: https://github.com/astral-sh/ruff-pre-commit
98+
rev: v0.12.11
99+
- hooks:
100+
- args:
101+
- --fix
102+
entry: env ANSIBLE_ROLES_PATH="$ANSIBLE_ROLES_PATH:test/roles" ansible-lint
103+
id: ansible-lint
104+
repo: https://github.com/ansible/ansible-lint
105+
rev: v25.8.2

0 commit comments

Comments
 (0)