aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.com>2024-04-02 14:12:19 +0300
committeriaz1607 <iaz1607@yandex-team.com>2024-04-02 14:25:02 +0300
commit12d0dc6f411e930adac85e026f10633474892b39 (patch)
treeca18882ab5668f28b275664d1bcc03eed09f9c36
parent709be325f23a8a973e0e2259efd8608bc7f2b5b2 (diff)
downloadydb-12d0dc6f411e930adac85e026f10633474892b39.tar.gz
Support test splitting for black
1eb74f74814063feea5de7bec24567c81d8ae8d8
-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 b7b28359f4..65470a8c75 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -12,6 +12,7 @@ YA_IDE_VENV_VAR = 'YA_IDE_VENV'
PY_NAMESPACE_PREFIX = 'py/namespace'
BUILTIN_PROTO = 'builtin_proto'
DEFAULT_FLAKE8_FILE_PROCESSING_TIME = "1.5" # in seconds
+DEFAULT_BLACK_FILE_PROCESSING_TIME = "1.5" # in seconds
def _split_macro_call(macro_call, data, item_size, chunk_size=1024):
@@ -227,6 +228,10 @@ def add_python_lint_checks(unit, py_ver, files):
params = ['black', 'tools/black_linter/black_linter']
params += ['FILES'] + resolved_files
params += ['CONFIGS', black_cfg]
+ params += [
+ "FILE_PROCESSING_TIME",
+ unit.get("BLACK_FILE_PROCESSING_TIME") or DEFAULT_BLACK_FILE_PROCESSING_TIME,
+ ]
unit.on_add_linter_check(params)