CI/CD | |
Package | |
Meta |
Validate and format pyproject.toml
files.
Table of Contents
pip install pyproject-validate
usage: pyproject-validate [-h] [--fix] [--config CONFIG] [--version]
optional arguments:
-h, --help show this help message and exit
--fix whether to apply fixes for any encountered errors
--config CONFIG explicit path to the project config file
--version show program's version number and exit
Adhere to the data model defined by PEP 517 and PEP 621.
Ensure normalized project names.
Before:
[project]
name = "Foo.bAr"
After:
name = "foo-bar"
Ensure normalized and sorted PEP 508 dependency definitions.
Before:
[project]
dependencies = [
"python-dateutil",
"bAr.Baz[TLS] >=1.2RC5",
'Foo;python_version<"3.8"',
]
After:
dependencies = [
"bar-baz[tls]>=1.2rc5",
"foo; python_version < '3.8'",
"python-dateutil",
]
pyproject-validate
is distributed under the terms of the MIT license.