Skip to content

Commit 2351789

Browse files
authored
Merge pull request #49 from dnv-opensource/update-dependencies
Update dependencies
2 parents ec8a845 + 5fa1917 commit 2351789

21 files changed

Lines changed: 1957 additions & 1725 deletions

.github/workflows/_build_and_publish_documentation.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Checkout farn (active branch)
1616
- name: Checkout farn (active branch)
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
lfs: true
2020
- name: prepare farn
@@ -31,7 +31,7 @@ jobs:
3131
3232
# Checkout dictIO (same branch as the one that triggered the workflow here in farn)
3333
- name: Checkout dictIO (same branch as in farn)
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
repository: 'dnv-opensource/dictIO'
3737
ref: ${{github.ref}}
@@ -46,7 +46,7 @@ jobs:
4646
4747
# Checkout ospx (same branch as the one that triggered the workflow here in farn)
4848
- name: Checkout ospx (same branch as in farn)
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
5050
with:
5151
repository: 'dnv-opensource/ospx'
5252
ref: ${{github.ref}}
@@ -72,12 +72,12 @@ jobs:
7272
rm -v -r docs/source/combined
7373
7474
- name: Install uv
75-
uses: astral-sh/setup-uv@v5
75+
uses: astral-sh/setup-uv@v7
7676
with:
7777
enable-cache: true
7878
cache-dependency-glob: "uv.lock"
7979
- name: Set up Python
80-
uses: actions/setup-python@v5
80+
uses: actions/setup-python@v6
8181
with:
8282
python-version-file: "pyproject.toml"
8383
- name: Install the project

