sort-all
Sort __all__ lists alphabetically
Usage
Install the package, e.g. pip install sort-all <path-to-file>
Run the tool: sort-all
Command line options
Options:
usage: sort-all [-h] [--check] [--no-error-on-fix] [filenames ...]
Sort __all__ records alphabetically.
positional arguments:
filenames Files to process
options:
-h, --help show this help message and exit
--check check the file for unsorted / unformatted imports and print them to the command line without modifying the file; return 0
when nothing would change and return 1 when the file would be reformatted.
--no-error-on-fix return 0 even if errors are occurred during processing files
Usage with pre-commit
sort-all can be used as a hook for pre-commit.
To add sort-all as a plugin, add this repo definition to your configuration:
repos:
- repo: https://github.com/aio-libs/sort-all
rev: ... # select the tag or revision you want, or run `pre-commit autoupdate`
hooks:
- id: sort-all
Metadata
Release files for sort-all 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sort_all-1.3.0.tar.gz | 4.9 kB | Without provenance | Details for sort_all-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sort_all-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for sort_all-1.3.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / sort_all-1.3.0.tar.gz
| Download URL | sort_all-1.3.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41fd883a4dcba38fef30e4dfc2c8ecf75dc6f450baa6c8bb2e6d30c7189fc148
|
|
BLAKE2b-256 checksum How to use checksums |
40be1325e717294bb01a69c9255ba397056b990abb2e03365554b5850a8483b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / sort_all-1.3.0-py3-none-any.whl
| Download URL | sort_all-1.3.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e452564993c1084a85b0d4600d00e638492d2fd9db7443c38627e9899f8e06a
|
|
BLAKE2b-256 checksum How to use checksums |
7c65dc790a4bf84e0b695a9b1d2a217bad7c88fa31d76fa3569b8daec75f2bc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for sort-all 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.