tox py3-pylint fails with Python 3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When running tox the py3-pylint test fails when using Python 3.7 (the default interpreter in Disco). The full output of tox is attached, however the error is:
py3-pylint runtests: commands[0] | /tmp/curtin/
No config file found, using default configuration
Traceback (most recent call last):
File "/tmp/curtin/
res = next(generator)
StopIteration
which brings to:
https:/
https:/
The tl;dr is: a newer pylint is needed. Currently tox.ini specifies a dependency on pylint 1.8.1, bumping this dependency to version 2.3.1 (the latest version) solves the issue, but py3-pylint still fails because of several E1101 errors, e.g.
************* Module curtin.distro
curtin/
curtin/
curtin/
[...]
which are in my opinion false positives.
Thanks, let's update the tox and pylint! =)
The "Fix" for the members, is an update to .pylintrc to hide them from that check, like so:
$ cat .pylintrc
[MASTER]
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=4
[TYPECHECK]
# List of members which are set dynamically and missed by pylint inference members= Distros. *
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-