Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7241#discussion_r34209416
--- Diff: dev/lint-python ---
@@ -70,4 +70,26 @@ fi
# rm "$PEP8_SCRIPT_PATH"
rm "$PYTHON_LINT_REPORT_PATH"
+# Easy install pylint in /dev/pylint. To easy_install into a directory,
the PYTHONPATH should
+# be set to the directory.
+# dev/pylint should be appended to the PATH variable as well.
+export "PYTHONPATH=$SPARK_ROOT_DIR/dev/pylint"
+export "PYLINT_HOME=$PYTHONPATH"
+export "PATH=$PYTHONPATH:$PATH"
+
+if [ ! -d "$PYLINT_HOME" ]; then
+ mkdir "$PYLINT_HOME"
+ easy_install -d "$PYLINT_HOME" pylint
+ easy_install_status="$?"
+
+ if [ "$easy_install_status" -ne 0 ]; then
+ echo "Unable to install pylint locally in \"$PYTHONPATH\"."
+ fi
+fi
+
+for to_be_checked in "$PATHS_TO_CHECK"
--- End diff --
Is there a way to pass a list of files to Pylint or do we have to pass each
one separately? If we can pass a single list, that might make the exit code
handling easier to write.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]