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

Add support for ignoring W191. #627

Closed MinekPo1 closed 2 years ago

MinekPo1 commented 2 years ago

Requested in #252, #207, #471 and others.

While a hacky solution was given (ignoring E101 or/and E111), it entirely disables re-indenting, which is undesired.

I believe all tests should pass, however some tests clearly fail on my machine due to how my environment is set up.

MinekPo1 commented 2 years ago

I'm not sure how these tests fail to be frankly honest.

MinekPo1 commented 2 years ago

Got it. Sneaky removal of leaning whitespace.

codecov-commenter commented 2 years ago

Codecov Report

Merging #627 (3ab866b) into master (889805a) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #627   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files           1        1           
  Lines        2404     2406    +2     
=======================================
+ Hits         2352     2354    +2     
  Misses         52       52           
Impacted Files Coverage Δ
autopep8.py 97.83% <100.00%> (+<0.01%) :arrow_up:

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 889805a...3ab866b. Read the comment docs.

hhatto commented 2 years ago

sorry for late reply. merge this.

Thanks for your contribution.