Run several python fixers and formatters to standarize your python file format.
Project description
PyFixFmt
Your all-in-one python formatter. Able to be called on files or strings to format and standarize a Python file.
PyFixFmt uses black, isort and autoflake. It will respect your project's pyproject.toml
configuration for those tools.
Installation
$ pip install pyfixfmt
Usage
$ # file-glob can be either a single file name or a normal unix glob.
$ python -m pyfixfmt --file-glob <your file glob here>
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 = []
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pyfixfmt-0.9.0-py3-none-any.whl (3.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pyfixfmt-0.9.0.tar.gz (3.1 kB) | File type Source | Python version None | Upload date | Hashes View |