Merge lp:~smoser/curtin/trunk.pylint-1.7 into lp:~curtin-dev/curtin/trunk

Proposed by Scott Moser
Status: Merged
Merged at revision: 550
Proposed branch: lp:~smoser/curtin/trunk.pylint-1.7
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 21 lines (+2/-2)
1 file modified
tox.ini (+2/-2)
To merge this branch: bzr merge lp:~smoser/curtin/trunk.pylint-1.7
Reviewer Review Type Date Requested Status
Ryan Harper (community) Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+334851@code.launchpad.net

Commit message

tox: move to pylint 1.7.4

Update the pylint version used in tox from 1.5.4 to 1.7.4.
The primary gain from this is the ability to run with python3.6.
  https://github.com/PyCQA/pylint/issues/1113

To post a comment you must log in.
Revision history for this message
Ryan Harper (raharper) wrote :

Need to update .pylintrc with

generated-members=m_.*,mock_.*

The add_patch() methods introduce dynamic attributes that pylint 1.7.1 barfs on.

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

Ryan, we dont see the errors... I dont see them here and neither does c-i.
I'd rather not add stuff to .tox if it doesn't seem needed.

Make sense?

Revision history for this message
Ryan Harper (raharper) wrote :

I think we realized that pylint wasn't being run against tests/unittests
which is where those add_patch() methods come into play.
I think we should add tests/unittests to both py3-pylint and py27-pylint
and then add a .pylintrc like we have in cloud-init to handle
the generated-members and other settings we need to pass.

On Thu, Dec 7, 2017 at 11:26 AM, Scott Moser <email address hidden>
wrote:

> Ryan, we dont see the errors... I dont see them here and neither does c-i.
> I'd rather not add stuff to .tox if it doesn't seem needed.
>
> Make sense?
>
> --
> https://code.launchpad.net/~smoser/curtin/trunk.pylint-1.7/+merge/334851
> Your team curtin developers is requested to review the proposed merge of
> lp:~smoser/curtin/trunk.pylint-1.7 into lp:curtin.
>

Revision history for this message
Ryan Harper (raharper) wrote :

For now, lets land this and we can add unittests and see what breaks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tox.ini'
--- tox.ini 2017-02-10 17:49:31 +0000
+++ tox.ini 2017-12-06 19:05:57 +0000
@@ -43,7 +43,7 @@
43# set basepython because tox 1.6 (trusty) does not support generated environments43# set basepython because tox 1.6 (trusty) does not support generated environments
44basepython = python344basepython = python3
45deps = {[testenv]deps}45deps = {[testenv]deps}
46 pylint==1.5.446 pylint==1.7.4
47 bzr+lp:simplestreams47 bzr+lp:simplestreams
48commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}48commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}
4949
@@ -51,7 +51,7 @@
51# set basepython because tox 1.6 (trusty) does not support generated environments51# set basepython because tox 1.6 (trusty) does not support generated environments
52basepython = python2.752basepython = python2.7
53deps = {[testenv]deps}53deps = {[testenv]deps}
54 pylint==1.5.454 pylint==1.7.4
55commands = {envpython} -m pylint --errors-only {posargs:curtin}55commands = {envpython} -m pylint --errors-only {posargs:curtin}
5656
57[testenv:docs]57[testenv:docs]

Subscribers

People subscribed via source and target branches