Skip to content

Commit 0ee87d5

Browse files
committed
Initial release v0.1.0
0 parents  commit 0ee87d5

33 files changed

Lines changed: 4396 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Test (Python ${{ matrix.python-version }})
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e ".[dev]"
29+
30+
- name: Run tests
31+
run: pytest --cov=voicetag --cov-report=xml -v
32+
33+
- name: Upload coverage
34+
if: matrix.python-version == '3.12'
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: coverage-report
38+
path: coverage.xml
39+
40+
lint:
41+
name: Lint
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: "3.12"
51+
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install -e ".[dev]"
56+
57+
- name: Black
58+
run: black --check .
59+
60+
- name: Ruff
61+
run: ruff check .
62+
63+
- name: Mypy
64+
run: mypy voicetag/
65+
66+
build:
67+
name: Build
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- uses: actions/checkout@v4
72+
73+
- name: Set up Python
74+
uses: actions/setup-python@v5
75+
with:
76+
python-version: "3.12"
77+
78+
- name: Install build tools
79+
run: |
80+
python -m pip install --upgrade pip
81+
pip install build
82+
83+
- name: Build package
84+
run: python -m build

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Claude Code
2+
.claude/
3+
4+
# Python
5+
__pycache__/
6+
*.py[cod]
7+
*$py.class
8+
*.so
9+
*.egg-info/
10+
*.egg
11+
dist/
12+
build/
13+
.eggs/
14+
15+
# Virtual environments
16+
.venv/
17+
venv/
18+
env/
19+
20+
# Testing
21+
.pytest_cache/
22+
.coverage
23+
htmlcov/
24+
coverage.xml
25+
26+
# Type checking
27+
.mypy_cache/
28+
29+
# Ruff
30+
.ruff_cache/
31+
32+
# IDE
33+
.vscode/
34+
.idea/
35+
*.swp
36+
*.swo
37+
*~
38+
39+
# OS
40+
.DS_Store
41+
Thumbs.db
42+
43+
# voicetag runtime
44+
voicetag_profiles.json
45+
*.wav
46+
*.mp3
47+
*.flac
48+
*.ogg
49+
*.m4a
50+
51+
# Docs
52+
site/
53+
54+
# Environment
55+
.env
56+
.env.local

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: '24.3.0'
4+
hooks:
5+
- id: black
6+
- repo: https://github.com/astral-sh/ruff-pre-commit
7+
rev: v0.3.4
8+
hooks:
9+
- id: ruff
10+
args: [--fix]
11+
- repo: https://github.com/pre-commit/mirrors-mypy
12+
rev: v1.9.0
13+
hooks:
14+
- id: mypy
15+
additional_dependencies: [pydantic>=2.0]

0 commit comments

Comments
 (0)