fix CI: add textual dep, fix docker socket mount, add mypy config

This commit is contained in:
Jarian Cottingham 2026-07-04 18:35:59 +00:00
parent e80473ac8d
commit 95554d5b6c
2 changed files with 11 additions and 3 deletions

View File

@ -28,7 +28,7 @@ jobs:
run: ruff check .
- name: Run mypy
run: mypy youtube_tui/
run: mypy youtube_tui/ --config-file youtube_tui/pyproject.toml
test:
runs-on: ubuntu-latest
@ -46,6 +46,7 @@ jobs:
python3 -m pip install --upgrade pip
pip3 install -e ".[dev]"
pip3 install -r requirements-api.txt
pip3 install textual
- name: Run pytest
run: python3 -m pytest tests/ web/server/tests/ -v --tb=short
@ -54,7 +55,6 @@ jobs:
runs-on: ubuntu-latest
container:
image: gitea-job-image
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Clone repo
run: |

View File

@ -49,3 +49,11 @@ youtube_tui = ["py.typed"]
# Skip whitespace checks in CSS strings (Textual styling)
# These are intentional blank lines in CSS
lint.ignore = ["W293", "W291", "E402"]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_ignores = false
disallow_untyped_defs = false
check_untyped_defs = false
follow_imports = "skip"