diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42f2174..271e0a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: - name: Install non-Python build dependencies (Ubuntu) if: ${{ matrix.os == 'ubuntu-24.04' }} run: sudo apt-get -y install gettext + - name: Install pyright + run: npm install -g pyright - name: Install Python dependencies run: pip install tox build setuptools chambercourt - name: Build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70eda6e..30c7bfe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,9 @@ jobs: with: python-version: "3.12" - name: Install non-Python build dependencies - run: sudo apt-get -y install gettext + run: | + sudo apt-get -y install gettext + npm install -g pyright - name: Install Python dependencies run: pip install tox build chambercourt - name: Build @@ -59,6 +61,8 @@ jobs: Add-Content $env:GITHUB_PATH "C:\nuget\Gettext.Tools.0.22.4\tools\bin"; nuget install Magick.NET-Q16-AnyCPU -Version 14.3.0 -OutputDirectory c:\nuget; Add-Content $env:GITHUB_PATH "C:\nuget\Magic.NET-Q16-AnyCPU.14.3.0\tools\bin" + - name: Install pyright + run: npm install -g pyright - name: Install Python dependencies run: pip install tox build setuptools chambercourt - name: Build diff --git a/pyproject.toml b/pyproject.toml index 5fd5248..3cfacde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,10 +30,6 @@ packages = ["wincoll"] [tool.setuptools.package-data] wincoll = ["**/*.png", "**/*.wav", "**/*.tmx", "**/*.tsx", "**/*.ttf", "**/*.mo"] -[tool.mypy] -exclude = ['^dist', '^build'] -strict = true - [tool.ruff.lint] select = ["D", "E", "F", "I", "UP"] ignore = ["D1", "D401", "E501"] diff --git a/tox.ini b/tox.ini index bc05b82..841ae3e 100644 --- a/tox.ini +++ b/tox.ini @@ -2,11 +2,12 @@ envlist = py312,py313 [testenv] +allowlist_externals = + pyright deps = - mypy ruff setuptools >= 62.3.0 types-setuptools commands = - mypy . + pyright wincoll ruff check wincoll