An open API service indexing awesome lists of open source software.

https://github.com/s3rius/prettyfi

Simple tool to prettyfi anything
https://github.com/s3rius/prettyfi

Last synced: 8 months ago
JSON representation

Simple tool to prettyfi anything

Awesome Lists containing this project

README

          

|py_versions| |build_statuses| |pypi_versions|

.. |py_versions| image:: https://img.shields.io/pypi/pyversions/prettyfi?style=flat-square
:alt: python versions

.. |build_statuses| image:: https://img.shields.io/github/workflow/status/s3rius/prettyfi/Testing%20and%20publish?style=flat-square
:alt: build status

.. |pypi_versions| image:: https://img.shields.io/pypi/v/prettyfi?style=flat-square
:alt: pypi version
:target: https://pypi.org/project/prettyfi/

Prettify your files with one command
====================================

Prettyfi usage
**************

usage: prettyfi [-h] [-c CONFIG] [-r] files [files ...]

Simple utility to make your files prettier.

positional arguments:
files Files to sort

optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG path to configuration file
-r, --recursive recursively traverse directories

.. code:: bash

prettyfi "prettyfi/main.py" "pyproject.toml" # Will make this files beautiful

Prettyfi configuration
**********************

Default config file location is "~/.prettyfirc".

Config file format:

.. code:: bash

. $ pretty_command {file}
# Where "ext" -> your file extension,
# {file} -> stub for actual file,
# For example:
.py $ isort {file}
.java $ rm {file}