aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/pybuild.py
diff options
context:
space:
mode:
authorzhukoff-pavel <zhukoff-pavel@yandex-team.com>2023-03-27 13:48:42 +0300
committerzhukoff-pavel <zhukoff-pavel@yandex-team.com>2023-03-27 13:48:42 +0300
commitebea3630bb3cabb3f936b766830864a581bc65b9 (patch)
tree92ff71f1e30684b0d42672a5134257e91e3c5fa6 /build/plugins/pybuild.py
parentfdc60d2a6e899aec6531790ecd1fa3b705277dc1 (diff)
downloadydb-ebea3630bb3cabb3f936b766830864a581bc65b9.tar.gz
Add cythonized python srcs lint checks
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r--build/plugins/pybuild.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py
index a26b3fb8eb..93e6c826aa 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -440,6 +440,12 @@ def onpy_srcs(unit, *args):
py_register(unit, mod, py3)
process_pyx(filename, path, out_suffix, with_ext)
+ if cythonize_py:
+ # Lint checks are not added for cythonized files by default, so we must add it here
+ # as we are doing for regular pys.
+ _23 = 3 if py3 else 2
+ add_python_lint_checks(unit, _23, [path for path, mod in pyxs if path.endswith(".py")] + unit.get(['_PY_EXTRA_LINT_FILES_VALUE']).split())
+
if py_files2res:
# Compile original and generated sources into target for proper cython coverage calculation
for files2res in (py_files2res, cpp_files2res):