aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins
diff options
context:
space:
mode:
authorsay <say@yandex-team.com>2023-12-11 20:06:29 +0300
committersay <say@yandex-team.com>2023-12-11 21:07:13 +0300
commit9735e616e9f7a0d2696ec558a1e6bbb1ca0e0654 (patch)
treed2c28d6c07b73361409c93bce35332fa93f89708 /build/plugins
parent0725824b3155b061fb8801cc4b1ca50e50edfa93 (diff)
downloadydb-9735e616e9f7a0d2696ec558a1e6bbb1ca0e0654.tar.gz
Prepare to rename py3_flake8 tests to flake8
Diffstat (limited to 'build/plugins')
-rw-r--r--build/plugins/lib/test_const/__init__.py1
-rw-r--r--build/plugins/pybuild.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/build/plugins/lib/test_const/__init__.py b/build/plugins/lib/test_const/__init__.py
index 4765aea563..d137b01342 100644
--- a/build/plugins/lib/test_const/__init__.py
+++ b/build/plugins/lib/test_const/__init__.py
@@ -72,6 +72,7 @@ STYLE_TEST_TYPES = [
"ktlint",
"py2_flake8",
"py3_flake8",
+ "flake8",
"black",
]
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py
index b9a4343acf..6c493fc346 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -172,7 +172,8 @@ def add_python_lint_checks(unit, py_ver, files):
flake8_cfg = 'build/config/tests/flake8/flake8.conf'
migrations_cfg = 'build/rules/flake8/migrations.yaml'
resource = "build/external_resources/flake8_py{}".format(py_ver)
- lint_name = "py{}_flake8".format(py_ver)
+ # TODO YA-1534: Replace py3_flake8 by flake8 after ya-bin release
+ lint_name = "py2_flake8" if py_ver == 2 else "py3_flake8"
params = [lint_name, "tools/flake8_linter/flake8_linter"]
params += ["FILES"] + resolved_files
params += ["GLOBAL_RESOURCES", resource]