diff options
author | iaz1607 <iaz1607@yandex-team.com> | 2024-04-02 14:12:19 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.com> | 2024-04-02 14:25:02 +0300 |
commit | 12d0dc6f411e930adac85e026f10633474892b39 (patch) | |
tree | ca18882ab5668f28b275664d1bcc03eed09f9c36 /build/plugins | |
parent | 709be325f23a8a973e0e2259efd8608bc7f2b5b2 (diff) | |
download | ydb-12d0dc6f411e930adac85e026f10633474892b39.tar.gz |
Support test splitting for black
1eb74f74814063feea5de7bec24567c81d8ae8d8
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/pybuild.py | 5 |
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) |