Modernize dev tooling: uv + Ruff + Pyrefly, Python 3.13+, pydantic v2, click 8 - #1
Open
giancarlosisasi wants to merge 9 commits into
Open
Modernize dev tooling: uv + Ruff + Pyrefly, Python 3.13+, pydantic v2, click 8#1giancarlosisasi wants to merge 9 commits into
giancarlosisasi wants to merge 9 commits into
Conversation
Also consolidate tooling config by moving from setup.cfg to pyproject.toml
- README: uv/ruff/pyrefly dev workflow, GitHub Actions CI badge + static Python 3.13|3.14 badge, Python 3.13+ requirements, GHA CI-step example (replacing Travis), checkout@v4 - CHANGELOG: 0.2.0 entry documenting the toolchain modernization and BREAKING Python/pydantic/click bumps - pyproject/uv.lock: bump version 0.1.0 -> 0.2.0
Resolve the 50 pyrefly errors in tests/ that were downstream of the pydantic v2 Optional fields (closes task 4.6): - builder.py: widen build_types param list[SchemaItem] -> Sequence[SchemaItem] (covariant, read-only) to accept list[SchemaObject]/list[SchemaEnum] - fixtures/danger.py: fix **kwargs annotation (dict[str, Any] -> list[str]) - conftest.py: narrow patcher.fs; pass b'' instead of None to MockPopen stdout - test_danger/test_models/test_plugins: assert-is-not-None narrowing guards for Optional model fields - test_plugins: add explicit danger-property cache test (preserves plugins.py branch coverage) Full gate green on Python 3.13 and 3.14: ruff format/check, pyrefly (0 errors), pytest (100% coverage).
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.
Summary
Modernizes the
danger-pythondev toolchain and runtime baseline (OpenSpec changemodernize-dev-tooling). One tool per job — uv (env/deps), Ruff (lint + format), Pyrefly (types) — with all tool config consolidated intopyproject.toml.Toolchain changes
uv.lock,uv_build)ci.yml)pyproject.tomlonlysetup.cfgBREAKING
Preserved
[tool.coverage.report]).tests/fixtures/).Verification
ruff format --check,ruff check,pyrefly check(0 errors),pytest— 100% coverage, 56 tests.uv buildproduces a wheel + sdist (danger_python-0.2.0).openspec validate modernize-dev-tooling --strictpasses.Ships as 0.2.0 (pre-1.0: the package is still Alpha and its public surface is unchanged).