Run `pyupgrade` on python code blocks in documentation files
pyupgrade on python code blocks in documentation files.
pip install pyupgrade-docs
pyupgrade-docs provides a single executable (
pyupgrade-docs) which will modify
.md files in place.
It currently supports the following
Following additional parameters can be used:
pyupgrade-docs will format code in the following block types:
```python def hello(): print("hello world") ```
.. code-block:: python def hello(): print("hello world")
usage with pre-commit
See pre-commit for instructions
- repo: https://github.com/verhovsky/pyupgrade-docs rev: v0.1.0 hooks: - id: pyupgrade-docs
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyupgrade_docs-0.1.1.tar.gz (3.8 kB)||File type Source||Python version None||Upload date||Hashes View|