Debian Codegraph @

.pre-commit-config.yaml

raw
1 repos:
2 - repo: https://github.com/astral-sh/ruff-pre-commit
3 rev: v0.16.1
4 hooks:
5 - id: ruff-format
6 - id: ruff
7 args: [ --fix, --exit-non-zero-on-fix ]
8 - repo: https://github.com/pre-commit/mirrors-mypy
9 rev: v2.0.0
10 hooks:
11 - id: mypy
12 # this hook resolves its own environment, so every version here is one
13 # that can drift from pyproject.toml's. The three textual pins are the
14 # ones that matter: they are pinned exactly in pyproject.toml because
15 # their APIs move, and a stale copy here fails the hook on code that
16 # `uv run mypy` accepts. Keep all four in step with pyproject.toml.
17 additional_dependencies:
18 - click
19 - duckdb>=1.5.1
20 - shandy-sqlfmt[jinjafmt]
21 - "textual==8.2.8"
22 - "textual-fastdatatable==0.17.1"
23 - "textual-textarea==0.18.1"
24 - pytest
25 # reaches this environment transitively in the project's, through
26 # pytest-textual-snapshot, so it has to be asked for by name here
27 - syrupy
28 - types-pygments
29 - rich-click>=1.7.1
30 - questionary
31 - tomlkit
32 - pandas-stubs
33 - importlib_metadata
34 - boto3-stubs
35 - msgspec
36 args:
37 - "--disallow-untyped-calls"
38 - "--disallow-untyped-defs"
39 - "--disallow-incomplete-defs"
40 - "--strict-optional"
41 - "--warn-return-any"
42 - "--warn-no-return"
43 - "--warn-redundant-casts"
44 - "--no-warn-unused-ignores"
45 - "--allow-untyped-decorators"