pep 8 converter?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Becker

    #1

    pep 8 converter?

    Is there a tool that checks/imposes PEP 8 (ie the right core coding style?). It
    seems that bugfix patches which miss on style are rejected out of hand. So since
    I'm quite chaotic and unable to get on with the "foolish consistency" people it
    would be nice if there's some way to actually fix broken code without too much
    mind numbing attention to spacing around operators etc.
    --
    Robin Becker
  • Gerhard Haering

    #2
    Re: pep 8 converter?

    On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:[color=blue]
    > Is there a tool that checks/imposes PEP 8 (ie the right core coding
    > style?). It seems that bugfix patches which miss on style are rejected out
    > of hand. [...][/color]

    I doubt that's the case. Care to provide an example?

    -- Gerhard

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBj1J/dIO4ozGCH14RAuj +AJ9HpGviJYxFZk m5qd6JIcl+JRMeB gCff/pg
    Ryz2jK/mDedCqoIDpIU6dR g=
    =gML6
    -----END PGP SIGNATURE-----

    Comment

    • Sylvain Thenault

      #3
      Re: pep 8 converter?

      On Mon, 08 Nov 2004 10:53:51 +0000, Robin Becker wrote:
      [color=blue]
      > Is there a tool that checks/imposes PEP 8 (ie the right core coding style?).[/color]

      The default pylint's policy is consistent with Guido's style guide. But it
      only checks, not imposes anything nor patches the code to fix detected
      problems.
      Pylint is available from http://www.logilab.org/projects/pylint

      --
      Sylvain Thénault LOGILAB, Paris (France).

      http://www.logilab.com http://www.logilab.fr http://www.logilab.org


      Comment

      • Robin Becker

        #4
        Re: pep 8 converter?

        Gerhard Haering wrote:[color=blue]
        > On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:
        >[color=green]
        >>Is there a tool that checks/imposes PEP 8 (ie the right core coding
        >>style?). It seems that bugfix patches which miss on style are rejected out
        >>of hand. [...][/color]
        >
        >
        > I doubt that's the case. Care to provide an example?
        >
        > -- Gerhard[/color]


        Date: 2004-11-07 14:32
        Sender: *******
        Logged In: YES
        user_id=31392

        The formatting of this patch is wrong. There is a long line
        (>80 chars) and missing whitespace around commas, operators,
        etc.

        --
        Robin Becker

        Comment

        • Robin Becker

          #5
          Re: pep 8 converter?

          Sylvain Thenault wrote:[color=blue]
          > On Mon, 08 Nov 2004 10:53:51 +0000, Robin Becker wrote:
          >
          >[color=green]
          >>Is there a tool that checks/imposes PEP 8 (ie the right core coding style?).[/color]
          >
          >
          > The default pylint's policy is consistent with Guido's style guide. But it
          > only checks, not imposes anything nor patches the code to fix detected
          > problems.
          > Pylint is available from http://www.logilab.org/projects/pylint
          >[/color]
          thanks I'll give it a whirl
          --
          Robin Becker

          Comment

          • Gerhard Haering

            #6
            Re: pep 8 converter?

            On Mon, Nov 08, 2004 at 11:42:46AM +0000, Robin Becker wrote:[color=blue]
            > Gerhard Haering wrote:[color=green]
            > >On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:
            > >[color=darkred]
            > >>Is there a tool that checks/imposes PEP 8 (ie the right core coding
            > >>style?). It seems that bugfix patches which miss on style are rejected
            > >>out of hand. [...][/color]
            > >
            > >
            > >I doubt that's the case. Care to provide an example?[/color]
            >
            > Date: 2004-11-07 14:32
            > Sender: *******
            > Logged In: YES
            > user_id=31392
            >
            > The formatting of this patch is wrong. There is a long line
            > (>80 chars) and missing whitespace around commas, operators,
            > etc.[/color]

            URL?

            -- Gerhard

            -----BEGIN PGP SIGNATURE-----
            Version: GnuPG v1.2.4 (GNU/Linux)

            iD8DBQFBj1zOdIO 4ozGCH14RAk97AJ 4xcz3M5/SSBRlyWNrt6oLYD T2LBwCgoRdF
            Y6uq0G+nHYcH77v JMr6UXG4=
            =ryGv
            -----END PGP SIGNATURE-----

            Comment

            Working...