Skip to content

Commit d5b8b07

Browse files
Merge pull request #11 from PlasmaFAIR/upgrade_versions
Upgrade Python and NumPy versions
2 parents d777387 + 8ba3c64 commit d5b8b07

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v4
16+
- uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.x
1919
- name: Install Project
@@ -27,7 +27,7 @@ jobs:
2727
- name: Run Ruff
2828
if: always()
2929
run: |
30-
ruff src
30+
ruff check src
3131
- name: Run MyPy
3232
if: always()
3333
run: |

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: '3.x'
1616
- name: Install

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18+
python-version: ["3.10", "3.11", "3.12"]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
pytest --cov=pyloidal --cov-report=xml --cov-report=term -vv ./tests
3232
- name: Upload coverage artifacts
33-
uses: actions/upload-artifact@v3
33+
uses: actions/upload-artifact@v4
3434
with:
3535
name: ${{ format('coverage-python-{0}', matrix.python-version) }}
3636
path: coverage.xml
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v4
4545
- name: Download coverage report
46-
uses: actions/download-artifact@v3
46+
uses: actions/download-artifact@v4
4747
with:
4848
name: "coverage-python-3.10"
4949
path: coverage.xml

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ classifiers = [
2020
"Topic :: Scientific/Engineering :: Physics",
2121
]
2222

23-
requires-python = ">=3.8"
23+
requires-python = ">=3.10"
2424
dependencies = [
25-
"numpy ~= 1.24",
25+
"numpy >= 1.24",
2626
]
2727

2828
[project.optional-dependencies]
@@ -37,7 +37,7 @@ lint = [
3737
"isort",
3838
"docformatter",
3939
"ruff",
40-
"refurb; python_version >= '3.10'",
40+
"refurb",
4141
"mypy",
4242
]
4343

@@ -59,7 +59,7 @@ fallback_version = "0.1.0"
5959
[tool.isort]
6060
profile = "black"
6161

62-
[tool.ruff]
62+
[tool.ruff.lint]
6363
select = ["E", "F", "W", "RUF"]
6464

6565
[tool.coverage.run]

src/pyloidal/cocos.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@
2020
from typing import Optional, Tuple
2121

2222
import numpy as np
23+
from numpy.typing import NDArray
2324

24-
try:
25-
from numpy.typing import NDArray
26-
27-
FloatArray = NDArray[np.float64]
28-
except ImportError:
29-
FloatArray = np.ndarray # type: ignore
25+
FloatArray = NDArray[np.float64]
3026

3127

3228
@dataclass(frozen=True)

0 commit comments

Comments
 (0)