aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/pybuild.py
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-26 13:04:55 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-26 13:04:55 +0300
commit78caba673687bcd49fbf2ce6d097d318282ff002 (patch)
tree7e87d11347d92113f9e39f03db2e61ce7943b5aa /build/plugins/pybuild.py
parentd2fb88bc290f27a26b3ed7eb1932c5fb94cfd813 (diff)
downloadydb-78caba673687bcd49fbf2ce6d097d318282ff002.tar.gz
intermediate changes
ref:110136b448f725022fe4a99944539b99fd3a0ebf
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r--build/plugins/pybuild.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py
index b3f8b3ad7c..52ad6f3ef4 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -155,6 +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)
def is_py3(unit):
return unit.get("PYTHON3") == "yes"