diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d37b384..cc9b8f1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,6 +41,6 @@ jobs: python tools/dump_localstorage.py --help python tools/dump_sessionstorage.py --help - name: Calculate diff 👽 - run: | + run: | git diff --no-index --word-diff .\forensicsim-data\expected-result\jane_doe_v_1_4_00_11161.json jane_doe_v_1_4_00_11161.json git diff --no-index --word-diff .\forensicsim-data\expected-result\john_doe_v_1_4_00_11161.json john_doe_v_1_4_00_11161.json diff --git a/pyproject.toml b/pyproject.toml index 802acd5..ef39a50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ dev=[ python_version = "3.9" exclude = [ - "tools/" + "tools/**.py" ] # https://github.com/python/mypy/issues/2410 diff --git a/src/forensicsim/backend.py b/src/forensicsim/backend.py index 7c2b6b0..002dfd3 100644 --- a/src/forensicsim/backend.py +++ b/src/forensicsim/backend.py @@ -284,5 +284,4 @@ def write_results_to_json(data: object, outputpath: Path) -> None: def parse_json() -> Any: # read data from a file. This is only for testing purpose. with Path("teams.json").open() as json_file: - data = json.load(json_file) - return data + return json.load(json_file)