diff options
author | anastasy888 <anastasy888@yandex-team.ru> | 2022-02-10 16:45:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:54 +0300 |
commit | 49f765d71da452ea93138a25559dfa68dd76c7f3 (patch) | |
tree | 1016041feb637349e401dcc0fa85217dd2c2c639 /build | |
parent | 7353a3fdea9c67c256980c00a2b3b67f09b23a27 (diff) | |
download | ydb-49f765d71da452ea93138a25559dfa68dd76c7f3.tar.gz |
Restoring authorship annotation for <anastasy888@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build')
-rw-r--r-- | build/config/tests/flake8/flake8.conf | 42 | ||||
-rw-r--r-- | build/external_resources/flake8_py2/ya.make | 14 | ||||
-rw-r--r-- | build/external_resources/flake8_py3/ya.make | 14 | ||||
-rw-r--r-- | build/plugins/_test_const.py | 4 | ||||
-rw-r--r-- | build/plugins/pybuild.py | 12 |
5 files changed, 43 insertions, 43 deletions
diff --git a/build/config/tests/flake8/flake8.conf b/build/config/tests/flake8/flake8.conf index 8af22b5d4d9..32e356443f5 100644 --- a/build/config/tests/flake8/flake8.conf +++ b/build/config/tests/flake8/flake8.conf @@ -1,35 +1,35 @@ -[flake8] -select = - E, W, # pep8 errors and warnings - F, # pyflakes - C9, # McCabe - N8, # Naming Conventions - #B, S, # bandit - #C, # commas - #D, # docstrings - #P, # string-format - #Q, # quotes - -ignore = +[flake8] +select = + E, W, # pep8 errors and warnings + F, # pyflakes + C9, # McCabe + N8, # Naming Conventions + #B, S, # bandit + #C, # commas + #D, # docstrings + #P, # string-format + #Q, # quotes + +ignore = E122, # continuation line missing indentation or outdented E123, # closing bracket does not match indentation of opening bracket's line - E127, # continuation line over-indented for visual indent + E127, # continuation line over-indented for visual indent E131, # continuation line unaligned for hanging E203, # whitespace before ':' E225, # missing whitespace around operator - E226, # missing whitespace around arithmetic operator + E226, # missing whitespace around arithmetic operator E24, # multiple spaces after ',' or tab after ',' E275, # missing whitespace after keyword E305, # expected 2 blank lines after end of function or class E306, # expected 1 blank line before a nested definition - E402, # module level import not at top of file - E722, # do not use bare except, specify exception instead - E731, # do not assign a lambda expression, use a def + E402, # module level import not at top of file + E722, # do not use bare except, specify exception instead + E731, # do not assign a lambda expression, use a def E741, # do not use variables named 'l', 'O', or 'I' - + F722, # syntax error in forward annotation - + W503, # line break before binary operator W504, # line break after binary operator -max-line-length = 200 +max-line-length = 200 diff --git a/build/external_resources/flake8_py2/ya.make b/build/external_resources/flake8_py2/ya.make index 412a014b9e7..cbd98caca7e 100644 --- a/build/external_resources/flake8_py2/ya.make +++ b/build/external_resources/flake8_py2/ya.make @@ -1,7 +1,7 @@ -RESOURCES_LIBRARY() - -OWNER(g:yatool) - +RESOURCES_LIBRARY() + +OWNER(g:yatool) + IF (HOST_OS_DARWIN AND HOST_ARCH_ARM64 OR HOST_OS_DARWIN AND HOST_ARCH_X86_64 OR HOST_OS_LINUX AND HOST_ARCH_PPC64LE OR @@ -9,8 +9,8 @@ IF (HOST_OS_DARWIN AND HOST_ARCH_ARM64 OR HOST_OS_WINDOWS AND HOST_ARCH_X86_64) ELSE() MESSAGE(FATAL_ERROR Unsupported host platform for FLAKE8_PY2) -ENDIF() - +ENDIF() + DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE( FLAKE8_PY2 sbr:2488549842 FOR DARWIN-ARM64 @@ -20,4 +20,4 @@ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE( sbr:2488554786 FOR WIN32 ) -END() +END() diff --git a/build/external_resources/flake8_py3/ya.make b/build/external_resources/flake8_py3/ya.make index c2192b2df68..c7ef63b3e1f 100644 --- a/build/external_resources/flake8_py3/ya.make +++ b/build/external_resources/flake8_py3/ya.make @@ -1,7 +1,7 @@ -RESOURCES_LIBRARY() - -OWNER(g:yatool) - +RESOURCES_LIBRARY() + +OWNER(g:yatool) + IF (HOST_OS_DARWIN AND HOST_ARCH_ARM64 OR HOST_OS_DARWIN AND HOST_ARCH_X86_64 OR HOST_OS_LINUX AND HOST_ARCH_PPC64LE OR @@ -9,8 +9,8 @@ IF (HOST_OS_DARWIN AND HOST_ARCH_ARM64 OR HOST_OS_WINDOWS AND HOST_ARCH_X86_64) ELSE() MESSAGE(FATAL_ERROR Unsupported host platform for FLAKE8_PY3) -ENDIF() - +ENDIF() + DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE( FLAKE8_PY3 sbr:2617984240 FOR DARWIN-ARM64 @@ -20,4 +20,4 @@ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE( sbr:2617986064 FOR WIN32 ) -END() +END() diff --git a/build/plugins/_test_const.py b/build/plugins/_test_const.py index 0d03cc3d179..102c1d31c2a 100644 --- a/build/plugins/_test_const.py +++ b/build/plugins/_test_const.py @@ -71,8 +71,8 @@ PEP8_PY2_RESOURCE = 'PEP8_PY2_RESOURCE_GLOBAL' PEP8_PY3_RESOURCE = 'PEP8_PY3_RESOURCE_GLOBAL' FLAKES_PY2_RESOURCE = 'FLAKES_PY2_RESOURCE_GLOBAL' FLAKES_PY3_RESOURCE = 'FLAKES_PY3_RESOURCE_GLOBAL' -FLAKE8_PY2_RESOURCE = 'FLAKE8_PY2_RESOURCE_GLOBAL' -FLAKE8_PY3_RESOURCE = 'FLAKE8_PY3_RESOURCE_GLOBAL' +FLAKE8_PY2_RESOURCE = 'FLAKE8_PY2_RESOURCE_GLOBAL' +FLAKE8_PY3_RESOURCE = 'FLAKE8_PY3_RESOURCE_GLOBAL' class Enum(object): diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index f32a2d39a0e..60957a23747 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -111,14 +111,14 @@ def get_srcdir(path, unit): return rootrel_arc_src(path, unit)[:-len(path)].rstrip('/') def add_python_lint_checks(unit, py_ver, files): - def get_resolved_files(): + def get_resolved_files(): resolved_files = [] for path in files: resolved = unit.resolve_arc_path([path]) if resolved.startswith('$S'): # path was resolved as source file. resolved_files.append(resolved) - return resolved_files - + return resolved_files + if unit.get('LINT_LEVEL_VALUE') == "none": no_lint_allowed_paths = ( @@ -138,11 +138,11 @@ def add_python_lint_checks(unit, py_ver, files): ymake.report_configure_error("NO_LINT() is allowed only in " + ", ".join(no_lint_allowed_paths)) if files and unit.get('LINT_LEVEL_VALUE') not in ("none", "none_internal"): - resolved_files = get_resolved_files() + resolved_files = get_resolved_files() flake8_cfg = 'build/config/tests/flake8/flake8.conf' - unit.onadd_check(["flake8.py{}".format(py_ver), flake8_cfg] + resolved_files) - + unit.onadd_check(["flake8.py{}".format(py_ver), flake8_cfg] + resolved_files) + def is_py3(unit): return unit.get("PYTHON3") == "yes" |