Browse Source

Rename py3_flake8 to flake8

say 1 year ago
parent
commit
b9f3120d16
2 changed files with 1 additions and 3 deletions
  1. 0 1
      build/plugins/lib/test_const/__init__.py
  2. 1 2
      build/plugins/pybuild.py

+ 0 - 1
build/plugins/lib/test_const/__init__.py

@@ -71,7 +71,6 @@ STYLE_TEST_TYPES = [
     "java.style",
     "java.style",
     "ktlint",
     "ktlint",
     "py2_flake8",
     "py2_flake8",
-    "py3_flake8",
     "flake8",
     "flake8",
     "black",
     "black",
 ]
 ]

+ 1 - 2
build/plugins/pybuild.py

@@ -172,8 +172,7 @@ def add_python_lint_checks(unit, py_ver, files):
             flake8_cfg = 'build/config/tests/flake8/flake8.conf'
             flake8_cfg = 'build/config/tests/flake8/flake8.conf'
             migrations_cfg = 'build/rules/flake8/migrations.yaml'
             migrations_cfg = 'build/rules/flake8/migrations.yaml'
             resource = "build/external_resources/flake8_py{}".format(py_ver)
             resource = "build/external_resources/flake8_py{}".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"
+            lint_name = "py2_flake8" if py_ver == 2 else "flake8"
             params = [lint_name, "tools/flake8_linter/flake8_linter"]
             params = [lint_name, "tools/flake8_linter/flake8_linter"]
             params += ["FILES"] + resolved_files
             params += ["FILES"] + resolved_files
             params += ["GLOBAL_RESOURCES", resource]
             params += ["GLOBAL_RESOURCES", resource]