Skip to content

Commit

Permalink
feat: fix ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 16, 2024
1 parent 48c2b89 commit fab3913
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dev=[
python_version = "3.9"

exclude = [
"tools/"
"tools/**.py"
]

# https://github.com/python/mypy/issues/2410
Expand Down
3 changes: 1 addition & 2 deletions src/forensicsim/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit fab3913

Please sign in to comment.