aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/config/tests/py_style/config_paths.json12
-rw-r--r--build/config/tests/py_style/ya.make1
-rw-r--r--build/mapping.conf.json8
-rw-r--r--build/plugins/lib/tests/utils/__init__.py (renamed from build/plugins/lib/tests/ruff/__init__.py)10
-rw-r--r--build/plugins/lib/tests/utils/ya.make (renamed from build/plugins/lib/tests/ruff/ya.make)0
-rw-r--r--build/plugins/ya.make2
-rw-r--r--build/prebuilt/tools/black_linter/resources.json12
-rw-r--r--build/prebuilt/tools/flake8_linter/resources.json12
8 files changed, 38 insertions, 19 deletions
diff --git a/build/config/tests/py_style/config_paths.json b/build/config/tests/py_style/config_paths.json
new file mode 100644
index 0000000000..7b3c51669b
--- /dev/null
+++ b/build/config/tests/py_style/config_paths.json
@@ -0,0 +1,12 @@
+{
+ "": "build/config/tests/py_style/config.toml",
+ "devtools/contrib/piglet/template_generator/": "maps/infra/pyproject.toml",
+ "devtools/dwh/intrasearch/utils/": "devtools/dwh/pyproject.toml",
+ "devtools/rnd/": "devtools/rnd/pyproject.toml",
+ "devtools/yamaker/": "devtools/yamaker/pyproject.toml",
+ "dj/services/arcanum/": "dj/services/arcanum/pyproject.toml",
+ "intranet/search/": "intranet/search/pyproject.toml",
+ "maps/": "maps/infra/pyproject.toml",
+ "ml/tensorflow/models/userbert/pipeline/multipart/data/": "ml/tensorflow/models/userbert/pipeline/multipart/data/pyproject.toml",
+ "partner/python/": "partner/python/pyproject.toml"
+}
diff --git a/build/config/tests/py_style/ya.make b/build/config/tests/py_style/ya.make
index 6a6a287558..37dcd2ec82 100644
--- a/build/config/tests/py_style/ya.make
+++ b/build/config/tests/py_style/ya.make
@@ -2,6 +2,7 @@ LIBRARY()
RESOURCE_FILES(
config.toml
+ config_paths.json
)
END()
diff --git a/build/mapping.conf.json b/build/mapping.conf.json
index f01befdf55..e2b6d94772 100644
--- a/build/mapping.conf.json
+++ b/build/mapping.conf.json
@@ -499,8 +499,12 @@
"5631255103": "https://devtools-registry.s3.yandex.net/5631255103",
"5631238759": "https://devtools-registry.s3.yandex.net/5631238759",
"5631258091": "https://devtools-registry.s3.yandex.net/5631258091",
+ "6561719783": "https://devtools-registry.s3.yandex.net/6561719783",
+ "6561716686": "https://devtools-registry.s3.yandex.net/6561716686",
"6184290684": "https://devtools-registry.s3.yandex.net/6184290684",
+ "6561765464": "https://devtools-registry.s3.yandex.net/6561765464",
"6184289846": "https://devtools-registry.s3.yandex.net/6184289846",
+ "6561764909": "https://devtools-registry.s3.yandex.net/6561764909",
"5054517618": "https://devtools-registry.s3.yandex.net/5054517618",
"5054512910": "https://devtools-registry.s3.yandex.net/5054512910",
"5054518131": "https://devtools-registry.s3.yandex.net/5054518131",
@@ -1072,8 +1076,12 @@
"5631255103": "python3 for linux",
"5631238759": "python3 for linux-aarch64",
"5631258091": "python3.exe for win32",
+ "6561719783": "tools/black_linter/bin/black_linter for linux",
+ "6561716686": "tools/black_linter/bin/black_linter for linux-aarch64",
"6184290684": "tools/flake8_linter/bin/flake8_linter for linux",
+ "6561765464": "tools/flake8_linter/bin/flake8_linter for linux",
"6184289846": "tools/flake8_linter/bin/flake8_linter for linux-aarch64",
+ "6561764909": "tools/flake8_linter/bin/flake8_linter for linux-aarch64",
"5054517618": "ya-tc for darwin",
"5054512910": "ya-tc for darwin-arm64",
"5054518131": "ya-tc for linux",
diff --git a/build/plugins/lib/tests/ruff/__init__.py b/build/plugins/lib/tests/utils/__init__.py
index 2009d0e29a..5916e7ba1b 100644
--- a/build/plugins/lib/tests/ruff/__init__.py
+++ b/build/plugins/lib/tests/utils/__init__.py
@@ -1,7 +1,7 @@
import os
-def get_ruff_config(path, config_paths, arc_root):
+def select_project_config(path, config_paths, arc_root):
# type(str, dict, str) -> Optional[str]
relative_path = os.path.relpath(path, arc_root)
@@ -10,8 +10,6 @@ def get_ruff_config(path, config_paths, arc_root):
for p in config_paths.keys():
if relative_path.startswith(p) and len(p) > len(deepest_path):
deepest_path = p
- if deepest_path:
- config = config_paths[deepest_path]
- full_config_path = os.path.join(arc_root, config)
- return full_config_path
- return None
+ config = config_paths[deepest_path]
+ full_config_path = os.path.join(arc_root, config)
+ return full_config_path
diff --git a/build/plugins/lib/tests/ruff/ya.make b/build/plugins/lib/tests/utils/ya.make
index 0d2fd8361c..0d2fd8361c 100644
--- a/build/plugins/lib/tests/ruff/ya.make
+++ b/build/plugins/lib/tests/utils/ya.make
diff --git a/build/plugins/ya.make b/build/plugins/ya.make
index e4368474ea..85c885c619 100644
--- a/build/plugins/ya.make
+++ b/build/plugins/ya.make
@@ -48,5 +48,5 @@ RECURSE(
lib/proxy
lib/test_const
lib/test_const/proxy
- lib/tests/ruff
+ lib/tests/utils
)
diff --git a/build/prebuilt/tools/black_linter/resources.json b/build/prebuilt/tools/black_linter/resources.json
index 21f88f0b45..378d95f64f 100644
--- a/build/prebuilt/tools/black_linter/resources.json
+++ b/build/prebuilt/tools/black_linter/resources.json
@@ -1,22 +1,22 @@
{
"by_platform": {
"darwin": {
- "uri": "sbr:4312044253"
+ "uri": "sbr:6561718478"
},
"darwin-arm64": {
- "uri": "sbr:4312093363"
+ "uri": "sbr:6561717222"
},
"linux": {
- "uri": "sbr:4312064267"
+ "uri": "sbr:6561719783"
},
"linux-aarch64": {
- "uri": "sbr:4312063561"
+ "uri": "sbr:6561716686"
},
"linux-ppc64le": {
- "uri": "sbr:4312048745"
+ "uri": "sbr:6561716834"
},
"win32-clang-cl": {
- "uri": "sbr:4312072792"
+ "uri": "sbr:6561716466"
}
}
}
diff --git a/build/prebuilt/tools/flake8_linter/resources.json b/build/prebuilt/tools/flake8_linter/resources.json
index 2bf92c4432..3d3e0a5b16 100644
--- a/build/prebuilt/tools/flake8_linter/resources.json
+++ b/build/prebuilt/tools/flake8_linter/resources.json
@@ -1,22 +1,22 @@
{
"by_platform": {
"darwin": {
- "uri": "sbr:6184287521"
+ "uri": "sbr:6561763775"
},
"darwin-arm64": {
- "uri": "sbr:6184286720"
+ "uri": "sbr:6561763221"
},
"linux": {
- "uri": "sbr:6184290684"
+ "uri": "sbr:6561765464"
},
"linux-aarch64": {
- "uri": "sbr:6184289846"
+ "uri": "sbr:6561764909"
},
"linux-ppc64le": {
- "uri": "sbr:6184288710"
+ "uri": "sbr:6561764332"
},
"win32": {
- "uri": "sbr:6184285692"
+ "uri": "sbr:6561762661"
}
}
}