Skip to content

Commit 2015c1f

Browse files
authored
Merge pull request #8 from alexlib/merge_openptv
Merge openptv
2 parents 910eefa + 523efa7 commit 2015c1f

File tree

98 files changed

+15281
-203
lines changed

Some content is hidden

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

98 files changed

+15281
-203
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
3-
"commit": "a9c290fa0e810e9dee6c61991afac6f0c969c3b1",
3+
"commit": "5ad0c955478c9b0fe8772545ef46291f5f314f75",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -13,7 +13,7 @@
1313
"integration_tests": "True",
1414
"pypi": true,
1515
"_template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
16-
"_commit": "a9c290fa0e810e9dee6c61991afac6f0c969c3b1"
16+
"_commit": "5ad0c955478c9b0fe8772545ef46291f5f314f75"
1717
}
1818
},
1919
"directory": null

.github/workflows/on-push.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ jobs:
2222
pre-commit:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
26-
- uses: actions/setup-python@v5
25+
- uses: actions/checkout@v6
26+
- uses: actions/setup-python@v6
2727
with:
28-
python-version: 3.x
28+
python-version: '3.12'
2929
- uses: pre-commit/action@v3.0.1
3030

3131
combine-environments:
3232
runs-on: ubuntu-latest
3333

3434
steps:
35-
- uses: actions/checkout@v4
36-
- uses: actions/setup-python@v5
35+
- uses: actions/checkout@v6
36+
- uses: actions/setup-python@v6
3737
with:
38-
python-version: 3.x
38+
python-version: '3.12'
3939
- name: Install conda-merge
4040
run: |
4141
python -m pip install conda-merge
@@ -44,7 +44,7 @@ jobs:
4444
for SUFFIX in ci integration; do
4545
conda-merge ci/environment-$SUFFIX.yml environment.yml > ci/combined-environment-$SUFFIX.yml || exit
4646
done
47-
- uses: actions/upload-artifact@v4
47+
- uses: actions/upload-artifact@v6
4848
with:
4949
name: combined-environments
5050
path: ci/combined-environment-*.yml
@@ -55,11 +55,11 @@ jobs:
5555
runs-on: ubuntu-latest
5656
strategy:
5757
matrix:
58-
python-version: ['3.11']
58+
python-version: ['3.12', '3.13']
5959

6060
steps:
61-
- uses: actions/checkout@v4
62-
- uses: actions/download-artifact@v4
61+
- uses: actions/checkout@v6
62+
- uses: actions/download-artifact@v7
6363
with:
6464
name: combined-environments
6565
path: ci
@@ -87,8 +87,8 @@ jobs:
8787
runs-on: ubuntu-latest
8888

8989
steps:
90-
- uses: actions/checkout@v4
91-
- uses: actions/download-artifact@v4
90+
- uses: actions/checkout@v6
91+
- uses: actions/download-artifact@v7
9292
with:
9393
name: combined-environments
9494
path: ci
@@ -103,7 +103,7 @@ jobs:
103103
cache-environment-key: environment-${{ steps.date.outputs.date }}
104104
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
105105
create-args: >-
106-
python=3.11
106+
python=3.12
107107
- name: Install package
108108
run: |
109109
python -m pip install --no-deps -e .
@@ -116,8 +116,8 @@ jobs:
116116
runs-on: ubuntu-latest
117117

118118
steps:
119-
- uses: actions/checkout@v4
120-
- uses: actions/download-artifact@v4
119+
- uses: actions/checkout@v6
120+
- uses: actions/download-artifact@v7
121121
with:
122122
name: combined-environments
123123
path: ci
@@ -132,7 +132,7 @@ jobs:
132132
cache-environment-key: environment-${{ steps.date.outputs.date }}
133133
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
134134
create-args: >-
135-
python=3.11
135+
python=3.12
136136
- name: Install package
137137
run: |
138138
python -m pip install --no-deps -e .
@@ -149,12 +149,12 @@ jobs:
149149
strategy:
150150
matrix:
151151
include:
152-
- python-version: '3.11'
152+
- python-version: '3.12'
153153
extra: -integration
154154

