diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dead180e3..466080946 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: # - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.19 + rev: v0.20.2 hooks: - id: validate-pyproject fail_fast: true @@ -61,7 +61,7 @@ repos: - id: rm-unneeded-f-str - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.7 + rev: v0.6.8 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/angrmanagement/plugins/memory_checker/memory_checker.py b/angrmanagement/plugins/memory_checker/memory_checker.py index a15c0ce3d..45b01f0c1 100644 --- a/angrmanagement/plugins/memory_checker/memory_checker.py +++ b/angrmanagement/plugins/memory_checker/memory_checker.py @@ -24,7 +24,7 @@ def __init__(self, workspace: Workspace) -> None: self.states.am_subscribe(self.install_state_plugin) def install_state_plugin(self, **kwargs) -> None: - if kwargs.get("src", None) != "new": + if kwargs.get("src") != "new": return state: SimState = kwargs.get("state") state.register_plugin("heap", SimHeapPTMalloc())