Skip to content

Commit 71e4ea1

Browse files
MNT: move static project metadata to pyproject.toml, drop support for CPython 3.9 (#1813)
* MNT: move static project metadata to pyproject.toml, drop support for CPython 3.9 * TST: add an oldestdeps job * STY: apply formatter
1 parent 26a7336 commit 71e4ea1

19 files changed

+130
-123
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,21 @@ jobs:
7272
env_vars: OS,PYTHON
7373
name: codecov-umbrella
7474
fail_ci_if_error: false
75+
76+
77+
oldestdeps:
78+
name: Check oldest dependencies
79+
runs-on: ubuntu-latest
80+
81+
steps:
82+
- uses: actions/checkout@v5
83+
- uses: astral-sh/setup-uv@v7
84+
with:
85+
python-version: '3.10.0'
86+
prune-cache: false
87+
88+
- name: Install PyART
89+
run: uv sync --group test --resolution=lowest-direct
90+
91+
- name: Run Tests
92+
run: uv run --no-sync python -m pytest -v

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
hooks:
1616
- id: pyupgrade
1717
args:
18-
- '--py38-plus'
18+
- '--py310-plus'
1919

2020
- repo: https://github.com/psf/black
2121
rev: 23.3.0

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ include *.rst
22
recursive-include doc *
33
recursive-include examples *.py *.txt
44
recursive-include pyart *.c *.h *.pyx *.pxd
5-
include requirements.txt
65
include README.rst
7-
include LICENSE.txt
86
include INSTALL.rst
97
include pyart/testing/registry.txt
108
include pyart/__check_build/README

pyart/aux_io/d3r_gcpex_nc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def read_d3r_gcpex_nc(
4040
exclude_fields=None,
4141
include_fields=None,
4242
read_altitude_from_nc=False,
43-
**kwargs
43+
**kwargs,
4444
):
4545
"""
4646
Read a D3R GCPEX netCDF file.

pyart/aux_io/kazr_spectra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read_kazr_spectra(
3030
file_field_names=False,
3131
exclude_fields=None,
3232
include_fields=None,
33-
**kwargs
33+
**kwargs,
3434
):
3535
"""
3636
Read a ARM KAZR spectra netCDF file.

pyart/aux_io/noxp_iphex_nc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read_noxp_iphex_nc(
3434
file_field_names=False,
3535
exclude_fields=None,
3636
include_fields=None,
37-
**kwargs
37+
**kwargs,
3838
):
3939
"""
4040
Read a NOXP IPHEX netCDF file.

pyart/aux_io/rainbow_wrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def read_rainbow_wrl(
6868
file_field_names=False,
6969
exclude_fields=None,
7070
include_fields=None,
71-
**kwargs
71+
**kwargs,
7272
):
7373
"""
7474
Read a RAINBOW file.

pyart/correct/dealias.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def dealias_fourdd(
1919
debug=False,
2020
max_shear=0.05,
2121
sign=1,
22-
**kwargs
22+
**kwargs,
2323
):
2424
"""
2525
**Deprecated in Py-ART 2.0. Please use the region-based dealiaser.

pyart/graph/gridmapdisplay_basemap.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def plot_basemap(
7373
min_lat=40,
7474
max_lat=44,
7575
ax=None,
76-
**kwargs
76+
**kwargs,
7777
):
7878
"""
7979
Plot a basemap.
@@ -113,7 +113,7 @@ def plot_basemap(
113113
min_lat,
114114
max_lat,
115115
ax,
116-
**kwargs
116+
**kwargs,
117117
)
118118

119119
# parse the parameters
@@ -148,7 +148,7 @@ def plot_grid(
148148
fig=None,
149149
ticks=None,
150150
ticklabs=None,
151-
**kwargs
151+
**kwargs,
152152
):
153153
"""
154154
Plot the grid onto the current basemap.
@@ -240,7 +240,7 @@ def plot_grid(
240240
cmap=cmap,
241241
norm=norm,
242242
latlon=True,
243-
**kwargs
243+
**kwargs,
244244
)
245245
self.mappables.append(pm)
246246
self.fields.append(field)
@@ -344,7 +344,7 @@ def plot_latitudinal_level(
344344
fig=None,
345345
ticks=None,
346346
ticklabs=None,
347-
**kwargs
347+
**kwargs,
348348
):
349349
"""
350350
Plot a slice along a given latitude.
@@ -502,7 +502,7 @@ def plot_longitudinal_level(
502502
fig=None,
503503
ticks=None,
504504
ticklabs=None,
505-
**kwargs
505+
**kwargs,
506506
):
507507
"""
508508
Plot a slice along a given longitude.
@@ -696,7 +696,7 @@ def _make_basemap(
696696
min_lat=40,
697697
max_lat=44,
698698
ax=None,
699-
**kwargs
699+
**kwargs,
700700
):
701701
"""
702702
Make a basemap.

pyart/graph/radarmapdisplay.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def plot_ppi_map(
148148
ticklabs=None,
149149
alpha=None,
150150
edgecolors="face",
151-
**kwargs
151+
**kwargs,
152152
):
153153
"""
154154
Plot a PPI volume sweep onto a geographic map.
@@ -348,7 +348,7 @@ def plot_ppi_map(
348348
edgecolors=edgecolors,
349349
norm=norm,
350350
transform=self.grid_projection,
351-
**kwargs
351+
**kwargs,
352352
)
353353

354354
# plot as raster in vector graphics files
@@ -437,7 +437,7 @@ def plot_point(
437437
symbol="ro",
438438
label_text=None,
439439
label_offset=(None, None),
440-
**kwargs
440+
**kwargs,
441441
):
442442
"""
443443
Plot a point on the current map.

0 commit comments

Comments
 (0)