Type object
File match pdm.toml
Schema URL https://catalog.lintel.tools/schemas/schemastore/pdm/latest.json
Source https://www.schemastore.org/pdm.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

build_isolation boolean

Isolate the build environment from the project environment Env var: PDM_BUILD_ISOLATION

Default: true
use_uv boolean

Use uv for faster resolution and installation Env var: PDM_USE_UV

Default: false
install object
3 nested properties
cache boolean

Enable caching of wheel installations

Default: true
cache_method string

Specify how to create links to the caches

Default: "symlink"
Values: "symlink" "symlink_individual" "hardlink" "pth"
parallel boolean

Whether to perform installation and uninstallation in parallel Env var: PDM_PARALLEL_INSTALL

Default: true
python object
3 nested properties
use_pyenv boolean

Use the pyenv interpreter

Default: true
use_venv boolean

Use virtual environments when available Env var: PDM_USE_VENV

Default: true
providers array

List of python provider names for findpython

pypi Record<string, object>
6 nested properties
url string

The URL of PyPI mirror Env var: PDM_PYPI_URL

Default: "https://pypi.org/simple"
username string

The username to access PyPI Env var: PDM_PYPI_USERNAME

password string

The password to access PyPI Env var: PDM_PYPI_PASSWORD

ignore_stored_index boolean

Ignore the configured indexes Env var: PDM_IGNORE_STORED_INDEX

Default: false
verify_ssl boolean

Verify SSL certificate when query PyPI

Default: "true"
json_api boolean

Consult PyPI's JSON API for package metadata Env var: PDM_PYPI_JSON_API

Default: false
strategy object
4 nested properties
save string

Specify how to save versions when a package is added

Default: "minimum"
Values: "exact" "wildcard" "minimum" "compatible"
update string

The default strategy for updating packages

Default: "reuse"
Values: "eager" "reuse" "all" "reuse-installed"
resolve_max_rounds integer

Specify the max rounds of resolution process Env var: PDM_RESOLVE_MAX_ROUNDS

Default: 10000
inherit_metadata boolean

Inherit the groups and markers from parents for each package

Default: true
venv object
4 nested properties
backend string

Default backend to create virtualenv Env var: PDM_VENV_BACKEND

Default: "virtualenv"
prompt string

Formatted string to be displayed in the prompt when virtualenv is active Env var: PDM_VENV_PROMPT

Default: "{project_name}-{python_version}"
in_project boolean

Create virtualenv in .venv under project root Env var: PDM_VENV_IN_PROJECT

Default: true
with_pip boolean

Install pip when creating a new venv Env var: PDM_VENV_WITH_PIP

Default: false
repository Record<string, object>

Definitions

pypi-def object
url string required

The URL of custom package source

username string

The username to access custom source

password string

The password to access custom source

type string

index or find_links

Default: "index"
Values: "index" "find_links"
verify_ssl boolean

Verify SSL certificate when query custom source

Default: true
repository-def object
url string

The URL of custom package source

Default: "https://pypi.org/simple"
username string

The username to access custom repository

password string

The password to access custom repository

ca_certs string

Path to a PEM-encoded CA cert bundle (used for server cert verification)

verify_ssl boolean

Verify SSL certificate when uploading to repository

Default: true