Validate and format pyproject.toml files
Project description
pyproject-validate
CI/CD | |
Package | |
Meta |
Validate and format pyproject.toml
files.
Table of Contents
Installation
pip install pyproject-validate
Usage
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
Validators
Specs
Adhere to the data model defined by PEP 517 and PEP 621.
Naming
Ensure normalized project names.
Before:
[project]
name = "Foo.bAr"
After:
name = "foo-bar"
Dependencies
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",
]
License
pyproject-validate
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyproject_validate-0.1.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for pyproject_validate-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bb4d096b4f6dc32e8d1ea4f6f09acc6d84409309a85dab3808eeaf988aa1aa |
|
MD5 | b7f62c87a36785c2d18c9b81fc610e47 |
|
BLAKE2b-256 | d66370e74b1a0b93074501051da8a6ae9835e47b4a035e174d9e23aeff1664d0 |