Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.12" ]
python-version: [ "3.13" ]

steps:
- name: Checkout source repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.12", ]
python-version: [ "3.13" ]

steps:
- name: Checkout source repository
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.12" ]
python-version: [ "3.13" ]

steps:
- name: Checkout source repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.12" ]
python-version: [ "3.13" ]

steps:
- name: Checkout source repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Checkout source repository
Expand Down
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
# Check for invalid files
- id: check-toml
# Check Python files
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
exclude: "^.*\\.bin$"
- id: mixed-line-ending
args: [ --fix=lf ]
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.19.1
hooks:
- id: blacken-docs
args: [ --line-length=120 ]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
- repo: local
Expand All @@ -39,6 +42,6 @@ repos:
types: [ python ]
require_serial: true
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
rev: 'v1.17.1'
hooks:
- id: mypy
6 changes: 3 additions & 3 deletions async_gpib/async_gpib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Import either the Linux GPIB module or gpib_ctypes. Prefer Linux GPIB.
from enum import Flag, unique
from types import TracebackType
from typing import Any, Callable, Type
from typing import Any, Callable

try:
from typing import Self # type: ignore # Python 3.11
Expand Down Expand Up @@ -105,7 +105,7 @@ def sad(self) -> int:
def __str__(self) -> str:
return f"Linux-GPIB at Gpib({self.__name})"

def __init__( # pylint: disable=too-many-arguments
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
self,
name: int | str = "gpib0",
pad: int | None = None,
Expand Down Expand Up @@ -150,7 +150,7 @@ async def __aenter__(self) -> Self:
return self

async def __aexit__(
self, exc_type: Type[BaseException] | None, exc: BaseException | None, traceback: TracebackType | None
self, exc_type: type[BaseException] | None, exc: BaseException | None, traceback: TracebackType | None
) -> None:
await self.disconnect()

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ authors = [
]
description = "Python3 AsyncIO Linux GPIB wrapper"
readme = "README.md"
license = { text="GNU General Public License v3 (GPLv3)" }
license = "GPL-3.0-only"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
Expand Down