Skip to content

Commit e2faf04

Browse files
committed
Fixed small issue with mypy config not loaded
1 parent eadc564 commit e2faf04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
python -m pip install --upgrade pip
2626
pip install ruff
2727
pip install mypy
28+
pip install .
2829
- name: Check style with Ruff
2930
run: |
3031
cd ./backend
3132
ruff check --output-format=github .
3233
- name: Check type hints with mypy
3334
run: |
3435
cd ./backend
35-
pip install .
36-
mypy --show-error-codes beets_flask
36+
mypy --show-error-codes --config-file ./pyproject.toml ./beets_flask
3737
- name: Test with pytest
3838
run: |
3939
cd ./backend

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
[project.optional-dependencies]
3939
# Can be install with e.g. `pip install -e .[dev]`
4040
test = ["pytest>=8.2.2", "pytest-asyncio>=0.23.8", "pytest-cov>=5.0.0"]
41-
dev = ["ruff>=0.6.5", "pre-commit>=3.8.0", "types-cachetools"]
41+
dev = ["ruff>=0.6.5", "pre-commit>=3.8.0", "types-cachetools", "mypy"]
4242
all = ["beets_flask[dev,test]"]
4343

4444
[build-system]

0 commit comments

Comments
 (0)