Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partial-poe.json schema rejects valid task definitions #4290

Open
khanfluence opened this issue Dec 18, 2024 · 0 comments
Open

partial-poe.json schema rejects valid task definitions #4290

khanfluence opened this issue Dec 18, 2024 · 0 comments

Comments

@khanfluence
Copy link

Area with issue?

JSON Schema

✔️ Expected Behavior

Poe tasks defined by keys under tool.poe.tasks are accepted as valid.

This form of task is the first one in the Poe docs: https://poethepoet.natn.io/tasks/index.html#defining-tasks

❌ Actual Behavior

Poe tasks defined by simple keys under tool.poe.tasks are rejected as invalid.

[tool.poe.tasks]
format = "ruff format"       # wrongfully rejected
format2.cmd = "ruff format"  # accepted

[tool.poe.tasks.format3]
cmd = "ruff format"          # accepted

YAML or JSON file that does not work.

pyproject.toml:

[tool.poe.tasks]
format = "ruff format"

IDE or code editor.

Visual Studio Code

Are you making a PR for this?

No, someone else must create the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant