Menu

Pylint

2009-05-01
2013-03-15
  • Mihai Damian

    Mihai Damian - 2009-05-01

    I'm having problems using the PyLint integration. PyLint is correctly installed, working and producing correct warning when run from command line. I've followed the instructions and enabled PyLint from the preferences menu and specified the file path. However nothing specials appears in the console or problems tab when I run my script.

     
    • Mihai Damian

      Mihai Damian - 2009-05-02

      OK, it works. Apparently I had to put my files under a src folder

       
      • Tom

        Tom - 2009-07-20

        What does that mean?  I'm having the same problem but I don't know what a 'src' folder is.

        Is there not some way to tell pylint to operate on the file that I'm currently editing?

         
        • Fabio Zadrozny

          Fabio Zadrozny - 2009-07-20

          A 'src' folder is a folder that's specified as being in your project pythonpath (see http://fabioz.com/pydev/manual_101_project_conf2.html for details on that).

          When you save your file, if that file is under a source folder, that file should be analyzed (provided you have the auto-build turned on -- more details at http://pydev.sourceforge.net/pylint.html )

          Cheers,

          Fabio

           
          • Tom

            Tom - 2009-07-20

            That made a big difference.  Thanks.

             
    • Lin Parkh

      Lin Parkh - 2009-07-20

      Here's a naive question. What does Pylint add beyond what Pydev seems to do in terms of detecting errors etc.  There is some amount of this built in it seems like in my experience. Thanks,
        Lin

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-08-06

        Pydev only has syntax checking.

        Pydev Extensions has code analysis. See: http://fabioz.com/pydev/manual_adv_code_analysis.html

        PyLint does things similar to the Pydev Extensions code-analysis plus some checks on the coding style (i.e.: following pep 8) -- although it's significantly slower than Pydev Extensions for the code analysis bits.

         
    • f33l

      f33l - 2009-08-04

      Pylint takes care of stuff like enforcing conventions (variable names, function names, etc.), checking for uninitialized variables, give out warnings for undetected variables, give some refactoring advice (too many local variables, too many parameters), check whether the called methods of an object exist.

      I'm not sure how many of the above items are directly built into pydev, I suppose it mainly detects simple syntax errors.

       
  • Anonymous

    Anonymous - 2010-02-08

    I'm having the same issue… Eclipse 3.5.1, Pydev 1.5.4.2010011921
    I couldn't figure out why this helped (because the .pydevproject remained the same), but I created a new project and re-imported the old source, that worked.