Sort-lines

Latest version: v0.3.0

Safety actively analyzes 641202 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

Changed

- Return 0 when lines have been sorted successfully.

A non-zero return code is reserved for when the tool has not been able to do its job.

0.2.0

Added

- The pragma can be passed options: `pragma: alphabetize[options]`.

Option | Effect
------------------------ | --------------------------------------------
`cs`, `case-sensitive` | all upper-case letters before all lower-case
`ci`, `case-insensitive` | sorted without regard for case

The default behaviour remains case-sensitive.

- The default case-sensitivity can be controlled on the command line.

Use `--case-insensitive` to make all sorting case-insensitive
unless specified to be case-sensitive explicitly.
`--case-sensitive` can also be used;
this is the default.

0.1.2

Fixed

- An empty line (whitespace only) did not end the sorting block.
Now it does.

0.1.1

Fixed

- `pre-commit` example configuration in README used an incorrect project/hook name
- The package was not built correctly, causing an error:

pytb
ModuleNotFoundError: No module named 'sort_lines'

0.1.0

First release.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.