Skip to content

Commit a53e632

Browse files
committed
[GEOPY-2809] pre-commit autoupdate and run
1 parent f9f863a commit a53e632

3 files changed

Lines changed: 8 additions & 8 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)$

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

0 commit comments

Comments
 (0)