Skip to content

Commit fbc988f

Browse files
authored
Add open_files function to read GPM files from list of file paths (#81)
* Add open_files * Fix polars categorical casting to float * Update precommit, CI, supported python versions * Update precommit, CI, supported python versions * Update CI and pyproject * Update code for dependency * Fix download for V8 * Updates for V8
1 parent c5d3d25 commit fbc988f

50 files changed

Lines changed: 1467 additions & 330 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
9-
- uses: actions/setup-python@v5
8+
- uses: actions/checkout@v6
9+
- uses: actions/setup-python@v6
1010
with:
1111
python-version: "3.10"
1212
- name: Ruff

.github/workflows/release_to_pypi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
contents: write
1212
steps:
1313
- name: Checkout source
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
- name: Set up Python
16-
uses: actions/setup-python@v5
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: 3.x
1919
- name: Install pypa/build
@@ -39,8 +39,8 @@ jobs:
3939
id: create_release
4040
uses: softprops/action-gh-release@v2
4141
with:
42-
name: ${{ github.ref }}
43-
tag_name: ${{ github.ref }}
42+
name: ${{ github.ref_name }}
43+
tag_name: ${{ github.ref_name }}
4444
files: |
4545
dist/${{ env.asset_name }}
4646
draft: false

.github/workflows/tests.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
---
22
name: Tests
3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 0 1 * *' # Run at 00:00 UTC on the 1st day of every month
49
jobs:
510
tests:
611
name:
7-
Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}${{ matrix.experimental && ', latest
8-
dependencies' || '' }}
12+
Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}${{ matrix.experimental && ', latest dependencies' || '' }}
913
runs-on: ${{ matrix.os }}
1014
defaults:
1115
run:
@@ -14,18 +18,18 @@ jobs:
1418
fail-fast: false
1519
matrix:
1620
os: [ubuntu-latest]
17-
python-version: ["3.10", "3.11", "3.12"]
21+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1822
experimental: [false]
1923
include:
2024
- os: ubuntu-latest
21-
python-version: "3.12"
25+
python-version: "3.13"
2226
experimental: true
2327
- os: ubuntu-latest
24-
python-version: "3.11"
28+
python-version: "3.13"
2529
experimental: false
2630
coverage: true
2731
steps:
28-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
2933
with:
3034
submodules: recursive
3135
- name: Set up micromamba

.github/workflows/tests_windows.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
---
2-
name: Tests
3-
on: [push, pull_request, workflow_dispatch]
2+
name: Tests Windows
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 0 1 * *' # Run at 00:00 UTC on the 1st day of every month
9+
410
jobs:
511
tests:
612
name:
7-
Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}${{ matrix.experimental && ' with
8-
latest dependencies' || '' }}
13+
Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}${{ matrix.experimental && ' with latest dependencies' || '' }}
914
runs-on: ${{ matrix.os }}
1015
defaults:
1116
run:
@@ -14,10 +19,10 @@ jobs:
1419
fail-fast: false
1520
matrix:
1621
os: [windows-latest]
17-
python-version: ["3.10", "3.11", "3.12"]
22+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1823
experimental: [false]
1924
steps:
20-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2126
with:
2227
submodules: recursive
2328
- name: Set up micromamba and install package dependencies

.pre-commit-config.yaml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v5.0.0
4+
rev: v6.0.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
@@ -12,42 +12,39 @@ repos:
1212
- id: check-ast
1313
- id: check-added-large-files
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.11.2
15+
rev: v0.14.9
1616
hooks:
1717
- id: ruff
1818
args: [--fix]
1919
- repo: https://github.com/psf/black
20-
rev: 25.1.0
20+
rev: 25.12.0
2121
hooks:
2222
- id: black
2323
language_version: python3
24+
additional_dependencies: ["black[jupyter]"]
2425
- repo: https://github.com/keewis/blackdoc
25-
rev: v0.3.9
26+
rev: v0.4.6
2627
hooks:
2728
- id: blackdoc
2829
additional_dependencies: ["black[jupyter]"]
29-
- repo: https://github.com/pre-commit/mirrors-prettier
30-
rev: "v4.0.0-alpha.8"
31-
hooks:
32-
- id: prettier
33-
types_or: [yaml, html, css, scss, javascript, json] # markdown to avoid conflicts with mdformat
30+
files: \.(rst)$
3431
- repo: https://github.com/codespell-project/codespell
3532
rev: v2.4.1
3633
hooks:
3734
- id: codespell
3835
types_or: [python, markdown, rst]
3936
additional_dependencies: [tomli]
40-
- repo: https://github.com/asottile/pyupgrade
41-
rev: v3.19.1
42-
hooks:
43-
- id: pyupgrade
37+
# - repo: https://github.com/asottile/pyupgrade
38+
# rev: v3.20.0
39+
# hooks:
40+
# - id: pyupgrade
4441
- repo: https://github.com/MarcoGorelli/madforhooks
4542
rev: 0.4.1
4643
hooks:
4744
# - id: conda-env-sorter # conflicts with prettier
4845
- id: check-execution-order
4946
- repo: https://github.com/executablebooks/mdformat
50-
rev: 0.7.22
47+
rev: 1.0.0
5148
hooks:
5249
- id: mdformat
5350
additional_dependencies: [mdformat-gfm, mdformat-black]
@@ -61,8 +58,8 @@ repos:
6158
rev: 1.9.1
6259
hooks:
6360
- id: nbqa-black
64-
- id: nbqa-ruff
65-
args: [--fix, "--ignore=E402,B018"]
61+
# - id: nbqa-ruff
62+
# args: [--fix, "--ignore=E402,B018"]
6663
- repo: https://github.com/pre-commit/pygrep-hooks
6764
rev: "v1.10.0"
6865
hooks:

CONTRIBUTING.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ Refer to the table below for a comprehensive summary of all CI tools employed to
228228
+====================================================+=====================================================================================================================================+
229229
| `pre-commit.ci <https://pre-commit.ci/>`__ | Run pre-commit (as defined in `.pre-commit-config.yaml <https://github.com/ghiggi/gpm_api/blob/main/.pre-commit-config.yaml>`__) |
230230
+----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
231-
| `CodeBeat <https://codebeat.co/>`__ | Automated code review and analysis tools |
232-
+----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
233231
| `CodeScene <https://codescene.com/>`__ | Automated code review and analysis tools |
234232
+----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
235233
| `CodeFactor <https://www.codefactor.io/>`__ | Automated code review and analysis tools |

0 commit comments

Comments
 (0)