flycheck-pycheckers icon indicating copy to clipboard operation
flycheck-pycheckers copied to clipboard

pep8 renamed to pycodestyle

Open bernarduh opened this issue 3 years ago • 3 comments

During a fresh install of Ubuntu, I noticed that the pep8 command is now distributed as pycodestyle. It would be nice to support this in the bin/pycheckers.py scripts.

This package used to be called pep8 but was renamed to pycodestyle to reduce confusion. Further discussion can be found in the issue where Guido requested this change, or in the lightning talk at PyCon 2016 by @IanLee1521: slides video.

Quote from https://pypi.org/project/pycodestyle/

I can make the change if you want but what would be the best approach:

  • Consider it a new linter class based on pep8.
  • Adapt pep8 class to detect which binary is installed in the system.

bernarduh avatar Nov 06 '22 22:11 bernarduh

Thanks for submitting the issue! I would prefer that users who are using old tools/versions for whatever reason (their employer hasn't yet completed migrating to py3 yet, for example) still be able to use this tool, so as long as this doesn't break existing compatibility, I would be ok with either of those approaches. Thank you for the offer!

msherry avatar Nov 07 '22 00:11 msherry

Yes, I agree. Can I push a branch and open a PR with a suggestion?

bernarduh avatar Nov 07 '22 12:11 bernarduh

By all means :)

msherry avatar Nov 07 '22 19:11 msherry