Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hhatto/autopep8
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.0
Choose a base ref
...
head repository: hhatto/autopep8
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.0
Choose a head ref

Commits on Oct 30, 2021

  1. Copy the full SHA
    577774f View commit details

Commits on Jan 11, 2022

  1. Document being able to turn formatting off

    #557 Added support for this but I forgot to update the readme.
    shardros authored Jan 11, 2022
    Copy the full SHA
    330e90f View commit details

Commits on Jan 24, 2022

  1. Copy the full SHA
    ff472aa View commit details

Commits on Jan 25, 2022

  1. lint

    hhatto committed Jan 25, 2022
    Copy the full SHA
    a954444 View commit details
  2. fix test expected result

    hhatto committed Jan 25, 2022
    Copy the full SHA
    ef79af0 View commit details
  3. Merge pull request #622 from hhatto/verbose-print-for-config-paths

    add: verbose log for reading config paths
    hhatto authored Jan 25, 2022
    Copy the full SHA
    5e0d5c7 View commit details

Commits on Mar 2, 2022

  1. Merge pull request #620 from shardros/patch-1

    Document being able to turn formatting off
    hhatto authored Mar 2, 2022
    Copy the full SHA
    889805a View commit details

Commits on Mar 5, 2022

  1. Added the ability to ignore W191

    aka to leave tabs alone
    MinekPo1 committed Mar 5, 2022
    Copy the full SHA
    9113d23 View commit details
  2. Added related test

    MinekPo1 committed Mar 5, 2022
    Copy the full SHA
    c1201f4 View commit details
  3. fix pep8

    MinekPo1 committed Mar 5, 2022
    Copy the full SHA
    d8e0233 View commit details

Commits on Mar 6, 2022

  1. Fix test. Oops!

    MinekPo1 committed Mar 6, 2022
    Copy the full SHA
    c457e42 View commit details
  2. Copy the full SHA
    23944ff View commit details
  3. Copy the full SHA
    3ab866b View commit details

Commits on Apr 5, 2022

  1. Merge pull request #627 from MinekPo1/master

    Add support for ignoring W191.
    hhatto authored Apr 5, 2022
    Copy the full SHA
    74da7ae View commit details

Commits on Aug 2, 2022

  1. Update pycodestyle 2.9.0

    heavenshell committed Aug 2, 2022
    Copy the full SHA
    17215ec View commit details
  2. Copy the full SHA
    1815d92 View commit details
  3. Fix Flake8 E275 error

    heavenshell committed Aug 2, 2022
    Copy the full SHA
    4dc2235 View commit details

Commits on Aug 6, 2022

  1. Merge pull request #639 from heavenshell/fix_flake8_error

    Fix Flake8 E275 error
    hhatto authored Aug 6, 2022
    Copy the full SHA
    6ece8df View commit details
  2. Merge pull request #637 from heavenshell/topic/drop_depredate

    Drop no longer supported python versions
    hhatto authored Aug 6, 2022
    Copy the full SHA
    d2281be View commit details
  3. Merge branch 'topic/pycodestyle2.9.0' of https://github.com/heavenshe…

    …ll/autopep8 into heavenshell-topic/pycodestyle2.9.0
    hhatto committed Aug 6, 2022
    Copy the full SHA
    520cbe3 View commit details
  4. not support pypy2

    hhatto committed Aug 6, 2022
    Copy the full SHA
    bd3459b View commit details
  5. Merge pull request #641 from hhatto/heavenshell-topic/pycodestyle2.9.0

    Heavenshell topic/pycodestyle2.9.0
    hhatto authored Aug 6, 2022
    Copy the full SHA
    e8bc5e5 View commit details
  6. support E275 fixed method

    hhatto committed Aug 6, 2022
    Copy the full SHA
    468f804 View commit details
  7. require pycodestyle 2.9.1

    hhatto committed Aug 6, 2022
    Copy the full SHA
    0eacca1 View commit details
  8. Merge pull request #642 from hhatto/support-e275

    Support E275
    hhatto authored Aug 6, 2022
    Copy the full SHA
    812ce46 View commit details
  9. add test_ci

    hhatto committed Aug 6, 2022
    Copy the full SHA
    16a4d66 View commit details
  10. Copy the full SHA
    31323bc View commit details
  11. Copy the full SHA
    48b4bbf View commit details
  12. Merge pull request #643 from hhatto/refactor/remove-py2code

    refactoring: remove py2 specific code
    hhatto authored Aug 6, 2022
    Copy the full SHA
    e7b4944 View commit details

Commits on Aug 9, 2022

  1. version 1.7.0

    hhatto committed Aug 9, 2022
    Copy the full SHA
    0a64c5d View commit details
Showing with 188 additions and 89 deletions.
  1. +1 −1 .github/workflows/python-package.yml
  2. +10 −1 Makefile
  3. +17 −0 README.rst
  4. +73 −58 autopep8.py
  5. +1 −1 setup.py
  6. +23 −0 test/suite/E27.py
  7. +25 −0 test/suite/out/E27.py
  8. +3 −3 test/suite/out/W19.py
  9. +34 −24 test/test_autopep8.py
  10. +1 −1 tox.ini
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10", pypy2, pypy3]
python-version: [3.7, 3.8, 3.9, "3.10", pypy3]

steps:
- uses: actions/checkout@v2
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -44,6 +44,15 @@ test_fast:
--cov-report term-missing --cov autopep8 test/test_autopep8.py
@rm .pytest.coveragerc .coverage

test_ci:
pytest --cov-report xml --cov=autopep8
@${PYTHON} test/acid.py -aaa --experimental test/example.py
@${PYTHON} test/acid.py -aaa --experimental test/example_with_reduce.py
@${PYTHON} test/acid.py --pycodestyle= -aaa --compare-bytecode --experimental test/example.py
@${PYTHON} test/acid.py --pycodestyle= --aggressive --line-range 550 610 test/inspect_example.py
@${PYTHON} test/acid.py --pycodestyle= --line-range 289 925 test/vectors_example.py
@${PYTHON} test/test_suite.py

coverage:
@coverage erase
@AUTOPEP8_COVERAGE=1 ${COVERAGE} run --branch --parallel-mode --omit='*/site-packages/*' test/test_autopep8.py
@@ -131,4 +140,4 @@ clean:
.PHONY: \
all clean mutant pypireg test_basic test_unit \
benchmark coverage open_coverage readme test_diff \
check fasttest open_readme test test_fast
check fasttest open_readme test test_fast test_ci
17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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
===============

Loading