Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ray Cote Newsgroups: comp.lang.python Subject: Re: pylint woes Date: Sat, 7 May 2016 15:52:51 -0400 Lines: 41 Message-ID: References: <572E3967.9060206@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 4+zN6WAfE0KvhieWhoNAeQ8wCwUH7Nh+TOTYrZIUbiYA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'warnings': 0.03; 'cc:addr :python-list': 0.09; 'check.': 0.09; 'example:': 0.10; 'times,': 0.13; 'def': 0.13; '2016': 0.16; '9.0': 0.16; 'complains': 0.16; 'dfs': 0.16; 'i\xe2\x80\x99m': 0.16; 'non-trivial': 0.16; 'pep8': 0.16; 'program?': 0.16; 'range,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'routinely': 0.16; 'twice.': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cc:no real name:2**0': 0.22; 'programming': 0.22; 'am,': 0.23; 'code.': 0.23; 'bit': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'parameters': 0.27; 'message-id:@mail.gmail.com': 0.27; 'function': 0.28; 'once.': 0.29; 'code': 0.30; 'raymond': 0.30; 'anyone': 0.32; 'run': 0.33; 'useful': 0.33; 'usually': 0.33; 'combination': 0.33; 'add': 0.34; 'received:google.com': 0.35; "isn't": 0.35; 'sometimes': 0.35; 'tool': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'list.': 0.37; 'received:209': 0.38; 'names': 0.38; 'skype:': 0.38; 'does': 0.39; 'some': 0.40; 'ever': 0.60; 'email:': 0.62; 'biggest': 0.67; 'gotten': 0.76; '9.5': 0.84; 'habits.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=appropriatesolutions.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ovuxQypeocL36MAcsmbINbknvT0OCVQiWVR54VgOuW8=; b=oGjYfhEr6ePm7UokQRS3yAZYemBzGpYUT9ChCXVXibHzyR7drhFRuccAXTfgWL2Elw i68SckfeGI9ZhkBmzRd20/OqfaVkzndmnsnQzbNYrzbf+aXmRSDOII8/w7rQzlTtxQ3n hzywp96G9KkZNuuk0gFf2+0qG5kHMNVOb2TFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ovuxQypeocL36MAcsmbINbknvT0OCVQiWVR54VgOuW8=; b=ImnrPiDhDx+09TmbpdEMQO3rIVRyeKCAuKzKtTRMtRft5Z6dG3xovxXe4HeWg4tJTB PBolQ80fAuBbgOcCBL1vRytJWzrwKR5qgFa0WRtQyvW367yE4U/Hj5IpbyVyBp7yx3Ba UgcsHfFUHLrQC0HTEfQVwe2TDchnjV1Nn+f1/Oxu6/EDvj2pGq5qSKfE6rhnL23vXMZl fOHGwER5b7bRdLAWb9YWPmVqzKv/nzeINJfkxQCQtDSmzWHAw8GvAvTqyuWdFs7eanCE 805QgAzGlHqxj/Xjlo040WIXIsvxo3geKKOs0hmrNVSxtynyPhnG50ICHr6Zji7O5zje puSw== X-Gm-Message-State: AOPr4FXtchO1WX/odoDitS69mKfxEf1FzdhOOwF5rc1wHrMvkrs8yO929AEzqOIK71UzpLc8kw9kv1FV4BaAGQ== X-Received: by 10.176.69.133 with SMTP id u5mr16561380uau.88.1462650801198; Sat, 07 May 2016 12:53:21 -0700 (PDT) In-Reply-To: <572E3967.9060206@icloud.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <572E3967.9060206@icloud.com> Xref: csiph.com comp.lang.python:108292 On Sat, May 7, 2016 at 2:52 PM, Christopher Reimer < christopher_reimer@icloud.com> wrote: > On 5/7/2016 9:51 AM, DFS wrote: > >> Has anyone ever in history gotten 10/10 from pylint for a non-trivial >> program? >> > > I routinely get 10/10 for my code. While pylint isn't perfect and > idiosyncratic at times, it's a useful tool to help break bad programming > habits. > I=E2=80=99m impressed with 10/10. My approach is to ensure flake8 (a combination of pyflakes and pep8 checking) does not report any warnings and then run pyLint as a final check. Code usually ends up in the 9.0 to 9.5 range, sometimes a bit higher. Also find it useful to add some additional short names we use to the allowed names list. Biggest issue I have with pyLint is that it complains when function parameters are indented twice vs. once. pyFlakes likes the twice. Example: def function_name( parm_1, long_parm_name, =E2=80=A6. end_of_long_list_of params) parm_1 =3D long_parm_name =E2=80=94Ray --=20 Raymond Cote, President voice: +1.603.924.6079 email: rgacote@AppropriateSolutions.com skype: ray.cote