Skip to content

Commit 957e4b7

Browse files
committed
Run the latest version of Black.
1 parent ebbac13 commit 957e4b7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/samples_libtcodpy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,8 @@ def render_py(first, key, mouse):
14221422
) + libtcod.noise_get_fbm(noise2d, [1 - u / float(RES_U), tex_v], 32.0)
14231423
if use_numpy:
14241424
# squared distance from center, clipped to sensible minimum and maximum values
1425-
sqr_dist = xc ** 2 + yc ** 2
1426-
sqr_dist = sqr_dist.clip(1.0 / RES_V, RES_V ** 2)
1425+
sqr_dist = xc**2 + yc**2
1426+
sqr_dist = sqr_dist.clip(1.0 / RES_V, RES_V**2)
14271427

14281428
# one coordinate into the texture, represents depth in the tunnel
14291429
v = TEX_STRETCH * float(RES_V) / sqr_dist + frac_t
@@ -1444,8 +1444,8 @@ def render_py(first, key, mouse):
14441444
for y in range(-HALF_H, HALF_H):
14451445
for x in range(-HALF_W, HALF_W):
14461446
# squared distance from center, clipped to sensible minimum and maximum values
1447-
sqr_dist = x ** 2 + y ** 2
1448-
sqr_dist = min(max(sqr_dist, 1.0 / RES_V), RES_V ** 2)
1447+
sqr_dist = x**2 + y**2
1448+
sqr_dist = min(max(sqr_dist, 1.0 / RES_V), RES_V**2)
14491449

14501450
# one coordinate into the texture, represents depth in the tunnel
14511451
v = TEX_STRETCH * float(RES_V) / sqr_dist + frac_t

examples/samples_tcod.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def on_draw(self) -> None:
608608
x = x.astype(np.float32) - torch_x
609609
y = y.astype(np.float32) - torch_y
610610

611-
distance_squared = x ** 2 + y ** 2 # 2D squared distance array.
611+
distance_squared = x**2 + y**2 # 2D squared distance array.
612612

613613
# Get the currently visible cells.
614614
visible = (distance_squared < SQUARED_TORCH_RADIUS) & fov
@@ -1299,8 +1299,8 @@ def on_draw(self) -> None:
12991299

13001300
# squared distance from center,
13011301
# clipped to sensible minimum and maximum values
1302-
sqr_dist = xc ** 2 + yc ** 2
1303-
sqr_dist = sqr_dist.clip(1.0 / RES_V, RES_V ** 2)
1302+
sqr_dist = xc**2 + yc**2
1303+
sqr_dist = sqr_dist.clip(1.0 / RES_V, RES_V**2)
13041304

13051305
# one coordinate into the texture, represents depth in the tunnel
13061306
vv = TEX_STRETCH * float(RES_V) / sqr_dist + self.frac_t

scripts/get_release_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
TAG_BANNER = r"## \[[\w.]*\] - \d+-\d+-\d+\n"
99

10-
RE_BODY = re.compile(fr".*?{TAG_BANNER}(.*?){TAG_BANNER}", re.DOTALL)
10+
RE_BODY = re.compile(rf".*?{TAG_BANNER}(.*?){TAG_BANNER}", re.DOTALL)
1111

1212

1313
def main() -> None:

0 commit comments

Comments
 (0)