Linting python code...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Markebo

    Linting python code...

    Alalalala lint.. alalalala lint...

    Ehm :-)

    Are there any python-code linter out there - or the code is so easy to
    write that it always is so perfekt? :-)

    /Andy

    --
    Don't walk in front of me, I might be unable to follow you.
    Don't walk after me, I might be unable to lead you.
    Just walk by my side and be my friend.
  • Christoph Haas

    #2
    Re: Linting python code...

    On Tuesday 10 October 2006 14:06, Andrew Markebo wrote:
    Are there any python-code linter out there
    PyLint (http://www.logilab.org/projects/pylint)
    PyChecker (http://pychecker.sf.net)

    Christoph

    Comment

    • skip@pobox.com

      #3
      Re: Linting python code...


      ChristophOn Tuesday 10 October 2006 14:06, Andrew Markebo wrote:
      >Are there any python-code linter out there
      ChristophPyLint (http://www.logilab.org/projects/pylint)
      ChristophPyChec ker (http://pychecker.sf.net)

      New kid on the block:

      PyFlakes http://divmod.org/trac/wiki/DivmodPyflakes

      It doesn't do nearly as much as the other two but doesn't import the
      modules, so it can be used in places the others can't.

      Skip

      Comment

      • Joel Rosdahl

        #4
        Re: Linting python code...

        skip@pobox.com writes:
        ChristophOn Tuesday 10 October 2006 14:06, Andrew Markebo wrote:
        >Are there any python-code linter out there
        >
        ChristophPyLint (http://www.logilab.org/projects/pylint)
        ChristophPyChec ker (http://pychecker.sf.net)
        >
        New kid on the block:
        >
        PyFlakes http://divmod.org/trac/wiki/DivmodPyflakes
        >
        It doesn't do nearly as much as the other two but doesn't import the
        modules, so it can be used in places the others can't.
        I thought PyLint doesn't import modules either. Am I mistaken?

        --
        Regards,
        Joel Rosdahl <joel@rosdahl.n et>
        Key BB845E97; fingerprint 9F4B D780 6EF4 5700 778D 8B22 0064 F9FF BB84 5E97

        Comment

        • Paul Boddie

          #5
          Re: Linting python code...

          Joel Rosdahl wrote:
          skip@pobox.com writes:
          [PyLint, PyChecker]
          New kid on the block:

          PyFlakes http://divmod.org/trac/wiki/DivmodPyflakes

          It doesn't do nearly as much as the other two but doesn't import the
          modules, so it can be used in places the others can't.
          >
          I thought PyLint doesn't import modules either. Am I mistaken?
          My impression was that PyLint only inspects the AST (using the astng
          package), whereas PyChecker can be asked to do only that, or to
          actually import the modules as well.

          Paul

          Comment

          Working...