Autoformatter for pyproject.toml files
Project description
pyproject-sort
Autoformatter for pyproject.toml files.
Ensures pyproject.toml files are consistently formatted; preventing merge request conflicts, reducing time spent manually formatting; and maintaining a cleaner git history and readability.
Features
- Alphabetically sorts pyproject.toml by parent section name
Installation
pyprojectsort
is available via Test PyPI (via Platform Wheels):
pip install pyprojectsort
Examples
With the following pyproject.toml
contained inside a directory:
[project]
name = "pyprojectsort"
[build-system]
build-backend = "flit.buildapi"
requires = ["flit"]
Run the package from within the directory of the pyproject toml file as follows:
pyprojectsort
pyprojectsort
will reformat the pyproject.toml
to the alphabetical order of the sections:
[build-system]
build-backend = "flit.buildapi"
requires = ["flit"]
[project]
name = "pyprojectsort"
License
pyprojectsort
is licensed under the MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyprojectsort-0.1.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for pyprojectsort-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5ecb62da94bedd0a03068f2d7358b11d60108b453c72663074806c0ca1d6d0 |
|
MD5 | fa9a6c361a2e746fb5a7acf799beaca5 |
|
BLAKE2b-256 | 99ff5bcfcd9f836babbd2454895c4fb010f8e329f0198189b34dac7102157aa4 |