Skip to content

Commit

Permalink
Fix package name (#3)
Browse files Browse the repository at this point in the history
* Updated pyproject.toml to fix the changes made in pypa/setuptools#4159

* Added more pre-commit hooks
  • Loading branch information
PatrickBaus authored Jun 22, 2024
1 parent f7a256f commit c2ddc54
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
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="patrick.baus@physik.tu-darmstadt.de" },
]
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

0 comments on commit c2ddc54

Please sign in to comment.