Skip to content

Commit 717c517

Browse files
authored
Clean up internals, fix bugs, add tests + CI (#15)
* Remove internal code: training, dataset, benchmarks, root-level scripts * [Build] Add load_cnn_model to predictor.py, fix weights_only=True, break circular import * [Build] Fix batch_infer.py: update import, fix indent, remove pass, guard cuda, organize imports * [Build] Fix hcqm.py: change default device to None, resolve with get_device() * [Build] Deduplicate utils.py: split_audio as core, load_and_split_audio as wrapper * [Build] Add __init__.py files, fix re-export, update pyproject.toml * Fix import ordering across all source files * [Build] Add tests and CI workflow
1 parent a7e2791 commit 717c517

27 files changed

Lines changed: 280 additions & 1213 deletions

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install dependencies
20+
run: pip install -e ".[dev]" soundfile
21+
22+
- name: Lint
23+
run: ruff check src/
24+
25+
- name: Test
26+
run: pytest

batch_librosa.py

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

benchmark-tf.py

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

benchmark.py

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

0 commit comments

Comments
 (0)