From f730193efec9ddac0095f406c1b3b2288eb75120 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:13:34 -0500 Subject: [PATCH] Bump flake8+black in precommit --- .pre-commit-config.yaml | 4 ++-- retro/testing/tools.py | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e237e08a..9c70eb991 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: detect-private-key - id: debug-statements - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 args: @@ -40,7 +40,7 @@ repos: - id: isort args: ["--profile", "black"] - repo: https://github.com/python/black - rev: 23.1.0 + rev: 23.11.0 hooks: - id: black - repo: https://github.com/asottile/add-trailing-comma diff --git a/retro/testing/tools.py b/retro/testing/tools.py index 02ef1fc2e..44e9a171d 100644 --- a/retro/testing/tools.py +++ b/retro/testing/tools.py @@ -143,11 +143,7 @@ def verify_scenario(game, inttype, scenario="scenario", raw=None, dataraw=None): warnings.append((file, f"missing reward in rewards[{i:d}]")) elif "variables" in r and "script" in r: warnings.append( - ( - file, - f"both variables and script present in rewards[{i:d}, - ]", - ), + (file, "both variables and script present in rewards[{i:d}]"), ) if "reward" in scen: warnings.append((file, "reward and rewards both present"))