Skip to content

Apache DataFusion SQL Query Engine

ARROW-7471: [CI] [Python] Run flake8 on Cython files

Antoine Pitroub4e539f6a606
diff --git a/dev/archery/archery/utils/lint.py b/dev/archery/archery/utils/lint.py
index 961396e021..a9f9d6b59e 100644
--- a/dev/archery/archery/utils/lint.py
+++ b/dev/archery/archery/utils/lint.py
@@ -112,8 +112,10 @@ def python_linter(src):
logger.error("python linter requested but flake8 binary not found.")
return
- yield LintResult.from_cmd(flake8(src.pyarrow, src.dev, check=False))
- config = os.path.join(src.pyarrow, ".flake8.cython")
+ setup_py = os.path.join(src.python, "setup.py")
+ yield LintResult.from_cmd(flake8(setup_py, src.pyarrow, src.dev,
+ check=False))
+ config = os.path.join(src.python, ".flake8.cython")
yield LintResult.from_cmd(flake8("--config=" + config, src.pyarrow,
check=False))