Skip to content

Commit e19ee61

Browse files
authored
Merge pull request #86 from espdev/update-dev-tools
Update dev tools and dependencies
2 parents 97c7671 + 2278d71 commit e19ee61

File tree

5 files changed

+1127
-849
lines changed

5 files changed

+1127
-849
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
max-parallel: 8
1414
matrix:
1515
platform: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
16-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
17-
poetry-version: [ "1.8.3" ]
16+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
17+
poetry-version: [ "1.8.5" ]
1818

1919
steps:
2020
- name: Checkout project
@@ -26,7 +26,7 @@ jobs:
2626
python-version: ${{ matrix.python-version }}
2727

2828
- name: Install Poetry ${{ matrix.poetry-version }}
29-
uses: abatilo/actions-poetry@v3
29+
uses: abatilo/actions-poetry@v4
3030
with:
3131
poetry-version: ${{ matrix.poetry-version }}
3232

@@ -45,11 +45,10 @@ jobs:
4545
run: poetry install
4646

4747
- name: Run static analysis and linters
48-
run: |
49-
poetry run ruff check .
48+
run: poetry run poe check
5049

5150
- name: Run tests
52-
run: poetry run pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info
51+
run: poetry run poe test-ci
5352

5453
- name: Send coverage report to Coveralls
5554
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
@@ -60,4 +59,4 @@ jobs:
6059

6160
- name: Build docs
6261
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
63-
run: poetry run make -C docs/ html
62+
run: poetry run poe docs

.pre-commit-config.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44
repos:
55
- repo: local
66
hooks:
7-
- id: ruff
8-
name: ruff
9-
entry: poetry run ruff check
7+
- id: check-format
8+
name: check-format
9+
entry: poetry run poe check-format-pre-commit
1010
language: system
11-
types: [python]
11+
types: [ python ]
12+
require_serial: true
13+
- id: check-lint
14+
name: check-lint
15+
entry: poetry run poe check-lint-pre-commit
16+
language: system
17+
types: [ python ]
1218
require_serial: true

csaps/_sspndg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ def _prepare_data(cls, xdata, ydata, weights, smooth):
304304
smooth = list(smooth)
305305

306306
if len(smooth) != data_ndim:
307-
raise ValueError(
308-
'Number of smoothing parameter values must ' f'be equal number of dimensions ({data_ndim})'
309-
)
307+
raise ValueError(f'Number of smoothing parameter values must be equal number of dimensions ({data_ndim})')
310308

311309
return xdata, ydata, weights, smooth
312310

0 commit comments

Comments
 (0)