hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.
https://pypi.org/project/autopep8/
MIT License
4.56k stars 290 forks source link

Update pycodestyle 2.8.0 #614

Closed heavenshell closed 2 years ago

heavenshell commented 2 years ago

Hi,

pycodestyle 2.8.0 was released.

The conflict is caused by:
    autopep8 1.5.7 depends on pycodestyle>=2.7.0
    flake8 3.9.2 depends on pycodestyle<2.8.0 and >=2.7.0
    The user requested (constraint) pycodestyle==2.8.0

I update pycodestyle 2.8.0 and run tests works fine.

make test
--->  Running basic test
pycodestyle --repeat .tmp.test.py
--->  Running --diff test
patch < .tmp.example.py.patch
patching file .tmp.example.py
pycodestyle --repeat .tmp.example.py && python -m py_compile .tmp.example.py
--->  Running unit tests
........../Volumes/Data/platform/github/python/autopep8/autopep8.py:198: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
  from lib2to3.pgen2 import tokenize as lib2to3_tokenize
..........--indent-size must be greater than 0........................[file:/var/folders/wk/pygq97bn6ssffysmw10b3xb80000gn/T/autopep8test5oj8z4bd/foo.py]
--->  0 issue(s) to fix {}
...............s......................................s.........................s...................................................................................................................................................................................................................................................................................................................................................................s.........................................................................................................
----------------------------------------------------------------------
Ran 586 tests in 27.115s

OK (skipped=4)
codecov-commenter commented 2 years ago

Codecov Report

Merging #614 (f6435d5) into master (acc4fe4) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #614   +/-   ##
=======================================
  Coverage   97.80%   97.80%           
=======================================
  Files           1        1           
  Lines        2368     2368           
=======================================
  Hits         2316     2316           
  Misses         52       52           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update acc4fe4...f6435d5. Read the comment docs.

heavenshell commented 2 years ago

Thank you!