Skip to content

Commit 62afc8b

Browse files
authored
Merge pull request #118 from MiraGeoscience/GEOPY-2809
GEOPY-2809: Python env for Analyst on current packages from develop
2 parents c3a7d22 + e6fd77b commit 62afc8b

7 files changed

Lines changed: 26 additions & 29 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
default_language_version:
3-
python: python3
3+
python: python3.12
44
exclude: ^docs/(source/conf.py|_ext/)
55
default_stages: [pre-commit,pre-push]
66
fail_fast: false
@@ -12,7 +12,7 @@ ci:
1212

1313
repos:
1414
- repo: https://github.com/python-poetry/poetry
15-
rev: 2.1.3
15+
rev: 2.4.1
1616
hooks:
1717
- id: poetry-check
1818
args: [--lock, --no-plugins]
@@ -22,7 +22,7 @@ repos:
2222
- id: pycln
2323
args: [--config=pyproject.toml]
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.12.9
25+
rev: v0.15.15
2626
hooks:
2727
- id: ruff-check
2828
args:
@@ -31,7 +31,7 @@ repos:
3131
# - --unsafe-fixes
3232
- id: ruff-format
3333
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.17.1
34+
rev: v2.1.0
3535
hooks:
3636
- id: mypy
3737
additional_dependencies: [
@@ -65,7 +65,7 @@ repos:
6565
types: [python]
6666
exclude: ^(devtools|docs|las_geoh5-assets)/
6767
- repo: https://github.com/codespell-project/codespell
68-
rev: v2.4.1
68+
rev: v2.4.2
6969
hooks:
7070
- id: codespell
7171
exclude: (\.lock|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$

poetry.lock

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ tqdm = "^4.66.1"
7272

7373
## dependencies from Git repositories
7474
#------------------------------------
75-
#geoh5py = {version = ">=0.12.0b5, <0.13.dev", allow-prereleases = true}
76-
geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "release/GA_4.8"}
75+
geoh5py = {version = ">=0.13.0b1, 0.13.*", allow-prereleases = true}
76+
# geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "release/GA_4.8"}
7777
#geoh5py = {path = "../geoh5py", develop = true}
7878

7979
[tool.poetry.group.dev.dependencies]

recipe.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ requirements:
2929
- python ${{ python_min }}.*
3030
- poetry-core >=1.8.0
3131
- poetry-dynamic-versioning >=1.9, 1.*
32-
- setuptools
33-
- setuptools_scm
3432
run:
3533
- python >=${{ python_min }}
3634
# Mira packages
37-
- geoh5py >=0.13.0a2, 0.13.*
35+
- geoh5py >=0.13.0b1, 0.13.*
3836
# direct dependencies
3937
- lasio 0.32.*
4038
- numpy >=2.4.0, 2.4.*
@@ -43,6 +41,7 @@ requirements:
4341

4442
tests:
4543
- python:
44+
python_version: ${{ python_min }}.*
4645
imports:
4746
- ${{ module_name }}
4847
- ${{ module_name }}._version
@@ -74,4 +73,6 @@ about:
7473
extra:
7574
recipe-maintainers:
7675
- andrewg-mira
76+
- domfournier
77+
- RomFloreani
7778
- sebhmg

tests/geoh5_to_las_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_get_depths():
4949
assert "from-to" in depths and len(depths) == 1
5050
assert np.allclose(depths["from-to"], np.c_[np.arange(0, 10), np.arange(1, 11)])
5151
lasfile = lasio.LASFile()
52-
with pytest.raises(ValueError, match="curve named 'DEPTH' or 'DEPT'."):
52+
with pytest.raises(ValueError, match=r"curve named 'DEPTH' or 'DEPT'\."):
5353
get_depths(lasfile)
5454

5555

tests/import_las_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,15 @@ def test_las_translator_retrieve(tmp_path: Path):
226226
assert translator.retrieve("well_name", lasfile) == "dh1"
227227

228228
with pytest.raises(
229-
KeyError, match="'collar_z_name' field: 'ELEV' not found in LAS file."
229+
KeyError, match=r"'collar_z_name' field: 'ELEV' not found in LAS file\."
230230
):
231231
translator.retrieve("collar_z_name", lasfile)
232232

233233

234234
def test_las_translator_translate():
235235
translator = LASTranslator(NameOptions(collar_x_name="UTMX"))
236236
assert translator.translate("collar_x_name") == "UTMX"
237-
with pytest.raises(KeyError, match="'not_a_field' is not a recognized field."):
237+
with pytest.raises(KeyError, match=r"'not_a_field' is not a recognized field\."):
238238
translator.translate("not_a_field")
239239

240240

tests/script_geoh5_to_las_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@pytest.fixture(scope="module", name="input_workspace")
2929
def input_workspace_fixture(tmp_path_factory) -> Workspace:
3030
tmp_path = tmp_path_factory.mktemp("input")
31-
with Workspace.create(tmp_path / "my workspace") as workspace:
31+
with Workspace.create(tmp_path / "my workspace.geoh5") as workspace:
3232
return workspace
3333

3434

0 commit comments

Comments
 (0)