pyformat icon indicating copy to clipboard operation
pyformat copied to clipboard

Formats Python code to follow a consistent style

Results 9 pyformat issues
Sort by recently updated
recently updated
newest added

Use isort to sort imports (disabled by default to preserve backward compatibility)

There is a nice project https://github.com/asottile/add-trailing-comma. Could you add it as an additional optional formatter?

enhancement

The current behavior of `pyformat` is different from `autopep8`, which returns diff only when --diff option is specified and otherwise returns the whole file content. It would be nice if...

`yapf` has very similar command line interface as `pyformat` but provides one additional one: pass a code via stdin and print result on stdout. Such a feature makes it very...

enhancement

When `pyformat` is used, an existing pep8 configuration is not applied. Example: ``` # test.py l = ['a', 'really', 'really', 'really', 'long', 'line', 'that', 'violates', 'max-line', 'limit'] ``` ``` #...

enhancement

With newest docformatter version 1.5, pyformat fails with `AttributeError: module 'docformatter' has no attribute 'format_code'`

Travis-CI is no more, replaced by [GitHub actions](https://github.com/features/actions) which are free for OSS projects like pyformat. I propose replacing the old `.travis.yml` with an equivalent github action workflow. Small differences:...

`pip install pyformat` is broken on python 3.14. For instance in a github action it shows up as: ``` [...] Collecting pyformat Downloading pyformat-1.0.tar.gz (7.4 kB) Installing build dependencies: started...