Skip to content

Commit 7110473

Browse files
committed
Merge remote-tracking branch 'origin/main' into wrap
2 parents 16adbe4 + 5aa37e1 commit 7110473

File tree

12 files changed

+8
-4
lines changed

12 files changed

+8
-4
lines changed

.pre-commit-config.yaml

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

55
repos:
66
- repo: https://github.com/python/black
7-
rev: 20.8b1
7+
rev: 22.3.0
88
hooks:
99
- id: black
1010
- repo: https://github.com/fsfe/reuse-tool

.readthedocs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
# Required
99
version: 2
1010

11+
build:
12+
os: ubuntu-20.04
13+
tools:
14+
python: "3"
15+
1116
python:
12-
version: "3.x"
1317
install:
1418
- requirements: docs/requirements.txt
1519
- requirements: requirements.txt

adafruit_pioasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
9898
if sideset_count == 0:
9999
raise RuntimeError("No side_set count set")
100100
sideset_value = int(instruction[-1])
101-
if sideset_value >= 2 ** sideset_count:
101+
if sideset_value >= 2**sideset_count:
102102
raise RuntimeError("Sideset value too large")
103103
delay |= sideset_value << (5 - sideset_count - sideset_enable)
104104
delay |= sideset_enable << 4

examples/pioasm_i2sout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# signed 16 bit
2020
s16 = array.array("h", [0] * length)
2121
for i in range(length):
22-
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2 ** 15))
22+
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2**15))
2323
print(s16[i])
2424

2525
program = """
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)