Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cfg] Upgrade pycodestyle to 2.12.0 #4264

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading