Skip to content

Python: [Bug]: poe syntax fails with FileNotFoundError for azurefunctions/pyproject.toml #7508

Description

@PratikWayase

Description

What happened:
When running the uv run poe syntax command from the python directory, the workspace task script crashes with a FileNotFoundError. The script workspace_poe_tasks.py attempts to discover all workspace projects and tries to open packages/azurefunctions/pyproject.toml, but the file does not exist in the repository.


What did I expect to happen:
I expected the poe syntax command to successfully run formatting (fmt) and linting (lint) checks across all available workspace packages without crashing.


Steps to reproduce this issue:

Clone the repository and checkout the branch.
Navigate to the python directory: cd python
Ensure dependencies are installed (e.g., via uv sync).
Run the syntax command: uv run poe syntax

Code Sample

Error Messages / Stack Traces

Poe => python scripts/workspace_poe_tasks.py syntax
Traceback (most recent call last):
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 833, in <module>
    main()
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 673, in main
    run_syntax(
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 659, in run_syntax
    run_fan_out(["fmt", "lint"], project_pattern, [])
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 239, in run_fan_out
    selected_projects = select_projects(project_pattern)
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 179, in select_projects
    for project in discover_workspace_projects()
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 149, in discover_workspace_projects
    pyproject = load_toml(WORKSPACE_ROOT / project_path / "pyproject.toml")
  File "C:\Users\prati\agent-framework\python\scripts\workspace_poe_tasks.py", line 141, in load_toml
    with file_path.open("rb") as file:
  File "C:\Users\prati\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\pathlib\__init__.py", line 776, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\prati\\agent-framework\\python\\packages\\azurefunctions\\pyproject.toml'

Package Versions

Workspace version: 1.13.0

Python Version

3.14

Additional Context

No response

Metadata

Metadata

Assignees

Labels

pythonUsage: [Issues, PRs], Target: Python

Type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions