Skip to content

Commit

Permalink
Merge pull request #117 from DanCardin/dc/type-lens
Browse files Browse the repository at this point in the history
refactor: Adopt the type-lens package.
  • Loading branch information
DanCardin authored Sep 30, 2024
2 parents a9bee72 + 0baef08 commit cde14de
Show file tree
Hide file tree
Showing 18 changed files with 361 additions and 610 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ install:
uv sync --all-extras

test:
uv run --all-extras coverage run -m pytest src tests
uv run coverage combine
uv run coverage report
uv run coverage xml
uv run --no-sync --all-extras coverage run -m pytest src tests
uv run --no-sync coverage combine
uv run --no-sync coverage report
uv run --no-sync coverage xml

lint:
uv run ruff check src tests examples || exit 1
uv run --all-extras mypy src tests examples || exit 1
uv run ruff format --check src tests examples || exit 1
uv run --no-sync ruff check src tests examples || exit 1
uv run --no-sync --all-extras mypy src tests examples || exit 1
uv run --no-sync ruff format --check src tests examples || exit 1

format:
uv run ruff check src tests examples --fix
uv run ruff format src tests examples
uv run --no-sync ruff check src tests examples --fix
uv run --no-sync ruff format src tests examples

readme-image:
FORCE_COLOR=true uv run python readme.py --help | ansitoimg --title '' docs/source/_static/example.svg
FORCE_COLOR=true uv run --no-sync python readme.py --help | ansitoimg --title '' docs/source/_static/example.svg
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ include = [
requires-python = ">=3.8,<4"

dependencies = [
"typing-extensions >= 4.8.0",
"typing-inspect >= 0.9.0",
"rich",
"eval_type_backport; python_version < '3.10'",
"typing-extensions >= 4.8.0",
"type-lens >= 0.2.2",
]

[project.optional-dependencies]
Expand All @@ -43,7 +42,6 @@ dev-dependencies = [
"mypy >= 1.0.0",
"ruff >= 0.6.2",
"docutils >= 0.20.0",
"typing-extensions >= 4.8.0",
"types-docutils >= 0.20.0",

"attrs",
Expand Down
Loading

0 comments on commit cde14de

Please sign in to comment.