PDM plugin configuration support

Open
#4,176 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
json, python
Domain
tooling

Research direction

Open src/schemas/json/partial-pdm.json and compare its current PDM configuration entries with the tool.pdm.autoexport example in the issue. Update the schema so this plugin-defined configuration validates, then verify that the shown pyproject.toml example no longer reports autoexport as an unexpected property.

Written by the indexing model from the issue text.

Description

Schema
Area with issue?

JSON Schema

✔️ Expected Behavior

https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/partial-pdm.json currently does not support plugin-defined configuration (e.g. pdm.autoexport for https://github.com/pdm-project/pdm-autoexport).

❌ Actual Behavior

image

Additional properties are not allowed ('autoexport' was unexpected) is shown on validation.

YAML or JSON file that does not work.
# pyproject.toml

# This would work
[tool.pdm.dev-dependencies]
dev = ["black>=24.10.0"]

# But this won't
[[tool.pdm.autoexport]]
filename = "requirements.txt"
without-hashes = true
IDE or code editor.

Visual Studio Code

Are you making a PR for this?

No, someone else must create the PR.

Dominant language
JavaScript
Stars
3.8k
Forks
2.3k
Avg merge
19h 59m
Merged PRs (30d)
127

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.