diff options
author | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 18:04:29 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2023-09-08 19:16:03 +0300 |
commit | 54065fe53a95def89c154ae1072ef82c8521b370 (patch) | |
tree | 47418c069ac5b9fca4c8e1c98514b5037d4b35f9 /build/prebuilt | |
parent | 817e41979557df1ec8f1f65f1a69d8e99fe3d948 (diff) | |
download | ydb-54065fe53a95def89c154ae1072ef82c8521b370.tar.gz |
[build/plugins/ytest] Allow prebuilt linters for opensource (try 2)
Без этого, ydb или не сможет запускать flake8 с помощью ya make.
diff который выедет в os ydb:
```
prettyboy@mous~> diff /tmp/aa /tmp/bb
93a94,97
> │ │ ├── flake8_py2
> │ │ │ └── ya.make
> │ │ ├── flake8_py3
> │ │ │ └── ya.make
283a288,293
> │ │ ├── black_linter
> │ │ │ ├── resources.json
> │ │ │ └── ya.make.prebuilt
> │ │ ├── flake8_linter
> │ │ │ ├── resources.json
> │ │ │ └── ya.make.prebuilt
50026a50037,50038
> │ ├── black_linter
> │ │ └── ya.make
50090a50103,50104
> │ ├── flake8_linter
> │ │ └── ya.make
85521c85535
< 7459 directories, 78059 files
---
> 7465 directories, 78067 files
```
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() |