lisa-lab / pylearn2

Warning: This project does not have any current developer. See bellow.
BSD 3-Clause "New" or "Revised" License
2.75k stars 1.09k forks source link

Stricter compile time checks #70

Open goodfeli opened 12 years ago

goodfeli commented 12 years ago

See if pychecker or pylint can do stricter compile time checks, such as following imports, than are currently done by pylearn2.devtools.tests.test_via_pyflakes

goodfeli commented 12 years ago

If we use pylint's -d flag to exclude everything but F level problems, it can tell us if some modules can't be imported. Otherwise, pylint seems to generate way too many false positives. I don't see a good way to restrict it to things that it's reasonably certain will be a problem at runtime. For example, it considers

Z = T.sqrt( X)

to be an error.