Modernize tooling: uv, ruff format, ty, typer+rich, justfile, GitHub Actions CI/CD#2
Open
Modernize tooling: uv, ruff format, ty, typer+rich, justfile, GitHub Actions CI/CD#2
Conversation
…Actions CI/CD - Switch build backend from setuptools to hatchling - Replace click with typer + rich in main.py (type-annotation-first CLI) - Replace black + isort with ruff format; update ruff config to modern split style - Add ty for type checking - Replace Makefile with justfile (sync, lint, format, typecheck, test, check, build, publish) - Add src/cover_image/__init__.py (needed for hatchling + ty) - Add test skeleton: test_shape.py and test_pattern_generators.py - Add .github/workflows/ci.yml (push/PR: lint, format check, type check, pytest) - Add .github/workflows/publish.yml (on GitHub Release: uv build + PyPI Trusted Publishing) https://claude.ai/code/session_01SMSTWgWKaqpB6wHGC2z5Zm
- pyproject.toml: add [tool.hatch.build.targets.wheel] packages so hatchling can find cover_image (project name != package name) - main.py: Callable from collections.abc (UP035), StrEnum instead of str+Enum (UP042) - test_shape.py: remove unused numpy import (F401) https://claude.ai/code/session_01SMSTWgWKaqpB6wHGC2z5Zm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01SMSTWgWKaqpB6wHGC2z5Zm