Skip to content

Commit

Permalink
Update required python versions and update pre-commit hook (#156)
Browse files Browse the repository at this point in the history
* Update python versions

* Auto-updated the pre-commit hooks

* Forgot one classifier

* Fixed a linter-complaint
  • Loading branch information
pnkraemer authored Oct 11, 2023
1 parent 3e9445c commit 26ae7ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
language_version: python3
Expand All @@ -20,15 +20,15 @@ repos:
- id: isort
name: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.265
rev: v0.0.292
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
rev: v1.5.1
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.9.0
rev: 1.13.0
hooks:
- id: yamlfix
2 changes: 1 addition & 1 deletion matfree/backend/typing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Types."""
# fmt: off
from collections.abc import Callable # noqa: F401
from typing import Any, Generic, Iterable, Sequence, Tuple, TypeVar # noqa: F401
from typing import Any, Generic, Iterable, Sequence, Tuple, TypeVar # noqa: F401, UP035

from jax import Array # noqa: F401

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ authors = [
]
description = "Matrix-free numerical linear algebra."
readme = "README.md"
requires-python=">=3.8"
requires-python=">=3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]

Expand Down

0 comments on commit 26ae7ed

Please sign in to comment.