From a2ca74fc086db4020824b6b00c869aeb7b998c01 Mon Sep 17 00:00:00 2001 From: Markus Zehnder Date: Mon, 26 Feb 2024 12:02:26 +0100 Subject: [PATCH] chore: yet another attempt fixing new linting issues --- .github/workflows/python-code-format.yml | 4 ++++ ucapi/api_definitions.py | 1 + 2 files changed, 5 insertions(+) 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