Skip to content

Commit 70f8093

Browse files
committed
Update pre-commit and lint
1 parent 051f92c commit 70f8093

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
name: Hadolint (Dockerfile checker)
3232
# Actual Python Linters
3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: v0.11.9
34+
rev: v0.11.11
3535
hooks:
3636
- id: ruff-format
3737
- id: ruff
@@ -45,6 +45,6 @@ repos:
4545
# Uncomment below if mypy requires extra type stub packages
4646
# additional_dependencies: [types-PyYAML==6.0.12.2]
4747
- repo: https://github.com/igorshubovych/markdownlint-cli
48-
rev: v0.44.0
48+
rev: v0.45.0
4949
hooks:
5050
- id: markdownlint-fix

tests/test_set_mission.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def test_load_mission(base_config: Path, mission_dir: Path):
2222
target = mission_dir / "current-config.json"
2323
assert target.exists(), "Should have created latest config symlink"
2424
assert target.is_symlink(), "Target config should be a symlink"
25-
assert target.readlink() == uploaded_conf_path.relative_to(
26-
mission_dir
27-
), "Target should point to uploaded file"
25+
assert target.readlink() == uploaded_conf_path.relative_to(mission_dir), (
26+
"Target should point to uploaded file"
27+
)
2828

2929

3030
def test_load_mission_twice(base_config: Path, mission_dir: Path):
@@ -48,6 +48,6 @@ def test_load_mission_twice(base_config: Path, mission_dir: Path):
4848
target = mission_dir / "current-config.json"
4949
assert target.exists(), "Should have created latest config symlink"
5050
assert target.is_symlink(), "Target config should be a symlink"
51-
assert target.readlink() == uploaded_conf_path2.relative_to(
52-
mission_dir
53-
), "Target should point to latest mission set"
51+
assert target.readlink() == uploaded_conf_path2.relative_to(mission_dir), (
52+
"Target should point to latest mission set"
53+
)

tests/test_upload_mission.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def test_upload_activate_mission(base_config: Path, mission_dir: Path):
6767
)
6868
# Then the server config file is set as the active mission
6969
target = mission_dir / "current-config.json"
70-
assert target.readlink() == out_path.relative_to(
71-
mission_dir
72-
), "Target should point to uploaded file"
70+
assert target.readlink() == out_path.relative_to(mission_dir), (
71+
"Target should point to uploaded file"
72+
)
7373

7474

7575
def test_upload_edits_files_without_modlist(base_config: Path, mission_dir: Path):

0 commit comments

Comments
 (0)