Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfixfmt-0.9.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfixfmt-0.9.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pyfixfmt-0.9.0.tar.gz.

File metadata

  • Download URL: pyfixfmt-0.9.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.1 Linux/5.0.0-38-generic

File hashes

Hashes for pyfixfmt-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3a24073f12e85de6f2354a6db19722865d425f5466d3992a6d9abca6a996e5b7
MD5 4069555f57bb629957cb735e015bd197
BLAKE2b-256 4f6935e5ee7cce07e178ce59b38398ab57d5b9b7883d040cf8b8dc6f9c4dbf30

See more details on using hashes here.

File details

Details for the file pyfixfmt-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: pyfixfmt-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.1 Linux/5.0.0-38-generic

File hashes

Hashes for pyfixfmt-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c2d07e4374422a63477e790162f4365f34b04a992154fab55b59e55f9e2d275
MD5 a6248cf5369af5a681939e30bb62cca5
BLAKE2b-256 1b116f32d74f7aa17f33f3e82d73b9fc4c4c5404aa882653f46b0a3d0d4cca7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page