https://github.com/prettier/plugin-python
Prettier Python Plugin
https://github.com/prettier/plugin-python
prettier python
Last synced: 4 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T10:33:16.000Z (about 6 years ago)
- Last Synced: 2024-10-29T22:37:34.838Z (7 months ago)
- Topics: prettier, python
- Language: JavaScript
- Size: 295 KB
- Stars: 517
- Watchers: 42
- Forks: 41
- 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