Skip to content

Commit 2cb5637

Browse files
authored
Remove geopandas stubs (#22)
1 parent ef586b4 commit 2cb5637

37 files changed

+138
-2027
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,22 @@ jobs:
7373
uv venv
7474
uv pip install -r requirements.txt
7575
- run: uv run python run.py mypy
76-
stubtest:
77-
name: Run stubtest on the the stubs
78-
runs-on: ubuntu-latest
79-
steps:
80-
- uses: actions/checkout@v4
81-
- name: Set up Python ${{ env.UV_PYTHON }}
82-
uses: actions/setup-python@v5
83-
with:
84-
python-version: ${{ env.UV_PYTHON }}
85-
- name: Install uv
86-
uses: astral-sh/setup-uv@v5
87-
- name: Install dependencies
88-
run: |
89-
uv venv
90-
uv pip install -r requirements.txt
91-
- run: uv run python run.py stubtest
76+
# stubtest:
77+
# name: Run stubtest on the the stubs
78+
# runs-on: ubuntu-latest
79+
# steps:
80+
# - uses: actions/checkout@v4
81+
# - name: Set up Python ${{ env.UV_PYTHON }}
82+
# uses: actions/setup-python@v5
83+
# with:
84+
# python-version: ${{ env.UV_PYTHON }}
85+
# - name: Install uv
86+
# uses: astral-sh/setup-uv@v5
87+
# - name: Install dependencies
88+
# run: |
89+
# uv venv
90+
# uv pip install -r requirements.txt
91+
# - run: uv run python run.py stubtest
9292
pyright:
9393
name: Run pyright on the tests and on the stubs
9494
runs-on: ubuntu-latest

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Notebook
33
"notebook.formatOnSave.enabled": true,
44
"notebook.codeActionsOnSave": {
5-
"source.organizeImports.ruff": "explicit",
5+
"notebook.source.organizeImports.ruff": "explicit",
66
},
77
// Python
88
"[python]": {

requirements.in

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Tools
22
# -----
3-
ruff>=0.8.0
3+
ruff>=0.9.2
44
pytest>=8.0
5-
rich-argparse>=1.5.2
6-
mypy>=1.14.0
7-
pyright>=1.1.391
5+
rich-argparse>=1.6.0
6+
mypy>=1.14.1
7+
pyright>=1.1.392
88

99
# Runtime dependencies
1010
# --------------------
11-
geopandas>=1.0.0
1211

1312
# Transient dependencies
1413
# ----------------------
15-
# geopandas
14+
# tests
15+
types-geopandas>=1.0.1.20250119
1616
types-shapely>=2.0.0.20241112
1717
pandas-stubs>=2.2.3.241009
1818
matplotlib>=3.8.0
@@ -26,3 +26,4 @@ types-netaddr>=1.2.0
2626
types-python-dateutil>=2.9.0
2727
# pandapower
2828
networkx>=3.2.1
29+
geopandas>=1.0.0

requirements.txt

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22
# uv pip compile requirements.in --output-file requirements.txt
33
branca==0.8.1
44
# via folium
5-
certifi==2024.12.14
5+
certifi==2025.4.26
66
# via
77
# pyogrio
88
# pyproj
99
# requests
1010
charset-normalizer==3.4.1
1111
# via requests
12-
contourpy==1.3.1
12+
contourpy==1.3.2
1313
# via matplotlib
1414
cycler==0.12.1
1515
# via matplotlib
1616
django-types==0.20.0
1717
# via -r requirements.in
1818
djangorestframework-types==0.9.0
1919
# via -r requirements.in
20-
folium==0.19.4
20+
folium==0.19.5
2121
# via -r requirements.in
22-
fonttools==4.55.3
22+
fonttools==4.57.0
2323
# via matplotlib
2424
geopandas==1.0.1
2525
# via -r requirements.in
2626
idna==3.10
2727
# via requests
28-
iniconfig==2.0.0
28+
iniconfig==2.1.0
2929
# via pytest
30-
jinja2==3.1.5
30+
jinja2==3.1.6
3131
# via
3232
# branca
3333
# folium
@@ -37,19 +37,19 @@ markdown-it-py==3.0.0
3737
# via rich
3838
markupsafe==3.0.2
3939
# via jinja2
40-
matplotlib==3.10.0
40+
matplotlib==3.10.1
4141
# via -r requirements.in
4242
mdurl==0.1.2
4343
# via markdown-it-py
44-
mypy==1.14.1
44+
mypy==1.15.0
4545
# via -r requirements.in
46-
mypy-extensions==1.0.0
46+
mypy-extensions==1.1.0
4747
# via mypy
4848
networkx==3.4.2
4949
# via -r requirements.in
5050
nodeenv==1.9.1
5151
# via pyright
52-
numpy==2.2.1
52+
numpy==2.2.5
5353
# via
5454
# contourpy
5555
# folium
@@ -59,72 +59,81 @@ numpy==2.2.1
5959
# pandas-stubs
6060
# pyogrio
6161
# shapely
62+
# types-geopandas
6263
# types-shapely
63-
packaging==24.2
64+
packaging==25.0
6465
# via
6566
# geopandas
6667
# matplotlib
6768
# pyogrio
6869
# pytest
6970
pandas==2.2.3
7071
# via geopandas
71-
pandas-stubs==2.2.3.241126
72-
# via -r requirements.in
73-
pillow==11.1.0
72+
pandas-stubs==2.2.3.250308
73+
# via
74+
# -r requirements.in
75+
# types-geopandas
76+
pillow==11.2.1
7477
# via matplotlib
7578
pluggy==1.5.0
7679
# via pytest
7780
pygments==2.19.1
7881
# via rich
7982
pyogrio==0.10.0
8083
# via geopandas
81-
pyparsing==3.2.1
84+
pyparsing==3.2.3
8285
# via matplotlib
83-
pyproj==3.7.0
84-
# via geopandas
85-
pyright==1.1.391
86+
pyproj==3.7.1
87+
# via
88+
# geopandas
89+
# types-geopandas
90+
pyright==1.1.400
8691
# via -r requirements.in
87-
pytest==8.3.4
92+
pytest==8.3.5
8893
# via -r requirements.in
8994
python-dateutil==2.9.0.post0
9095
# via
9196
# matplotlib
9297
# pandas
93-
pytz==2024.2
98+
pytz==2025.2
9499
# via pandas
95100
requests==2.32.3
96101
# via folium
97-
rich==13.9.4
102+
rich==14.0.0
98103
# via rich-argparse
99-
rich-argparse==1.6.0
104+
rich-argparse==1.7.0
100105
# via -r requirements.in
101-
rtree==1.3.0
106+
rtree==1.4.0
102107
# via -r requirements.in
103-
ruff==0.9.1
108+
ruff==0.11.7
104109
# via -r requirements.in
105-
shapely==2.0.6
110+
shapely==2.1.0
106111
# via geopandas
107112
six==1.17.0
108113
# via python-dateutil
114+
types-geopandas==1.0.1.20250404
115+
# via -r requirements.in
109116
types-netaddr==1.3.0.20240530
110117
# via -r requirements.in
111-
types-psycopg2==2.9.21.20241019
118+
types-psycopg2==2.9.21.20250318
112119
# via
113120
# -r requirements.in
114121
# django-types
115122
types-python-dateutil==2.9.0.20241206
116123
# via -r requirements.in
117-
types-pytz==2024.2.0.20241221
124+
types-pytz==2025.2.0.20250326
118125
# via pandas-stubs
119-
types-shapely==2.0.0.20241221
120-
# via -r requirements.in
121-
typing-extensions==4.12.2
126+
types-shapely==2.0.0.20250404
127+
# via
128+
# -r requirements.in
129+
# types-geopandas
130+
typing-extensions==4.13.2
122131
# via
123132
# mypy
124133
# pyright
125-
tzdata==2024.2
134+
tzdata==2025.2
126135
# via pandas
127-
urllib3==2.3.0
136+
urllib3==2.4.0
128137
# via requests
129-
xyzservices==2024.9.0
138+
xyzservices==2025.4.0
130139
# via folium

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ruff-format": ["tests", "stubs"],
1616
"mypy": ["tests", "stubs"],
1717
"pyright": ["tests", "stubs"],
18-
"stubtest": ["--allowlist=stubtest_allowlist.txt", "geopandas"],
18+
# "stubtest": ["--allowlist=stubtest_allowlist.txt"],
1919
"pytest": [],
2020
}
2121

stubs/geopandas-stubs/.ruff.toml

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

stubs/geopandas-stubs/__init__.pyi

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

stubs/geopandas-stubs/_config.pyi

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

stubs/geopandas-stubs/_decorator.pyi

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

stubs/geopandas-stubs/_exports.pyi

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

0 commit comments

Comments
 (0)