#8016 pylint 2.3.1 errors on fedora 30
Opened a year ago by frenaud. Modified 11 months ago

Travis CI lint failed on [testing_master] nightly PR #3432 with the following errors:

echo "Pylint on /usr/bin/python3 is running, please wait ..."; \
PYTHONPATH=. /usr/bin/python3 -m pylint \
    --rcfile=./pylintrc \
    --load-plugins pylint_plugins \
    ${FILES}
Pylint on /usr/bin/python3 is running, please wait ...
************* Module ipaclient.plugins.misc
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipaclient.plugins.rpcclient -> ipalib -> ipaclient.remote_plugins))
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipatests.pytest_ipa.integration.config -> ipatests.pytest_ipa.integration.env_config))
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipatests.pytest_ipa.integration.config -> ipatests.pytest_ipa.integration.host -> ipatests.pytest_ipa.integration.env_config))
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipaclient.plugins.rpcclient -> ipalib.rpc -> ipalib -> ipaclient.remote_plugins))
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipaclient.frontend -> ipalib -> ipaclient.remote_plugins -> ipaclient.remote_plugins.schema))
ipaclient/plugins/misc.py:1: [R0401(cyclic-import), ] Cyclic import (ipaclient.frontend -> ipalib -> ipaclient.remote_plugins -> ipaclient.remote_plugins.compat))
------------------------------------
Your code has been rated at 10.00/10

In this run, python3-pylint-2.3.1-1.fc30.noarch is used.


I propose to add cyclic-import to the ignore list in pylintrc. Cyclic dependencies can cause issues and are not elegant. But so far they haven't caused any serious issues.

We can look into the issue another time.

That changes (https://pagure.io/freeipa/issue/8102) were not addressed to cyclic-import.
The 'issue' still presents and could be reproduced in single-process mode of Pylint
(pylintrc: jobs=1).

Login to comment on this ticket.

Metadata