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
1=== modified file 'tox.ini'
2--- tox.ini 2017-02-10 17:49:31 +0000
3+++ tox.ini 2017-12-06 19:05:57 +0000
4@@ -43,7 +43,7 @@
5 # set basepython because tox 1.6 (trusty) does not support generated environments
6 basepython = python3
7 deps = {[testenv]deps}
8- pylint==1.5.4
9+ pylint==1.7.4
10 bzr+lp:simplestreams
11 commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}
12
13@@ -51,7 +51,7 @@
14 # set basepython because tox 1.6 (trusty) does not support generated environments
15 basepython = python2.7
16 deps = {[testenv]deps}
17- pylint==1.5.4
18+ pylint==1.7.4
19 commands = {envpython} -m pylint --errors-only {posargs:curtin}
20
21 [testenv:docs]

Subscribers

People subscribed via source and target branches