Skip to content

Commit 5b88708

Browse files
Merge pull request #1 from StructuralPython/releases/v0.1.0
blackify and update dev/testing deps
2 parents e95272e + 2c28717 commit 5b88708

File tree

7 files changed

+225
-101
lines changed

7 files changed

+225
-101
lines changed

.github/workflows/python-pytest.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,19 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [macos-latest, windows-latest, ubuntu-latest]
18-
python-version: ["3.10", "3.11", "3.12"]
1918
runs-on: ${{ matrix.os }}
2019
steps:
21-
- uses: actions/checkout@v3
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v3
24-
with:
25-
python-version: ${{ matrix.python-version }}
20+
- uses: actions/checkout@v4
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v6
24+
2625
- name: Install dependencies
2726
run: |
28-
python -m pip install --upgrade pip
29-
python -m pip install uv
30-
python -m uv pip install .
31-
python -m uv pip install black
27+
uv sync
3228
- name: Test black formatted
3329
run: |
34-
black src --check
30+
uv run black src --check
3531
- name: Test with pytest
3632
run: |
37-
pytest
33+
uv run pytest

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ dependencies = [
1111
"shapely>=2.0.0"
1212
]
1313

14-
[project.optional-dependencies]
15-
16-
17-
test = [
18-
"pytest >= 8.0.0",
19-
]
20-
2114
[build-system]
2215
requires = ["flit_core >=3.2,<4"]
2316
build-backend = "flit_core.buildapi"
17+
18+
[dependency-groups]
19+
dev = [
20+
"black>=25.1.0",
21+
"pytest>=8.4.1",
22+
]

src/load_distribution/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
__version__ = "0.1.0"
77

8-
from load_distribution.load_distribution import *
8+
from load_distribution.load_distribution import *

0 commit comments

Comments
 (0)