Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 1.03 KB

File metadata and controls

74 lines (54 loc) · 1.03 KB

UV Module

Gestión de Python con uv.

Tasks

uv:check

Verifica Python, uv, pre-commit y ruff.

uv:setup

Instala dependencias de Python.

uv sync --all-groups

uv:fmt

Formatea código con ruff.

uv run ruff format ./ {{.CLI_ARGS}}

uv:lint

Linting con ruff y mypy.

uv run ruff check ./ {{.CLI_ARGS}}
uv run mypy src

uv:test

Ejecuta tests con pytest y coverage.

uv:pytest

Ejecuta tests con coverage.

uv run coverage run -m pytest -s -vv
uv run coverage report
uv run coverage html

uv:mypy

Ejecuta verificación de tipos con mypy.

uv run mypy src

uv:environment

Instala versión de Python.

uv python install

uv:precommit

Instala hooks de pre-commit.

uv run pre-commit install
uv run pre-commit install -t pre-push
uv run pre-commit install -t commit-msg
uv run pre-commit install -t prepare-commit-msg

Dependencias

  • python
  • uv
  • pre-commit
  • ruff
  • mypy