Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/prettier/plugin-python
- Owner: prettier
- License: mit
- Archived: true
- Created: 2017-12-24T01:28:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T10:33:16.000Z (over 5 years ago)
- Last Synced: 2024-04-14T04:25:17.481Z (7 months ago)
- Topics: prettier, python
- Language: JavaScript
- Size: 295 KB
- Stars: 516
- Watchers: 42
- Forks: 45
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This plugin is deprecated.
We recommend you use [Black](https://github.com/ambv/black) instead.
---
Prettier Python Plugin
## 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