Skip to content

Commit

Permalink
test with language system
Browse files Browse the repository at this point in the history
  • Loading branch information
albertotb committed Aug 23, 2024
1 parent badc200 commit 65114f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ repos:
rev: v1.11.1
hooks:
- id: mypy
language: system
args: ["--install-types", "--non-interactive"]
additional_dependencies: [numpy]
# Esto tiene la desventaja de que siempre se va a ejecutar mypy
# sobre todos los ficheros del repo (incluidos en la conf de mypy)
# Se puede sustituir por `files:`
Expand Down
2 changes: 1 addition & 1 deletion template/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
app = FastAPI()


@app.get("/") # type:ignore[misc]
@app.get("/")

Check warning on line 10 in template/api.py

View check run for this annotation

Codecov / codecov/patch

template/api.py#L10

Added line #L10 was not covered by tests
def read_root() -> dict[str, str]:
"""Check API version."""
return {"template-api": f"version {__version__}"}
Expand Down

0 comments on commit 65114f4

Please sign in to comment.