Skip to content

Commit 081d8a3

Browse files
committed
set up ruff
1 parent a410511 commit 081d8a3

File tree

5 files changed

+58
-1
lines changed

5 files changed

+58
-1
lines changed

β€Ž.github/workflows/lint.ymlβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Ruff
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: astral-sh/ruff-action@v3

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ wheels/
1212
*.wav
1313

1414
# not using this
15-
requirements.txt
15+
requirements.txt
16+
requirements*.txt
1617
.DS_Store

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ https://github.com/user-attachments/assets/c1a1f4d8-dc97-40a3-8e49-0b31021e100b
4848
- Press the `Control` key once to stop.
4949
- The transcribed text will be instantly pasted to your active screen.
5050

51+
## πŸ‘¨πŸ»β€πŸ’» Dev
52+
53+
For linting and formatting -
54+
55+
```sh
56+
uv run ruff check
57+
uv run ruff format
58+
```
59+
5160
## πŸ› οΈ Common Issues
5261

5362
### πŸ“‹ Transcribed text isn't pasting

β€Žpyproject.tomlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ dependencies = [
1212
"sounddevice>=0.5.2",
1313
"soundfile>=0.13.1",
1414
]
15+
16+
[dependency-groups]
17+
dev = [
18+
"ruff>=0.13.0",
19+
]

β€Žuv.lockβ€Ž

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)