7 Aug
2019
7 Aug
'19
6:29 a.m.
07.08.19 03:57, Gregory P. Smith пише:
People distribute code via pypi. if we reject uploads of packages with these problems and link to fixers (modernize can be taught what to do), we prevent them from spreading further.
How can we check that there are such problems in the package? Pass all *.py files through a linter? But the package can contain "incorrect" files, for example files for Python 2 or earlier Python 3 versions. Even the CPython testsuite contains bad Python files for testing purpose.