Skip to content

Commit

Permalink
Bump minimal Python version, update dependencies and linters
Browse files Browse the repository at this point in the history
  • Loading branch information
espdev committed Jun 30, 2024
1 parent 681fc82 commit 277eeec
Show file tree
Hide file tree
Showing 5 changed files with 765 additions and 710 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
max-parallel: 8
matrix:
platform: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
poetry-version: [ "1.7.1" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
poetry-version: [ "1.8.3" ]

steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}

Expand All @@ -36,7 +36,7 @@ jobs:
poetry config virtualenvs.in-project true --local
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
Expand All @@ -47,7 +47,6 @@ jobs:
- name: Run static analysis and linters
run: |
poetry run ruff check .
poetry run isort -c .
- name: Run tests
run: poetry run pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry run ruff check
language: system
types: [python]
require_serial: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Use pip for installing:
pip install -U csaps
```

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

## Simple Examples

Expand Down
Loading

0 comments on commit 277eeec

Please sign in to comment.