Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
plbrault committed Jun 2, 2024
1 parent 8fc85f9 commit 6275f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/game_objects/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ def sort_key(self):
return float('inf')
if self.is_blocked:
return (LAST_ALIVE_STARVATION_LEVEL + 1) * 100000
return int((LAST_ALIVE_STARVATION_LEVEL - self.starvation_level) * 100000
- (self.current_starvation_level_duration / self.time_between_starvation_levels) * 10000)
return int(
(LAST_ALIVE_STARVATION_LEVEL - self.starvation_level) * 100000
- (self.current_starvation_level_duration
/ self.time_between_starvation_levels) * 10000
)

@property
def is_in_motion(self):
Expand Down
1 change: 0 additions & 1 deletion src/tests/game_objects/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,4 +967,3 @@ def test_sort_key_different_time_between_starvation_levels(self, game_custom_con

assert process_1.sort_key == process_2.sort_key
assert process_1.sort_key < process_3.sort_key

0 comments on commit 6275f28

Please sign in to comment.