-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (32 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
35 lines (32 loc) · 1.39 KB
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.13
hooks:
# Formatter. Run before ``ruff`` so the check sees formatter output.
- id: ruff-format
exclude: '/(\.venv|cdk\.out|lambda/kubectl-applier-simple-build|lambda/helm-installer-build)/'
# Linter, including isort-style import sorting via the ``I`` rule
# selected in pyproject.toml.
- id: ruff
args: [--fix, --exclude, lambda/kubectl-applier-simple-build, --exclude, lambda/helm-installer-build]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.1.0
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML]
args: [--ignore-missing-imports, --no-error-summary]
# gco/stacks/ excluded here because CDK type stubs aren't installed in pre-commit.
# Stacks are type-checked in CI via the lint:typecheck-stacks job.
files: ^(gco/(config|models|services)/|cli/)
pass_filenames: false
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
hooks:
# Configuration (rule set, globs, ignores) lives in
# .markdownlint-cli2.yaml at the repo root. See CONTRIBUTING.md for
# how to run the same check locally via `npx markdownlint-cli2`.
- id: markdownlint-cli2