Project

General

Profile

Actions

Feature #159

closed

Get pylint happy with chirp

Added by Dan Smith over 12 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/02/2012
Due date:
% Done:

100%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
I read the instructions above:
Actions #1

Updated by Dan Smith over 12 years ago

  • % Done changed from 0 to 20
Actions #2

Updated by Dan Smith almost 12 years ago

  • Target version changed from 0.3.0 to 0.3.1
  • Chirp Version changed from 0.2.2 to 0.2.3
Actions #3

Updated by Dan Smith over 11 years ago

  • Target version deleted (0.3.1)
  • Chirp Version changed from 0.2.3 to 0.3.0
Actions #4

Updated by Zach Welch over 9 years ago

  • Tracker changed from Bug to Feature
  • Status changed from New to In Progress
  • Assignee changed from Dan Smith to Zach Welch
  • Target version set to 0.5.0
  • % Done changed from 20 to 0
  • Chirp Version changed from 0.3.0 to daily

I have a couple of patches in the works to add pylint to the cpep8 script (see #2355). This allows the source code to be automatically scanned as part of run_all_tests.sh. It includes a new blacklist to exclude files that are not yet compliant.

Unfortunately, not a single file was pylint compliant when I started looking at this task. I was able to get a couple of files fixed up without too much pain, but most of the modules have brutally long lists of issues (far beyond what was flagged/fixed by pep8).

On the bright side, pylint is clearly superior to pep8 in terms of completeness. For example, it already helped me find a latent error in the new logger module. I think that we will be better off with this kind of checking in place.

That said, there are points of contention between the pep8 tool and pylint, so I have disabled a couple of checks that pep8 already says we pass (e.g. line continuation alignment, multiple spaces after commas). There are likely additional checks that need to be disabled.

Actions #5

Updated by Bernhard Hailer over 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

I believe we can close this one.

Actions

Also available in: Atom PDF