diff options
author | arcadia-devtools <[email protected]> | 2022-03-27 14:34:27 +0300 |
---|---|---|
committer | arcadia-devtools <[email protected]> | 2022-03-27 14:34:27 +0300 |
commit | 24296a187653e35eea8e65547a030c785726b01e (patch) | |
tree | a5f0218579ff1b336a0b55de0a5d3299f7f3990d /build/plugins | |
parent | a6c36037482b150ce53f0ac36ba1dc07f8987900 (diff) |
intermediate changes
ref:bbc923aac9ef025dc91140be0c7607c81622b526
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/pybuild.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index 52ad6f3ef46..14350e5edfa 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -155,11 +155,11 @@ def add_python_lint_checks(unit, py_ver, files): flake8_cfg = 'build/config/tests/flake8/flake8.conf' unit.onadd_check(["flake8.py{}".format(py_ver), flake8_cfg] + resolved_files) - if files and unit.get('LINT_PY') == 'yes': - if is_py3(unit): - resolved_files = get_resolved_files() - black_cfg = 'devtools/ya/handlers/style/python_style_config.toml' - unit.onadd_check(['black', black_cfg] + resolved_files) + if files and unit.get('STYLE_PYTHON_VALUE') == 'yes' and is_py3(unit): + resolved_files = get_resolved_files() + black_cfg = 'devtools/ya/handlers/style/python_style_config.toml' + unit.onadd_check(['black', black_cfg] + resolved_files) + def is_py3(unit): return unit.get("PYTHON3") == "yes" |