You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/dagster-io/dagster.git && cd dagster
pylint -j 0 `git ls-files 'python_modules/libraries/*.py'` --rcfile=.pylintrc (this also reproes with -j 1)
Current behavior
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/nate/.pyenv/versions/3.7.6/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/check_parallel.py", line 69, in _worker_check_single_file
_worker_linter.check_single_file(name, filepath, modname)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 890, in check_single_file
self.get_ast, check_astroid_module, name, filepath, modname
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 930, in _check_file
check_astroid_module(ast_node)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1063, in check_astroid_module
ast_node, walker, rawcheckers, tokencheckers
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1107, in _check_astroid_module
walker.walk(ast_node)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 72, in walk
callback(astroid)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/checkers/typecheck.py", line 1036, in visit_assign
self._check_assignment_from_function_call(node)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/checkers/typecheck.py", line 1072, in _check_assignment_from_function_call
function_node.nodes_of_class(astroid.Return, skip_klass=astroid.FunctionDef)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/astroid/node_classes.py", line 692, in nodes_of_class
yield from child_node.nodes_of_class(klass, skip_klass)
AttributeError: 'list' object has no attribute 'nodes_of_class'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/nate/.pyenv/versions/dagster37/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/__init__.py", line 22, in run_pylint
PylintRun(sys.argv[1:])
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/run.py", line 344, in __init__
linter.check(args)
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 878, in check
files_or_modules,
File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/check_parallel.py", line 101, in check_parallel
_worker_check_single_file, files
File "/Users/nate/.pyenv/versions/3.7.6/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
AttributeError: 'list' object has no attribute 'nodes_of_class'
Summary:
More recent pylint checks more stuff, and specifically it doesn't seem to understand `six.with_metaclass(ABCMeta)` so we need to disable those checks for now.
I don't move pylint to 2.5.2 until D3109, because of pylint-dev/pylint#3648 - the long list of args to pylint seems to trigger a newly-introduced pylint bug in 2.5.x; the refactor in D3109 means we no longer trigger that bug.
Test Plan: buildkite
Reviewers: alangenfeld, sandyryza, max
Reviewed By: sandyryza
Subscribers: schrockn
Differential Revision: https://dagster.phacility.com/D3114
Steps to reproduce
git clone https://github.com/dagster-io/dagster.git && cd dagster
pylint -j 0 `git ls-files 'python_modules/libraries/*.py'` --rcfile=.pylintrc
(this also reproes with-j 1
)Current behavior
Expected behavior
This completed successfully on pylint 2.4.4
pylint --version output
The text was updated successfully, but these errors were encountered: