Skip to content

Commit

Permalink
chore: upgrade python versions (#70)
Browse files Browse the repository at this point in the history
* ci: upgrade python versions

* ci: fix typok

* ci: fix typo

* ci: fix typo

* chore: add ruff to pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jonas-eschle and pre-commit-ci[bot] authored Apr 30, 2024
1 parent ceaca52 commit de96c97
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.9]
python-version: ["3.8", "3.12"]
runs-on: [ubuntu-latest, macos-13, windows-latest]

include:
- python-version: pypy-3.7
runs-on: ubuntu-latest
- python-version: "3.12"
runs-on: macos-14





steps:
- uses: actions/checkout@v4

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

Expand Down
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
args: [--include-version-classifiers, --min-py3-version=3.7, --max-py-version=3.11]
args: [--include-version-classifiers, --min-py3-version=3.8, --max-py-version=3.12]

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
Expand All @@ -56,3 +56,13 @@ repos:
hooks:
- id: check-manifest
stages: [manual]

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.1
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Scientific/Engineering

[options]
packages = find:
python_requires = >=3.7
python_requires = >=3.8
include_package_data = True
package_dir =
=src
Expand Down Expand Up @@ -63,7 +63,7 @@ per-file-ignores =

[mypy]
files = src
python_version = 3.7
python_version = 3.8
warn_unused_configs = True
disallow_any_generics = True
disallow_subclassing_any = True
Expand Down

0 comments on commit de96c97

Please sign in to comment.