Skip to content

Commit

Permalink
Added CI pipeline
Browse files Browse the repository at this point in the history
Replaced setup.py by pyproject.toml
Code refactoring
  • Loading branch information
PatrickBaus committed Jul 5, 2022
1 parent ca07f8e commit 2b6c7c1
Show file tree
Hide file tree
Showing 7 changed files with 314 additions and 246 deletions.
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/PyCQA/pylint
rev: 'v2.14.4'
hooks:
- id: pylint
additional_dependencies: [aiofiles, prologix_gpib_async, pytest]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.961'
hooks:
- id: mypy
additional_dependencies: [types-aiofiles]
2 changes: 1 addition & 1 deletion hp3478a_async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
HP3478A asyncIO library.
"""
from .hp_3478a import HP_3478A, TriggerType, FrontRearSwitchPosition, FunctionType, Range
from ._version import __version__
from .hp_3478a import HP_3478A, FrontRearSwitchPosition, FunctionType, Range, TriggerType

VERSION = __version__
Loading

0 comments on commit 2b6c7c1

Please sign in to comment.