diff --git a/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py b/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py index fe57f069a1..9b7bc4e58a 100644 --- a/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py +++ b/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py @@ -311,7 +311,7 @@ def post_analyze(self, result_handler): try: shutil.copy2(cppcheck_out, codechecker_out) Path(cppcheck_out).rename(str(cppcheck_out) + ".bak") - except(OSError) as e: + except (OSError) as e: LOG.error(e.errno) @classmethod diff --git a/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py b/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py index c5aa72d8bd..2408017083 100644 --- a/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py +++ b/analyzer/codechecker_analyzer/analyzers/gcc/result_handler.py @@ -96,7 +96,7 @@ def postprocess_result( # unintentionally parse them, so we rename them. try: shutil.move(gcc_dest_file_name, gcc_dest_file_name + '.bak') - except(OSError) as e: + except (OSError) as e: LOG.error(e) for report in reports: diff --git a/analyzer/requirements_py/dev/requirements.txt b/analyzer/requirements_py/dev/requirements.txt index 894b4c6fc7..3089b72601 100644 --- a/analyzer/requirements_py/dev/requirements.txt +++ b/analyzer/requirements_py/dev/requirements.txt @@ -1,5 +1,5 @@ pytest==7.3.1 -pycodestyle==2.7.0 +pycodestyle==2.12.0 pylint==2.8.2 mkdocs==1.5.3 coverage==5.5.0 diff --git a/analyzer/tools/build-logger/requirements_py/dev/requirements.txt b/analyzer/tools/build-logger/requirements_py/dev/requirements.txt index dea2d59c92..ab2e19281b 100644 --- a/analyzer/tools/build-logger/requirements_py/dev/requirements.txt +++ b/analyzer/tools/build-logger/requirements_py/dev/requirements.txt @@ -1,3 +1,3 @@ pytest==7.3.1 -pycodestyle==2.4.0 +pycodestyle==2.12.0 pylint==2.8.2 diff --git a/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt b/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt index dea2d59c92..ab2e19281b 100644 --- a/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt +++ b/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt @@ -1,3 +1,3 @@ pytest==7.3.1 -pycodestyle==2.4.0 +pycodestyle==2.12.0 pylint==2.8.2 diff --git a/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt b/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt index dea2d59c92..ab2e19281b 100644 --- a/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt +++ b/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt @@ -1,3 +1,3 @@ pytest==7.3.1 -pycodestyle==2.4.0 +pycodestyle==2.12.0 pylint==2.8.2 diff --git a/scripts/test/add_new_unit_test.py b/scripts/test/add_new_unit_test.py index 69c9ee02e8..f5680dfc0d 100755 --- a/scripts/test/add_new_unit_test.py +++ b/scripts/test/add_new_unit_test.py @@ -32,7 +32,7 @@ def main(): print("Unit test already exists: " + new_test) sys.exit(1) - template = os.path.join(unit_test_path, 'unit_template.py') + template = os.path.join(unit_test_path, 'unit_test.template') with open(template, 'r', encoding="utf-8", errors="ignore") as init: new_test_content = init.read() diff --git a/tools/bazel/requirements_py/dev/requirements.txt b/tools/bazel/requirements_py/dev/requirements.txt index a9f7c470cd..f0492af5b4 100644 --- a/tools/bazel/requirements_py/dev/requirements.txt +++ b/tools/bazel/requirements_py/dev/requirements.txt @@ -1,4 +1,4 @@ pytest==7.3.1 -pycodestyle==2.7.0 +pycodestyle==2.12.0 pylint==2.8.2 mypy==1.7.1 diff --git a/tools/report-converter/requirements_py/dev/requirements.txt b/tools/report-converter/requirements_py/dev/requirements.txt index 15920d1699..b24aab957a 100644 --- a/tools/report-converter/requirements_py/dev/requirements.txt +++ b/tools/report-converter/requirements_py/dev/requirements.txt @@ -1,6 +1,6 @@ pytest==7.3.1 sarif-tools==1.0.0 -pycodestyle==2.7.0 +pycodestyle==2.12.0 pylint==2.8.2 portalocker==2.2.1 mypy==1.7.1 diff --git a/tools/tu_collector/requirements_py/dev/requirements.txt b/tools/tu_collector/requirements_py/dev/requirements.txt index a9f7c470cd..f0492af5b4 100644 --- a/tools/tu_collector/requirements_py/dev/requirements.txt +++ b/tools/tu_collector/requirements_py/dev/requirements.txt @@ -1,4 +1,4 @@ pytest==7.3.1 -pycodestyle==2.7.0 +pycodestyle==2.12.0 pylint==2.8.2 mypy==1.7.1 diff --git a/web/client/codechecker_client/credential_manager.py b/web/client/codechecker_client/credential_manager.py index 2f08c28174..2946463c84 100644 --- a/web/client/codechecker_client/credential_manager.py +++ b/web/client/codechecker_client/credential_manager.py @@ -20,8 +20,8 @@ from codechecker_common.logger import get_logger from codechecker_common.util import load_json -from codechecker_web.shared.env import check_file_owner_rw, get_password_file,\ - get_session_file +from codechecker_web.shared.env import check_file_owner_rw, \ + get_password_file, get_session_file from codechecker_web.shared.version import SESSION_COOKIE_NAME as _SCN LOG = get_logger('system') diff --git a/web/requirements_py/dev/requirements.txt b/web/requirements_py/dev/requirements.txt index f177a0589c..5674ba6558 100644 --- a/web/requirements_py/dev/requirements.txt +++ b/web/requirements_py/dev/requirements.txt @@ -1,4 +1,4 @@ -pycodestyle==2.7.0 +pycodestyle==2.12.0 psycopg2-binary==2.8.6 pg8000==1.15.2 pylint==2.8.2 diff --git a/web/server/tests/unit/unit_template.py b/web/server/tests/unit/unit_test.template similarity index 100% rename from web/server/tests/unit/unit_template.py rename to web/server/tests/unit/unit_test.template