Skip to content

Commit f1a4d32

Browse files
committed
fix
1 parent 7d142da commit f1a4d32

4 files changed

Lines changed: 43 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ repos:
3636
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
3737
- id: ruff-format
3838
types_or: [python, pyi, jupyter]
39-
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.17.0
41-
hooks:
42-
- id: mypy
43-
language: system
44-
args: ["--install-types", "--non-interactive"]
45-
# Esto tiene la desventaja de que siempre se va a ejecutar mypy
46-
# sobre todos los ficheros del repo (incluidos en la conf de mypy)
47-
# Se puede sustituir por `files:`
48-
# Ref: https://www.kianmeng.org/2022/09/excluding-files-with-mypy-hook-for-pre.html
49-
pass_filenames: false
5039
- repo: https://github.com/codespell-project/codespell
5140
rev: v2.4.1
5241
hooks:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ dev-dependencies = [
8383
"mypy",
8484
"pre-commit",
8585
"ipykernel",
86+
"pre-commit-uv>=4.1.4",
8687
]
8788

8889

template/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python
2-
from __future__ import annotations
2+
from __future__ import annotations # noqa: I001
33

44
from importlib.metadata import PackageNotFoundError, version
55

6-
import typer
6+
import typer # type: ignore
77

88
try:
99
__version__: str | None = version("template")

uv.lock

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)