diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 9201416..6560136 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -39,7 +39,11 @@ jobs: run: pip install -v "./${{ matrix.crate }}[test]" - name: Python Test - run: pytest ./${{ matrix.crate }} + run: pytest + working-directory: ./${{ matrix.crate }} - name: Type check - run: pyright ./${{ matrix.crate }} + run: | + pyright + ! pyright invalids/ + working-directory: ./${{ matrix.crate }} diff --git a/pyo3-stub-gen-testing-mixed/pyproject.toml b/pyo3-stub-gen-testing-mixed/pyproject.toml index 5138e69..34dc880 100644 --- a/pyo3-stub-gen-testing-mixed/pyproject.toml +++ b/pyo3-stub-gen-testing-mixed/pyproject.toml @@ -13,7 +13,3 @@ test = ["pytest", "pyright"] python-source = "python" module-name = "pyo3_stub_gen_testing_mixed.my_rust_pkg" features = ["pyo3/extension-module"] - -[tool.pyright] -# This is a test directory to confirm that pyright raises error -exclude = ["invalids"] diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 0000000..0070f9c --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,7 @@ +{ + "include": [ + "pyo3-stub-gen-testing-mixed/python", + "pyo3-stub-gen-testing-mixed/tests", + "pyo3-stub-gen-testing-pure/tests" + ] +}