Skip to content

Commit

Permalink
Merge pull request #620 from shardros/patch-1
Browse files Browse the repository at this point in the history
Document being able to turn formatting off
  • Loading branch information
hhatto committed Mar 2, 2022
2 parents 5e0d5c7 + 330e90f commit 889805a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.rst
Expand Up @@ -323,6 +323,23 @@ Passing in ``--experimental`` enables the following functionality:

$ autopep8 --experimental <filename>

Disabling line-by-line
----------------------

It is possible to disable autopep8 untill it it turned back on again in the file, using ``autopep8: off`` and then renabling ``autopep8: on``.

.. code-block:: python
# autopep8: off
[
[23, 23, 13, 43],
[32, 34, 34, 34],
[56, 34, 34, 11],
[10, 10, 10, 10],
]
# autopep8: on
``fmt: off`` and ``fmt: on`` are also valid.

Use as a module
===============

Expand Down

0 comments on commit 889805a

Please sign in to comment.