155155
steps:
156-
- uses: actions/checkout@v4
157-
- uses: actions/download-artifact@v4
156+
- uses: actions/checkout@v6
157+
- uses: actions/download-artifact@v7
158158
with:
159159
name: combined-environments
160160
path: ci
@@ -188,10 +188,10 @@ jobs:
188188
(needs.integration-tests.result == 'success' || needs.integration-tests.result == 'skipped')
189189
190190
steps:
191-
- uses: actions/checkout@v4
192-
- uses: actions/setup-python@v5
191+
- uses: actions/checkout@v6
192+
- uses: actions/setup-python@v6
193193
with:
194-
python-version: '3.11'
194+
python-version: '3.12'
195195
- name: Install package
196196
run: |
197197
python -m pip install --upgrade pip
@@ -206,7 +206,7 @@ jobs:
206206
python -m twine check --strict * || exit
207207
python -c "import openptv_python" || exit
208208
cd ..
209-
- uses: actions/upload-artifact@v4
209+
- uses: actions/upload-artifact@v6
210210
with:
211211
name: distribution
212212
path: dist
@@ -226,10 +226,10 @@ jobs:
226226
id-token: write # IMPORTANT: this permission is mandatory for trusted publish
227227

228228
steps:
229-
- uses: actions/download-artifact@v4
229+
- uses: actions/download-artifact@v7
230230
with:
231231
name: distribution
232232
path: dist
233-
- uses: pypa/gh-action-pypi-publish@v1.12.4
233+
- uses: pypa/gh-action-pypi-publish@v1.13.0
234234
with:
235235
verbose: true

.github/workflows/static.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,23 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34+
- name: Setup Python
35+
uses: actions/setup-python@v6
36+
with:
37+
python-version: '3.12'
38+
- name: Install documentation dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
python -m pip install -e ".[docs]"
42+
- name: Build documentation
43+
run: |
44+
make docs-build
3445
- name: Setup Pages
3546
uses: actions/configure-pages@v4
3647
- name: Upload artifact
3748
uses: actions/upload-pages-artifact@v3
3849
with:
39-
# Upload entire repository
40-
path: '.'
50+
path: docs/_build/html
4151
- name: Deploy to GitHub Pages
4252
id: deployment
4353
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,3 +471,5 @@ $RECYCLE.BIN/
471471

472472
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks,vim,visualstudiocode,pycharm,emacs,linux,macos,windows
473473
.cruft.json
474+
/.tmp
475+
/tmp

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -12,28 +12,29 @@ repos:
1212
- id: debug-statements
1313
- id: mixed-line-ending
1414
- repo: https://github.com/keewis/blackdoc
15-
rev: v0.3.9
15+
rev: v0.4.6
1616
hooks:
1717
- id: blackdoc
18-
additional_dependencies: [black==23.11.0]
18+
additional_dependencies: [black==25.9.0]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.11.11
20+
rev: v0.15.2
2121
hooks:
2222
- id: ruff
2323
args: [--fix, --show-fixes]
2424
- id: ruff-format
2525
- repo: https://github.com/executablebooks/mdformat
26-
rev: 0.7.22
26+
rev: 1.0.0
2727
hooks:
2828
- id: mdformat
2929
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
30-
rev: v2.14.0
30+
rev: v2.16.0
3131
hooks:
3232
- id: pretty-format-yaml
3333
args: [--autofix, --preserve-quotes]
3434
- id: pretty-format-toml
3535
args: [--autofix]
36+
exclude: ^uv\.lock$
3637
- repo: https://github.com/gitleaks/gitleaks
37-
rev: v8.26.0
38+
rev: v8.30.0
3839
hooks:
3940
- id: gitleaks

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /src/openptv-python
44

55
COPY environment.yml /src/openptv-python/
66

7-
RUN conda install -c conda-forge gcc python=3.11 \
7+
RUN conda install -c conda-forge gcc python=3.12 \
88
&& conda env update -n base -f environment.yml
99

1010
COPY . /src/openptv-python

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ PROJECT := openptv_python
22
CONDA := conda
33
CONDAFLAGS :=
44
COV_REPORT := html
5+
PYTHON ?= python
56

67
default: qa unit-tests type-check
78

89
qa:
9-
pre-commit run --all-files
10+
$(PYTHON) -m pre_commit run --all-files
1011

1112
unit-tests:
12-
python -m pytest -vv --cov=. --cov-report=$(COV_REPORT) --doctest-glob="*.md" --doctest-glob="*.rst"
13+
$(PYTHON) -m pytest -vv --cov=. --cov-report=$(COV_REPORT) --doctest-glob="*.md" --doctest-glob="*.rst"
1314

1415
type-check:
15-
python -m mypy .
16+
$(PYTHON) -m mypy .
1617

1718
conda-env-update:
1819
$(CONDA) install -y -c conda-forge conda-merge

0 commit comments

Comments
 (0)