diff options
author | anastasy888 <anastasy888@yandex-team.ru> | 2022-02-10 16:45:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:54 +0300 |
commit | 49f765d71da452ea93138a25559dfa68dd76c7f3 (patch) | |
tree | 1016041feb637349e401dcc0fa85217dd2c2c639 /build/plugins/pybuild.py | |
parent | 7353a3fdea9c67c256980c00a2b3b67f09b23a27 (diff) | |
download | ydb-49f765d71da452ea93138a25559dfa68dd76c7f3.tar.gz |
Restoring authorship annotation for <anastasy888@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r-- | build/plugins/pybuild.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index f32a2d39a0..60957a2374 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -111,14 +111,14 @@ def get_srcdir(path, unit): return rootrel_arc_src(path, unit)[:-len(path)].rstrip('/') def add_python_lint_checks(unit, py_ver, files): - def get_resolved_files(): + def get_resolved_files(): resolved_files = [] for path in files: resolved = unit.resolve_arc_path([path]) if resolved.startswith('$S'): # path was resolved as source file. resolved_files.append(resolved) - return resolved_files - + return resolved_files + if unit.get('LINT_LEVEL_VALUE') == "none": no_lint_allowed_paths = ( @@ -138,11 +138,11 @@ def add_python_lint_checks(unit, py_ver, files): ymake.report_configure_error("NO_LINT() is allowed only in " + ", ".join(no_lint_allowed_paths)) if files and unit.get('LINT_LEVEL_VALUE') not in ("none", "none_internal"): - resolved_files = get_resolved_files() + resolved_files = get_resolved_files() flake8_cfg = 'build/config/tests/flake8/flake8.conf' - unit.onadd_check(["flake8.py{}".format(py_ver), flake8_cfg] + resolved_files) - + unit.onadd_check(["flake8.py{}".format(py_ver), flake8_cfg] + resolved_files) + def is_py3(unit): return unit.get("PYTHON3") == "yes" |