Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gsmethells/prism

 
 

Repository files navigation

The Compromising Code Formatter

“Any color you like.”

Prism is the compromising Python code formatter. By using it, you agree to cede control over some minutiae of hand-formatting, but can still actually configure things that matter. In return, Prism gives you speed, determinism, and freedom. You will save time and mental energy for more important matters.


Installation and usage

Installation

Prism can be installed by running pip install prism. It requires Python 3.7+ to run.

If you can't wait for the latest hotness and want to install from GitHub, use:

pip install git+https://github.com/gsmethells/prism

Usage

To get started right away with sensible defaults:

prism {source_file_or_directory}

You can run Prism as a package if running it as a script doesn't work:

python -m prism {source_file_or_directory}

The Prism code style

Prism does not force PEP 8 on you (whew). Style configuration options are deliberately not limited.

Prism does reformats entire files in place. It does take previous formatting into account).

Our documentation covers the default Prism code style, but feel free to tune it.

Configuration

Pro-tip: If you're asking yourself "Do I need to configure anything?" the answer is "No". Prism is still all about sensible defaults. Applying those defaults will have your code in compliance with many other Prism formatted projects.

License

MIT

Contributing

Welcome! Happy to see you willing to make the project better. You can get started by reading this:

Change log

The log has become rather long. It moved to its own file.

See CHANGES.

Authors

The author list is quite long nowadays, so it lives in its own file.

See AUTHORS.md

Code of Conduct

Everyone participating in the Prism project, and in particular in the issue tracker, pull requests, and any other activity, is expected to treat other people with respect and more generally to follow the guidelines articulated in the Python Community Code of Conduct.

At the same time, humor is encouraged. In fact, basic familiarity with Monty Python's Flying Circus is expected. We are not savages.

And if you really need to slap somebody, do it with a fish while dancing.

About

The compromising Python code formatter

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%