Skip to content

Commit d50f98d

Browse files
committed
ruff linting
1 parent c5e2d88 commit d50f98d

9 files changed

Lines changed: 55 additions & 500 deletions

File tree

.assets/matrix rec.mp4

-14.1 MB
Binary file not shown.

.assets/matrix_snippet.gif

-1.19 MB
Binary file not shown.

.github/workflows/ruff.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Ruff
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
ruff:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v3
18+
19+
- name: Cache uv
20+
uses: actions/cache@v4
21+
with:
22+
path: ~/.cache/uv
23+
key: ${{ runner.os }}-uv
24+
25+
- name: Run Ruff and generate report
26+
run: |
27+
LOG_DIR="__ruff_logs__"
28+
LOG_FILE="$LOG_DIR/ruff-lint-log.txt"
29+
30+
mkdir -p $LOG_DIR
31+
32+
echo "Running Ruff checks..." > $LOG_FILE
33+
34+
echo "" >> $LOG_FILE
35+
echo "Lint results:" >> $LOG_FILE
36+
uv tool run ruff check . --output-format=github >> $LOG_FILE 2>&1 || true
37+
38+
echo "" >> $LOG_FILE
39+
echo "Suggested fixes (diff):" >> $LOG_FILE
40+
uv tool run ruff check . --fix --diff >> $LOG_FILE 2>&1 || true
41+
42+
echo "" >> $LOG_FILE
43+
44+
if grep -q ":" $LOG_FILE; then
45+
echo "Ruff found issues."
46+
else
47+
echo "All checks passed."
48+
fi
49+
50+
- name: Upload Ruff report
51+
if: always()
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: ruff-lint-log
55+
path: __ruff_logs__/ruff-lint-log.txt

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

render.py

Lines changed: 0 additions & 123 deletions
This file was deleted.

signal processing/clean_output.wav

-860 KB
Binary file not shown.

signal processing/signal-process.ipynb

Lines changed: 0 additions & 376 deletions
This file was deleted.

signal processing/train_horn.wav

-880 KB
Binary file not shown.
-3.36 MB
Binary file not shown.

0 commit comments

Comments
 (0)