Skip to content

Commit 9219cf9

Browse files
committed
Migrate from Black to Ruff
1 parent 13f85b8 commit 9219cf9

File tree

370 files changed

+878
-1122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+878
-1122
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ updates:
66
interval: monthly
77
open-pull-requests-limit: 10
88
allow:
9-
- dependency-name: flake8
10-
- dependency-name: black
9+
- dependency-name: ruff

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- {name: Linux312, python: '3.12.3', os: ubuntu-latest}
21+
- {name: Linux313, python: '3.13.7', os: ubuntu-latest}
2222
steps:
2323
- name: Check out repository
2424
uses: actions/checkout@v2

README.md

Lines changed: 10 additions & 7 deletions

advent-of-code/solutions/2021/05_hydrothermal_venture/aoc202105.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ def points(line):
6363
case (x1, y1, x2, y2) if y1 == y2:
6464
return [(x, y1) for x in coords(x1, x2)]
6565
case (x1, y1, x2, y2):
66-
return [(x, y) for x, y in zip(coords(x1, x2), coords(y1, y2))]
66+
return [
67+
(x, y)
68+
for x, y in zip(coords(x1, x2), coords(y1, y2), strict=False)
69+
]
6770

6871

6972
def coords(start, stop):

arcade-platformer/arcade_platformer/11_title_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def on_update(self, delta_time: float) -> None:
7474

7575
# If the timer has run out, we toggle the instructions
7676
if self.display_timer < 0:
77-
7877
# Toggle whether to show the instructions
7978
self.show_instructions = not self.show_instructions
8079

arcade-platformer/arcade_platformer/12_instructions_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def on_update(self, delta_time: float) -> None:
7474

7575
# If the timer has run out, we toggle the instructions
7676
if self.display_timer < 0:
77-
7877
# Toggle whether to show the instructions
7978
self.show_instructions = not self.show_instructions
8079

arcade-platformer/arcade_platformer/13_pause_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def on_update(self, delta_time: float) -> None:
7474

7575
# If the timer has run out, we toggle the instructions
7676
if self.display_timer < 0:
77-
7877
# Toggle whether to show the instructions
7978
self.show_instructions = not self.show_instructions
8079

arcade-platformer/arcade_platformer/14_enemies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def on_update(self, delta_time: float) -> None:
116116

117117
# If the timer has run out, we toggle the instructions
118118
if self.display_timer < 0:
119-
120119
# Toggle whether to show the instructions
121120
self.show_instructions = not self.show_instructions
122121

arcade-platformer/arcade_platformer/15_moving_platforms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def on_update(self, delta_time: float) -> None:
116116

117117
# If the timer has run out, we toggle the instructions
118118
if self.display_timer < 0:
119-
120119
# Toggle whether to show the instructions
121120
self.show_instructions = not self.show_instructions
122121

arcade-platformer/arcade_platformer/arcade_platformer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def on_update(self, delta_time: float) -> None:
9191

9292
# If the timer has run out, we toggle the instructions
9393
if self.display_timer < 0:
94-
9594
# Toggle whether to show the instructions
9695
self.show_instructions = not self.show_instructions
9796

0 commit comments

Comments
 (0)