diff --git a/.github/workflows/python-code-format.yml b/.github/workflows/python-code-format.yml index d83c2a2..062ccfc 100644 --- a/.github/workflows/python-code-format.yml +++ b/.github/workflows/python-code-format.yml @@ -37,13 +37,17 @@ jobs: if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - name: Analyzing the code with pylint run: | + python -m pylint --version python -m pylint ucapi - name: Lint with flake8 run: | + python -m flake8 --version python -m flake8 ucapi --count --show-source --statistics - name: Check code formatting with isort run: | + python -m isort --version python -m isort ucapi/. examples/. --check --verbose - name: Check code formatting with black run: | + python -m black --version python -m black ucapi examples --check --verbose diff --git a/ucapi/api_definitions.py b/ucapi/api_definitions.py index edb6187..b354772 100644 --- a/ucapi/api_definitions.py +++ b/ucapi/api_definitions.py @@ -4,6 +4,7 @@ :copyright: (c) 2023 by Unfolded Circle ApS. :license: MPL-2.0, see LICENSE for more details. """ + from dataclasses import dataclass from enum import Enum, IntEnum from typing import Any, Awaitable, Callable, TypeAlias