Skip to content

Commit 59ed2b7

Browse files
[pre-commit.ci] pre-commit autoupdate (#754)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1) * Fix Ruff lint. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hameer Abbasi <[email protected]>
1 parent 7d72ded commit 59ed2b7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
exclude: ".ipynb"
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.5.7
21+
rev: v0.6.1
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

docs/gen_logo.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import xml.etree.ElementTree as et
1+
import xml.etree.ElementTree as ET
22

33
import numpy as np
44

@@ -34,7 +34,7 @@ def fill(rs):
3434
bg_kwargs = {**kwargs, "width": f"{5*s}", "height": f"{5*s}", "style": "fill:white;"}
3535

3636

37-
root = et.Element(
37+
root = ET.Element(
3838
"svg",
3939
**{
4040
"width": f"{s * 10 + 2 * offset_x}",
@@ -52,14 +52,14 @@ def fill(rs):
5252

5353

5454
# face 1 (left, orange)
55-
et.SubElement(
55+
ET.SubElement(
5656
root,
5757
"rect",
5858
transform=transform(1, b, 0, 1, 5 * s + offset_x, offset_y),
5959
**bg_kwargs,
6060
)
6161
for i, j in np.ndindex(5, 5):
62-
et.SubElement(
62+
ET.SubElement(
6363
root,
6464
"rect",
6565
style=f"{colors['orange']};{fill(rs)};",
@@ -68,14 +68,14 @@ def fill(rs):
6868
)
6969

7070
# face 2 (top, orange)
71-
et.SubElement(
71+
ET.SubElement(
7272
root,
7373
"rect",
7474
transform=transform(1, b, -1, b, 5 * s + offset_x, 5 * s + offset_y),
7575
**bg_kwargs,
7676
)
7777
for i, j in np.ndindex(5, 5):
78-
et.SubElement(
78+
ET.SubElement(
7979
root,
8080
"rect",
8181
style=f"{colors['orange']};{fill(rs)};",
@@ -92,14 +92,14 @@ def fill(rs):
9292

9393
# face 3 (left, blue)
9494
for y2 in (5 + b * 5, 10 + b * 5):
95-
et.SubElement(
95+
ET.SubElement(
9696
root,
9797
"rect",
9898
transform=transform(1, b, 0, 1, offset_x, y2 * s + offset_y),
9999
**bg_kwargs,
100100
)
101101
for i, j in np.ndindex(5, 5):
102-
et.SubElement(
102+
ET.SubElement(
103103
root,
104104
"rect",
105105
style=f"{colors['blue']};{fill(rs)};",
@@ -108,19 +108,19 @@ def fill(rs):
108108
)
109109

110110
# face 4 (right, grey)
111-
et.SubElement(
111+
ET.SubElement(
112112
root,
113113
"rect",
114114
transform=transform(1, -b, 0, 1, 5 * s + offset_x, (10 * b + 5) * s + offset_y),
115115
**bg_kwargs,
116116
)
117117
for i, j in np.ndindex(5, 5):
118-
et.SubElement(
118+
ET.SubElement(
119119
root,
120120
"rect",
121121
style=f"{colors['grey']};{fill(rs)};",
122122
transform=transform(1, -b, 0, 1, (i + 5) * s + offset_x, ((10 - i) * b + j + 5) * s + offset_y),
123123
**kwargs,
124124
)
125125

126-
et.ElementTree(root).write("logo.svg", encoding="UTF-8")
126+
ET.ElementTree(root).write("logo.svg", encoding="UTF-8")

0 commit comments

Comments
 (0)