.github/workflows/_build_package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ jobs:
77
name: Build source distribution
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
with:
1212
lfs: true
1313
- name: Install uv
14-
uses: astral-sh/setup-uv@v5
14+
uses: astral-sh/setup-uv@v7
1515
with:
1616
enable-cache: true
1717
cache-dependency-glob: "uv.lock"
18-
- uses: actions/setup-python@v5
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version-file: "pyproject.toml"
2121
- name: Build source distribution and wheel
2222
run: uv build
2323
- name: Run twine check
2424
run: uvx twine check --strict dist/*
25-
- uses: actions/upload-artifact@v4
25+
- uses: actions/upload-artifact@v5
2626
with:
2727
path: |
2828
dist/*.tar.gz

.github/workflows/_code_quality.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ jobs:
77
runs-on: ubuntu-latest
88
name: ruff format
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Install uv
12-
uses: astral-sh/setup-uv@v5
12+
uses: astral-sh/setup-uv@v7
1313
with:
1414
enable-cache: true
1515
cache-dependency-glob: "uv.lock"
1616
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version-file: "pyproject.toml"
2020
- name: Install the project
@@ -26,14 +26,14 @@ jobs:
2626
runs-on: ubuntu-latest
2727
name: ruff check
2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
3030
- name: Install uv
31-
uses: astral-sh/setup-uv@v5
31+
uses: astral-sh/setup-uv@v7
3232
with:
3333
enable-cache: true
3434
cache-dependency-glob: "uv.lock"
3535
- name: Set up Python
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version-file: "pyproject.toml"
3939
- name: Install the project
@@ -45,14 +45,14 @@ jobs:
4545
runs-on: ubuntu-latest
4646
name: pyright
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v5
4949
- name: Install uv
50-
uses: astral-sh/setup-uv@v5
50+
uses: astral-sh/setup-uv@v7
5151
with:
5252
enable-cache: true
5353
cache-dependency-glob: "uv.lock"
5454
- name: Set up Python
55-
uses: actions/setup-python@v5
55+
uses: actions/setup-python@v6
5656
with:
5757
python-version-file: "pyproject.toml"
5858
- name: Install the project
@@ -64,14 +64,14 @@ jobs:
6464
runs-on: ubuntu-latest
6565
name: mypy
6666
steps:
67-
- uses: actions/checkout@v4
67+
- uses: actions/checkout@v5
6868
- name: Install uv
69-
uses: astral-sh/setup-uv@v5
69+
uses: astral-sh/setup-uv@v7
7070
with:
7171
enable-cache: true
7272
cache-dependency-glob: "uv.lock"
7373
- name: Set up Python
74-
uses: actions/setup-python@v5
74+
uses: actions/setup-python@v6
7575
with:
7676
python-version-file: "pyproject.toml"
7777
- name: Install the project

.github/workflows/_merge_into_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: release
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
with:
1717
# Fetch the whole history to prevent unrelated history errors
1818
fetch-depth: 0

.github/workflows/_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
- runner: windows-latest
1414
- runner: macos-latest
1515
python:
16-
- version: '3.10'
1716
- version: '3.11'
1817
- version: '3.12'
1918
- version: '3.13'
19+
- version: '3.14'
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
- name: Install uv
23-
uses: astral-sh/setup-uv@v5
23+
uses: astral-sh/setup-uv@v7
2424
with:
2525
enable-cache: true
2626
cache-dependency-glob: "uv.lock"
2727
- name: Install Python ${{ matrix.python.version }}
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python.version }}
3131
- name: Install the project

.github/workflows/_test_future.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Unit Tests (py314)
2-
# Test also with Python 3.14 (experimental; workflow will not fail on error.)
1+
name: Unit Tests (py315)
2+
# Test also with Python 3.15 (experimental; workflow will not fail on error.)
33

44
on: workflow_call
55

66
jobs:
7-
test314:
7+
test315:
88
name: Test on ${{matrix.python.version}}-${{matrix.platform.runner}} (experimental)
99
continue-on-error: true
1010
runs-on: ${{ matrix.platform.runner }}
@@ -14,17 +14,17 @@ jobs:
1414
- runner: ubuntu-latest
1515
- runner: windows-latest
1616
python:
17-
- version: '3.14.0-alpha - 3.14.0'
18-
uvpy: '3.14'
17+
- version: '3.15.0-alpha - 3.15.0'
18+
uvpy: '3.15'
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v5
22+
uses: astral-sh/setup-uv@v7
2323
with:
2424
enable-cache: true
2525
cache-dependency-glob: "uv.lock"
2626
- name: Install Python ${{ matrix.python.version }}
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python.version }}
3030
- name: Install the project

.github/workflows/publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
permissions:
1919
id-token: write
2020
steps:
21-
- uses: actions/download-artifact@v4
21+
- uses: actions/download-artifact@v5
2222
with:
2323
name: artifact
2424
path: dist

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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: mixed-line-ending
66
args: [--fix=auto]
@@ -9,10 +9,10 @@ repos:
99
- id: check-toml
1010
- id: check-merge-conflict
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.9.2
12+
rev: v0.14.3
1313
hooks:
1414
- id: ruff-format
15-
- id: ruff
15+
- id: ruff-check
1616
# - repo: https://github.com/pre-commit/mirrors-mypy
1717
# rev: v1.14.1
1818
# hooks:

.sourcery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rule_settings:
2828
- refactoring
2929
- suggestion
3030
- comment
31-
python_version: '3.10' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
31+
python_version: '3.11' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version.
3232

3333
# rules: # A list of custom rules Sourcery will include in its analysis.
3434
# - id: no-print-statements

CHANGELOG.md

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,75 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e
55

66
## [Unreleased]
77

8+
-/-
9+
10+
11+
## [0.4.2] - 2025-11-06
12+
13+
### Added
14+
* Added support for Python 3.14
15+
16+
### Removed
17+
* Removed support for Python 3.10
18+
819
### Dependencies
9-
* Updated to ruff>=0.11.0 (from ruff>=0.9.2)
10-
* Updated to pyright>=1.1.396 (from pyright>=1.1.392)
11-
* Updated to sourcery>=1.35 (from sourcery>=1.31)
12-
* Updated to types-lxml>=2025.3 (from types-lxml>=2024.12)
13-
* Updated to scipy>=1.14 (from scipy>=1.15)
14-
* Updated to pre-commit>=4.1 (from pre-commit>=4.0)
15-
* Updated to mypy>=1.15 (from mypy>=1.14)
20+
* Updated to dictIO>=0.4.2 (from dictIO>=0.4.1)
21+
* Updated to ospx>=0.3.2 (from ospx>=0.3.1)
22+
* Updated to ruff>=0.14.3 (from ruff>=0.9.2)
23+
* Updated to pyright>=1.1.407 (from pyright>=1.1.392)
24+
* Updated to sourcery>=1.40 (from sourcery>=1.31)
25+
* Updated to lxml>=6.0 (from lxml>=5.3)
26+
* Updated to types-lxml>=2025.8 (from types-lxml>=2024.12)
27+
* Updated to numpy>=2.3 (removed split version specifiers)
28+
* Updated to scipy>=1.16 (from scipy>=1.14)
29+
* Updated to pyDOE3>=1.6 (from pyDOE3>=1.0)
30+
* Updated to pandas>=2.3 (from pandas>=2.2)
31+
* Updated to pandas-stubs>=2.3 (from pandas-stubs>=2.2)
32+
* Updated to pillow>=12.0 (from Pillow>=11.1)
33+
* Updated to pytest>=8.4 (from pytest>=8.3)
34+
* Updated to pytest-cov>=7.0 (from pytest-cov>=6.0)
35+
* Updated to Sphinx>=8.2 (from Sphinx>=8.1)
36+
* Updated to sphinx-argparse-cli>=1.20 (from sphinx-argparse-cli>=1.19)
37+
* Updated to sphinx-autodoc-typehints>=3.5 (from sphinx-autodoc-typehints>=3.0)
38+
* Updated to furo>=2025.9 (from furo>=2024.8)
39+
* Updated to pre-commit>=4.3 (from pre-commit>=4.0)
40+
* Updated to mypy>=1.18 (from mypy>=1.14)
1641
* Updated to types-psutil>=7.0 (from types-psutil>=6.1)
42+
* Updated to checkout@v5 (from checkout@v4)
43+
* Updated to setup-python@v6 (from setup-python@v5)
44+
* Updated to setup-uv@v7 (from setup-uv@v5)
45+
* Updated to upload-artifact@v5 (from upload-artifact@v4)
46+
* Updated to download-artifact@v5 (from download-artifact@v4)
1747

1848
### Changed
1949
* Renamed the CLI module (in folder src/farn/cli) from 'farn.py' to '\_\_main\_\_.py'.
2050
This follows current best practice (as in python_project_template).
2151
It avoids import errors caused by the fact that the cli module has the same name as the package it imports from.
2252
* Do not run code quality checks in nightly builds
2353
* Included uv.lock file in version control
54+
* pyproject.toml:
55+
* added required-environments to uv.tools (windows, linux, macos)
56+
* updated required Python version to ">= 3.11, < 3.15"
57+
* updated supported Python versions to 3.11, 3.12, 3.13, 3.14
58+
* removed deprecated pyright setting 'reportShadowedImports'
59+
* removed deprecated mypy plugin 'numpy.typing.mypy_plugin'
60+
* GitHub workflow _test.yml:
61+
* updated Python versions in test matrix to 3.11, 3.12, 3.13, 3.14
62+
* GitHub workflow _test_future.yml:
63+
* updated Python version in test_future to 3.15.0-alpha - 3.15.0
64+
* .pre-commit-config.yaml:
65+
* updated rev of pre-commit-hooks to v6.0.0
66+
* updated rev of ruff-pre-commit to v0.14.3
67+
* updated id of ruff to ruff-check
68+
* Sphinx conf.py:
69+
* removed ruff rule exception on file level
70+
* demos\folder_for_demos.py:
71+
* removed ruff rule exception
72+
* .sourcery.yaml:
73+
* updated the lowest Python version the project supports to '3.11'
74+
75+
### Solved
76+
* Resolved issues raised by `ruff` 0.14.3
2477

2578

2679
## [0.4.1] - 2025-01-19
@@ -440,7 +493,8 @@ Users are encouraged to update to this version.
440493
* Added support for Python 3.10
441494

442495
<!-- Markdown link & img dfn's -->
443-
[unreleased]: https://github.com/dnv-opensource/farn/compare/v0.4.1...HEAD
496+
[unreleased]: https://github.com/dnv-opensource/farn/compare/v0.4.2...HEAD
497+
[0.4.2]: https://github.com/dnv-opensource/farn/compare/v0.4.1...v0.4.2
444498
[0.4.1]: https://github.com/dnv-opensource/farn/compare/v0.4.0...v0.4.1
445499
[0.4.0]: https://github.com/dnv-opensource/farn/compare/v0.3.7...v0.4.0
446500
[0.3.7]: https://github.com/dnv-opensource/farn/compare/v0.3.6...v0.3.7

0 commit comments

Comments
 (0)