Skip to content

Commit

Permalink
Merge pull request Ericsson#4264 from bruntib/upgrade_pycodestyle
Browse files Browse the repository at this point in the history
[cfg] Upgrade pycodestyle to 2.12.0
  • Loading branch information
vodorok authored Jun 19, 2024
2 parents f974987 + d0d1545 commit 3d1a1ab
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion analyzer/requirements_py/dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==7.3.1
pycodestyle==2.4.0
pycodestyle==2.12.0
pylint==2.8.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==7.3.1
pycodestyle==2.4.0
pycodestyle==2.12.0
pylint==2.8.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==7.3.1
pycodestyle==2.4.0
pycodestyle==2.12.0
pylint==2.8.2
2 changes: 1 addition & 1 deletion scripts/test/add_new_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tools/bazel/requirements_py/dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.3.1
pycodestyle==2.7.0
pycodestyle==2.12.0
pylint==2.8.2
mypy==1.7.1
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tools/tu_collector/requirements_py/dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.3.1
pycodestyle==2.7.0
pycodestyle==2.12.0
pylint==2.8.2
mypy==1.7.1
4 changes: 2 additions & 2 deletions web/client/codechecker_client/credential_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion web/requirements_py/dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.

0 comments on commit 3d1a1ab

Please sign in to comment.