Skip to content

Commit 69aba92

Browse files
committed
Replace stubs with types-idlelib
1 parent 5acbed8 commit 69aba92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+216
-3720
lines changed

check.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -ex
44

55
ON_GITHUB_CI=true
66
EXIT_STATUS=0
7-
PROJECT='idlemypyextension'
87

98
# If not running on Github's CI, discard the summaries
109
if [ -z "${GITHUB_STEP_SUMMARY+x}" ]; then
@@ -94,7 +93,7 @@ Problems were found by static analysis (listed above).
9493
To fix formatting and see remaining errors, run
9594
9695
uv sync --extra tools
97-
ruff check src/$PROJECT
96+
ruff check src
9897
mypy
9998
./check.sh
10099

ci.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ else
7575
INSTALLDIR=$(python -c "import os, $PROJECT; print(os.path.dirname($PROJECT.__file__))")
7676
cp ../pyproject.toml "$INSTALLDIR"
7777

78-
# get mypy tests a nice cache
79-
MYPYPATH=".." mypy --config-file= --cache-dir=./.mypy_cache -c "import $PROJECT" >/dev/null 2>/dev/null || true
80-
8178
echo "::endgroup::"
8279
echo "::group:: Run Tests"
8380
if coverage run --rcfile=../pyproject.toml -m pytest -ra --junitxml=../test-results.xml ../tests --verbose --durations=10 $flags; then

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ tools = [
5555
"codespell>=2.3.0",
5656
"pre-commit>=4.2.0",
5757
"attrs>=25.3.0",
58+
"types-idlelib>=0.0.0",
5859
]
5960

6061
[project.urls]
@@ -72,7 +73,6 @@ package = true
7273

7374
[tool.mypy]
7475
files = ["src/idlemypyextension/", "tests"]
75-
mypy_path = "stubs"
7676
enable_error_code = [
7777
"truthy-bool",
7878
"mutable-override",

stubs/idlelib/__init__.pyi

Lines changed: 0 additions & 1 deletion
This file was deleted.

stubs/idlelib/autocomplete.pyi

Lines changed: 0 additions & 49 deletions
This file was deleted.

stubs/idlelib/autocomplete_w.pyi

Lines changed: 0 additions & 72 deletions
This file was deleted.

stubs/idlelib/autoexpand.pyi

Lines changed: 0 additions & 14 deletions
This file was deleted.

stubs/idlelib/browser.pyi

Lines changed: 0 additions & 63 deletions
This file was deleted.

stubs/idlelib/calltip.pyi

Lines changed: 0 additions & 23 deletions
This file was deleted.

stubs/idlelib/calltip_w.pyi

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)