PyCQA / modernize

Modernizes Python code for eventual Python 3 migration. Built on top of fissix (a fork of lib2to3)
https://modernize.readthedocs.org/
Other
353 stars 51 forks source link

Configure tox, pre-commit, pyupgrade and black #216

Closed graingert closed 4 years ago

graingert commented 4 years ago

@takluyver err... looks like we're getting a lot of flake8 errors? Was it not running properly before?

graingert commented 4 years ago

@takluyver I'd like to apply black as I think it will fix a few of these errors

takluyver commented 4 years ago

looks like we're getting a lot of flake8 errors? Was it not running properly before?

It looks like it was set up to only fail on a few selected error codes, and the rest were reported in CI but didn't cause a build failure (--exit-zero). Obviously no-one pays much attention to warnings that don't cause CI failures.

graingert commented 4 years ago

@takluyver ^

graingert commented 4 years ago

I'd like to switch to pytest, but have been having problems with coverage