Skip to content

Commit ea01fe3

Browse files
committed
Added pre-commit hooks for linting and type checking
1 parent b94bdfc commit ea01fe3

File tree

3 files changed

+99
-2
lines changed

3 files changed

+99
-2
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/flake8
3+
rev: 7.1.1
4+
hooks:
5+
- id: flake8
6+
- repo: https://github.com/pre-commit/mirrors-mypy
7+
rev: 'v1.13.0'
8+
hooks:
9+
- id: mypy

poetry.lock

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

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ sounddevice = "^0.5.1"
5858
[tool.poetry.extras]
5959
test = ["pytest", "pytest-cov"]
6060

61+
[tool.poetry.group.dev.dependencies]
62+
pre-commit = "^4.0.1"
63+
6164
[build-system]
6265
requires = ["poetry-core"]
6366
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)