diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 999d109..55c1590 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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: | diff --git a/youtube_tui/pyproject.toml b/youtube_tui/pyproject.toml index 6873cb3..db00062 100644 --- a/youtube_tui/pyproject.toml +++ b/youtube_tui/pyproject.toml @@ -48,4 +48,12 @@ youtube_tui = ["py.typed"] [tool.ruff] # Skip whitespace checks in CSS strings (Textual styling) # These are intentional blank lines in CSS -lint.ignore = ["W293", "W291", "E402"] \ No newline at end of file +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" \ No newline at end of file