Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix package name #3

Merged
merged 3 commits into from
Jun 22, 2024
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.10", "3.11", "3.12" ]
python-version: [ "3.12" ]

steps:
- name: Checkout source repository
Expand Down
12 changes: 8 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.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]
- id: end-of-file-fixer
- 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/psf/black
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
Expand All @@ -23,7 +27,7 @@ repos:
- id: blacken-docs
args: [--line-length=120]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: local
Expand All @@ -35,7 +39,7 @@ repos:
types: [python]
require_serial: true
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.5.1'
rev: 'v1.10.0'
hooks:
- id: mypy
additional_dependencies: [types-simplejson]
1 change: 1 addition & 0 deletions fluke5440b_async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This is an asyncIO library for the Fluke 5440B calibrator. It manages all functions of the calibrator and takes care
of the internal state.
"""

from ._version import __version__
from .enums import DeviceState, ErrorCode, ModeType, SeparatorType, TerminatorType
from .flags import SerialPollFlags, SrqMask, StatusFlags
Expand Down
1 change: 1 addition & 0 deletions fluke5440b_async/enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Enums are used to represent the device functions and settings."""

from __future__ import annotations

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions fluke5440b_async/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Custom errors raised by the Fluke 5440B."""

from .enums import ErrorCode, SelfTestErrorCode


Expand Down
1 change: 1 addition & 0 deletions fluke5440b_async/flags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Flags are used for the status registers returned by the device."""

from __future__ import annotations

from enum import Flag
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "fluke5440b_async"
name = "fluke5440b-async"
authors = [
{ name="Patrick Baus", email="[email protected]" },
]
Expand Down Expand Up @@ -49,7 +49,7 @@ doc = [
]

test = [
"mypy", "pylint", "gpib-ctypes", "prologix-gpib-async"
"mypy", "pylint", "gpib-ctypes", "prologix-gpib-async", "setuptools",
]

[tool.pylint.'MESSAGES CONTROL']
Expand Down