Run several python fixers over a python file, to provide simple, deterministic code formatting.
Your all-in-one python formatter. Able to be called on files or strings to format and standarize a Python file.
Meant to make formatting of python code as deterministic as sanely possible.
pip install pyfixfmt
# file-glob can be either a single file name or a normal unix glob. python -m pyfixfmt --file-glob <your file glob here> --verbose
# 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 = 
Develop with Poetry.
poetry build, and publish with
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.