Skip to main content

No project description provided

Project description

Sortie

An opinionated way to formatting your pyproject.toml files. Built in rust, ontop of taplo.

Should you use this?

In general, using taplo will probably be more suitable for typical workflow. The primary purpose of this python package is for easy integration with Python-based CICD pipelines for the sole purpose of formatting pyproject.toml files.

Usage

$ sortie
pyproject.toml left unchanged.

Or with the --check argument as part of your CICD pipeline

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

Options

You may modify the behaviour of the formatter by setting the configuration in your pyproject.toml file. Sortie uses 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.

An example pyproject.toml file is shown below.

[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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sortie-0.1.0-py3-none-macosx_10_7_x86_64.whl (3.0 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