diff options
author | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 00:22:12 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 00:46:04 +0300 |
commit | 3a6cd865171eed9b89bf536cd242285f8b583a91 (patch) | |
tree | 25e2756c125f7484fb118e0d5724212199662389 /build/prebuilt | |
parent | 67f3f216950849664a29035458cfaa5d12a62846 (diff) | |
download | ydb-3a6cd865171eed9b89bf536cd242285f8b583a91.tar.gz |
[build/plugins/ytest] Allow prebuilt linters for opensource
Без этого, ydb или не сможет запускать flake8 с помощью ya make.
Или к ним поедет сборка flake8.
Возможно последнее и не так плохо, но сейчас предлагается пока так
Diffstat (limited to 'build/prebuilt')
-rw-r--r-- | build/prebuilt/tools/black_linter/resources.json | 22 | ||||
-rw-r--r-- | build/prebuilt/tools/black_linter/ya.make.prebuilt | 13 | ||||
-rw-r--r-- | build/prebuilt/tools/flake8_linter/resources.json | 22 | ||||
-rw-r--r-- | build/prebuilt/tools/flake8_linter/ya.make.prebuilt | 13 |
4 files changed, 70 insertions, 0 deletions
diff --git a/build/prebuilt/tools/black_linter/resources.json b/build/prebuilt/tools/black_linter/resources.json new file mode 100644 index 0000000000..21f88f0b45 --- /dev/null +++ b/build/prebuilt/tools/black_linter/resources.json @@ -0,0 +1,22 @@ +{ + "by_platform": { + "darwin": { + "uri": "sbr:4312044253" + }, + "darwin-arm64": { + "uri": "sbr:4312093363" + }, + "linux": { + "uri": "sbr:4312064267" + }, + "linux-aarch64": { + "uri": "sbr:4312063561" + }, + "linux-ppc64le": { + "uri": "sbr:4312048745" + }, + "win32-clang-cl": { + "uri": "sbr:4312072792" + } + } +} diff --git a/build/prebuilt/tools/black_linter/ya.make.prebuilt b/build/prebuilt/tools/black_linter/ya.make.prebuilt new file mode 100644 index 0000000000..49e793f079 --- /dev/null +++ b/build/prebuilt/tools/black_linter/ya.make.prebuilt @@ -0,0 +1,13 @@ +SET_RESOURCE_URI_FROM_JSON(SANDBOX_RESOURCE_URI ${ARCADIA_ROOT}/build/prebuilt/tools/black_linter/resources.json) + +IF (SANDBOX_RESOURCE_URI != "") + ENABLE(PREBUILT) + + PREBUILT_PROGRAM() + + DECLARE_EXTERNAL_RESOURCE(BLACK_LINTER ${SANDBOX_RESOURCE_URI}) + + PRIMARY_OUTPUT(${BLACK_LINTER_RESOURCE_GLOBAL}/black_linter${MODULE_SUFFIX}) + + END() +ENDIF() diff --git a/build/prebuilt/tools/flake8_linter/resources.json b/build/prebuilt/tools/flake8_linter/resources.json new file mode 100644 index 0000000000..565c8be7f9 --- /dev/null +++ b/build/prebuilt/tools/flake8_linter/resources.json @@ -0,0 +1,22 @@ +{ + "by_platform": { + "darwin": { + "uri": "sbr:4307900052" + }, + "darwin-arm64": { + "uri": "sbr:4307900057" + }, + "linux": { + "uri": "sbr:4307890075" + }, + "linux-aarch64": { + "uri": "sbr:4307901240" + }, + "linux-ppc64le": { + "uri": "sbr:4307897255" + }, + "win32-clang-cl": { + "uri": "sbr:4307903123" + } + } +} diff --git a/build/prebuilt/tools/flake8_linter/ya.make.prebuilt b/build/prebuilt/tools/flake8_linter/ya.make.prebuilt new file mode 100644 index 0000000000..dc71bad749 --- /dev/null +++ b/build/prebuilt/tools/flake8_linter/ya.make.prebuilt @@ -0,0 +1,13 @@ +SET_RESOURCE_URI_FROM_JSON(SANDBOX_RESOURCE_URI ${ARCADIA_ROOT}/build/prebuilt/tools/flake8_linter/resources.json) + +IF (SANDBOX_RESOURCE_URI != "") + ENABLE(PREBUILT) + + PREBUILT_PROGRAM() + + DECLARE_EXTERNAL_RESOURCE(FLAKE8_LINTER ${SANDBOX_RESOURCE_URI}) + + PRIMARY_OUTPUT(${FLAKE8_LINTER_RESOURCE_GLOBAL}/flake8_linter${MODULE_SUFFIX}) + + END() +ENDIF() |