PyFixFmt
Your all-in-one python formatter. Able to be called on files or strings to format and standarize a Python file.
Removes unused imports (with autoflake), sorts imports (with isort), and then formats the code (with black). It will respect your project's pyproject.toml configuration for those tools.
Meant to make formatting of python code as deterministic as sanely possible.
Instructions
To install:
pip install pyfixfmt
To run:
# file-glob can be either a single file name or a normal unix glob.
python -m pyfixfmt --file-glob <your file glob here> --verbose
Configuration:
# in pyproject.toml
[tool.formatters.python]
# Do not change anything about imports in these files
ignore_import_changes = []
# Do not remove imports that are unused in these files
do_not_remove_imports = []
Developing
Develop with Poetry.
Build with poetry build, and publish with poetry publish.
Metadata
Release files for pyfixfmt 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyfixfmt-0.9.2.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyfixfmt-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / pyfixfmt-0.9.2.tar.gz
| Download URL | pyfixfmt-0.9.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9354fdf890982e568d41c89e3b917e11f9a4635ef3504fda1eb88595beb9425d
|
|
BLAKE2b-256 checksum How to use checksums |
b6d00e9ae70518975c88b0520793e74f06d6e7d0b791f50acdb8ef900703dff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.2 Darwin/21.1.0
|
Release files / pyfixfmt-0.9.2-py3-none-any.whl
| Download URL | pyfixfmt-0.9.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6b944b1a2b01ba0c1a5aa2ad502b190ae934cfe08d0af84c6e364426f480605
|
|
BLAKE2b-256 checksum How to use checksums |
baf48916a5a4185b276dc8f3d445d171fdb818f9cfc88e3d0e5da9f9ec2790b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.2 Darwin/21.1.0
|