Skip to content

Python: Include pyproject.toml in ParseProject results#6744

Merged
knutwannheden merged 1 commit intomainfrom
calm-parrot
Feb 14, 2026
Merged

Python: Include pyproject.toml in ParseProject results#6744
knutwannheden merged 1 commit intomainfrom
calm-parrot

Conversation

@knutwannheden
Copy link
Copy Markdown
Contributor

@knutwannheden knutwannheden commented Feb 14, 2026

Summary

  • Wire PyProjectTomlParser into PythonRewriteRpc.parseProject() so that pyproject.toml is parsed and returned alongside .py files
  • The parsed pyproject.toml is a Toml.Document with a PythonResolutionResult marker attached
  • Subset of Python: Support legacy project manifests (setup.cfg etc.) #6716 — just the pyproject.toml integration, without legacy manifest support (requirements.txt, setup.cfg, setup.py)

Test plan

  • ./gradlew :rewrite-python:integTest --tests "*ParseProjectIntegTest.includesPyprojectToml*" passes
  • Existing ParseProjectIntegTest tests still pass

Wire PyProjectTomlParser into PythonRewriteRpc.parseProject() so that
pyproject.toml files are parsed and returned alongside .py files from the
RPC, with a PythonResolutionResult marker attached.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 14, 2026
@knutwannheden knutwannheden changed the title Python: Include pyproject.toml in ParseProject results Python: Include pyproject.toml in ParseProject results Feb 14, 2026
@knutwannheden knutwannheden merged commit 4d3b85b into main Feb 14, 2026
1 check passed
@knutwannheden knutwannheden deleted the calm-parrot branch February 14, 2026 16:38
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant