Skip to content
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: python -m pip install --group tests

- name: Run pyright tests
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2
with:
pylance-version: latest-prerelease
python-version: ${{ matrix.python-version }}
Expand All @@ -59,6 +59,6 @@ jobs:
uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0

- name: Run Ruff Linter
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
uses: astral-sh/ruff-action@278981a28ce3188b1e39527901f38254bf3aac89 # v4.1.0
- name: Run Ruff Formatter
run: ruff format --check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ MigrationBackup/

# Lock files (like uv.lock)
*.lock
.python-version

# Build files from utils
.eggs
Expand Down
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// See https://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-python.black-formatter",
"ms-python.isort",
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down
15 changes: 11 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tests = [

# The libraries we're stubbing.
# Needed for stubtest and downloads their dependencies to get known import symbols
"scikit-image",
"scikit-image <0.26.0", # TODO: skimage 0.26 doesn't support Python 3.10, which we do
"scikit-learn <1.7.0", # TODO: Update stubs for sklearn
"sympy",
"vispy",
Expand Down Expand Up @@ -168,15 +168,14 @@ disable_error_code = [
# Incompatible overrides are out of our stubs' control
# as they are inherited from the implementation.
"override",
# TODO
"assignment", # 688 errors in 155 files
]

[[tool.mypy.overrides]]
module = ["sympy.*"]
disable_error_code = [
# TODO
"misc", # 185
"assignment", # 611 errors in 134 files
]

[[tool.mypy.overrides]]
Expand All @@ -185,11 +184,12 @@ module = ["matplotlib.*"]
disable_error_code = ["assignment", "misc", "untyped-decorator"]

[[tool.mypy.overrides]]
module = ["sklearn.*"]
module = ["sklearn.*", "preprocessing_tests"]
disable_error_code = [
# TODO
"misc", # 25
"overload-overlap", # 14
"assignment", # 52
]

[[tool.mypy.overrides]]
Expand All @@ -198,3 +198,10 @@ disable_error_code = [
# TODO: Too many untyped decorators still left
"untyped-decorator", # 52
]

[[tool.mypy.overrides]]
module = ["vispy.*"]
disable_error_code = [
# TODO
"assignment", # 25
]
Loading