Skip to main content

No project description provided

Project description

Sortie

PyPI version

An opinionated tool for formatting your pyproject.toml files. Built in Rust and based on taplo.

Should you use this?

Generally, using taplo would probably be more suitable for the typical workflow. The primary purpose of this Python package is to facilitate easy integration with Python-based CI/CD pipelines solely for formatting pyproject.toml files.

Usage

$ sortie
pyproject.toml left unchanged.

Or, with the --check argument as part of your CI/CD pipeline:

$ sortie --check
pyproject.toml would be formatted!

Options

You can modify the behavior of the formatter by setting the configuration in your pyproject.toml file. Sortie utilizes the [tool.sortie] section of your file. For full options, refer to formatter options. Compared with Taplo, by default, reorder_arrays = true and reorder_keys = true are automatically set.

Here is an example pyproject.toml file:

[tool.sortie]
reorder_arrays = true
reorder_keys = true

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

sortie-0.1.1.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distributions

sortie-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.9 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

sortie-0.1.1-py3-none-macosx_10_7_x86_64.whl (1.1 MB view hashes)

Uploaded Python 3 macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page