Skip to content

Commit

Permalink
add ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Feb 7, 2024
1 parent 4b41926 commit 7b6b770
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/dodal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def _find_next_run_number_from_files(file_names: List[str]) -> int:
f"Identified nexus file {file_name} with unexpected format"
)
return max(valid_numbers) + 1 if valid_numbers else 1



def get_run_number(directory: str) -> int:
Expand Down
2 changes: 1 addition & 1 deletion tests/devices/unit_tests/test_aperture_scatterguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_aperture_scatterguard_rejects_unknown_position(
pos = list(aperture_positions.MEDIUM.location)
# change 1 dimension more than tolerance
pos[i] += 0.01
position_to_reject:ApertureFiveDimensionalLocation = tuple(pos)
position_to_reject: ApertureFiveDimensionalLocation = tuple(pos)

with pytest.raises(InvalidApertureMove):
aperture_in_medium_pos.set(position_to_reject)
Expand Down

0 comments on commit 7b6b770

Please sign in to comment.