Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/prettier/plugin-python

Prettier Python Plugin
https://github.com/prettier/plugin-python

prettier python

Last synced: about 1 month ago
JSON representation

Prettier Python Plugin

Awesome Lists containing this project

README

        

# This plugin is deprecated.

We recommend you use [Black](https://github.com/ambv/black) instead.

---


Prettier
Python

Prettier Python Plugin



Gitter


Travis


npm version



code style: prettier


Follow+Prettier+on+Twitter

## WORK IN PROGRESS

Please note that this plugin is under active development, and might not be ready to run on production code yet.

## Contributing

If you're interested in contributing to the development of Prettier for Python, you can follow the [CONTRIBUTING guide from Prettier](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md), as it all applies to this repository too.

To test it out on a Python file:

* Clone this repository.
* Run `yarn`.
* Create a file called `test.py`.
* Run `yarn prettier test.py` to check the output.
* Run `yarn prettier -- --write test.py` to rewrite file.
* Check out `yarn prettier -- --help` for other options.

## Install

```bash
yarn add --dev --exact prettier @prettier/plugin-python
```

## Use

```bash
prettier --write "**/*.py"
```

## Maintainers







Patrick Arminio






Danny Weinberg






Ryan Ashcraft