Skip to content

Commit f9743ad

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c13d165 commit f9743ad

File tree

17 files changed

+69
-42
lines changed

17 files changed

+69
-42
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
-- Project information -----------------------------------------------------
77
https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88
"""
9+
910
import os
1011
import sys
1112
from re import Match, match

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Pytest package for testing uoshardware."""
2+
23
from dataclasses import dataclass
34

45

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for package test configuration, scope=session."""
2+
23
import pytest
34

45
from uoshardware import Loading

tests/interface/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
"""Test Package for the low level interface backends."""
2+

tests/interface/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module used for fixture initialisation in interface tests."""
2+
23
import pytest
34

45

tests/interface/test_package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for testing the interface package."""
2+
23
from time import sleep
34

45
import pytest

tests/test_abstractions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for the `abstractions` module."""
2+
23
import pytest
34

45
from tests import Packet

tests/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for the api module."""
2+
23
from inspect import signature
34

45
import pytest

tests/test_devices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the devices module."""
2+
23
import pytest
34

45
from uoshardware import UOSUnsupportedError

uoshardware/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The high level interface for communicating with UOS devices."""
2+
23
import logging
34
from enum import Enum
45

@@ -29,19 +30,14 @@ class Loading(Enum):
2930
class UOSError(Exception):
3031
"""Base class exception for all UOS Interface Errors."""
3132

32-
3333
class UOSUnsupportedError(UOSError):
3434
"""Exception for attempting an unknown / unsupported action."""
3535

36-
3736
class UOSCommunicationError(UOSError):
3837
"""Exception while communicating with a UOS Device."""
3938

40-
4139
class UOSRuntimeError(UOSError):
4240
"""General exception for runtime failure, usually indicates misuse."""
43-
44-
4541
# Configures the global logger for the library
4642
# Note: Clients need to initialize logging otherwise no output will be visible.
4743
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)