#873 Warn about invalid files (files with '-', etc )

1.4.4
open-accepted
Editor (491)
5
2009-03-10
2009-03-09
Mike Auty
No

Hiya,

I just noticed that a file of mine along the lines of some-thing.py failed to show any pylint issues or errors of any kind. I renamed the file within eclipse to something.py and it immediately ran pylint. Renaming it back to some-thing.py and pylint didn't re-run. I'm happy to provide more information, or run further tests if that will help isolate the problem. Thanks...

Mike 5:)

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-10
    • status: open --> pending-invalid
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-10

    Files containing a '-' are not valid python modules (that's why PyLint won't run on them)

    (there's no way to do import my-module)

     
  • Mike Auty

    Mike Auty - 2009-03-10

    Ah thanks very much, it wasn't a module, it was the main program file, so I hadn't spotted that. I do seem to be able to execute pylint 0.15.2 on the file, and sure enough it tells me it's an invalid name. It was just a bit confusing not to have pylint run at all on a .py file. Perhaps you could add a pydev error to the problems list if the filename is invalid, so that people realize why pylint's not running?

     
  • Mike Auty

    Mike Auty - 2009-03-10
    • status: pending-invalid --> open-invalid
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-10
    • summary: pydev-1.4.4 fails to run pylint against filenames with a - --> Warn about invalid files (files with '-', etc )
    • status: open-invalid --> open-accepted