Skip to content

Commit 9849aef

Browse files
committed
Bump minimal Python version, update dependencies and linters
1 parent 681fc82 commit 9849aef

5 files changed

Lines changed: 762 additions & 706 deletions

File tree

.github/workflows/main.yaml

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

1919
steps:
2020
- name: Checkout project
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

2323
- name: Setup Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

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

@@ -36,7 +36,7 @@ jobs:
3636
poetry config virtualenvs.in-project true --local
3737
3838
- name: Define a cache for the virtual environment based on the dependencies lock file
39-
uses: actions/cache@v3
39+
uses: actions/cache@v4
4040
with:
4141
path: ./.venv
4242
key: venv-${{ hashFiles('poetry.lock') }}
@@ -47,7 +47,6 @@ jobs:
4747
- name: Run static analysis and linters
4848
run: |
4949
poetry run ruff check .
50-
poetry run isort -c .
5150
5251
- name: Run tests
5352
run: poetry run pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
repos:
5+
- repo: local
6+
hooks:
7+
- id: ruff
8+
name: ruff
9+
entry: poetry run ruff check
10+
language: system
11+
types: [python]
12+
require_serial: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Use pip for installing:
2222
pip install -U csaps
2323
```
2424

25-
The module depends only on NumPy and SciPy. Python 3.6 or above is supported.
25+
The module depends only on NumPy and SciPy. Python 3.9 or above is supported.
2626

2727
## Simple Examples
2828

0 commit comments

Comments
 (0)