← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503212] Re: pylint fails when signature changed by decorator

 

We made the explicit decision of ignoring pylint errors in the test
directory [1]. The check [1] is ignored when running pylint checks on
HEAD~1, but they are harmless.

[1] https://github.com/openstack/neutron/blob/master/.pylintrc#L9

** Changed in: neutron
       Status: New => Won't Fix

** Changed in: neutron
       Status: Won't Fix => New

** Changed in: neutron
       Status: New => Invalid

** Changed in: neutron
     Assignee: Bogdan Tabor (bogdan-tabor) => (unassigned)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1503212

Title:
  pylint fails when signature changed by decorator

Status in neutron:
  Invalid

Bug description:
  Pylint is not able to recognize mocked method's argument, when there
  are normal arguments already present.

  reproduction steps
  --------------------------
  1) Change whatever in neutron.tests.unit.agent.l3.test_agent.py
  2) run pylint

  visible consequence
  ---------------------------
  Running pylint...
  You can speed this up by running it on 'HEAD~[0-9]' (e.g. HEAD~1, this change only)...
  ************* Module neutron.tests.unit.agent.l3.test_agent
  E:1033, 8: No value for argument 'IPDevice' in method call (no-value-for-parameter)
  ERROR: InvocationError: '/usr/bin/sh ./tools/coding-checks.sh --pylint HEAD~1'
  ERROR:   pep8: commands failed

  It will cause Jenkins gate fail, thus preventing merge

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1503212/+subscriptions


References