From 9461c32dd806e9427a68cb21a9889521816f871a Mon Sep 17 00:00:00 2001 From: Vlad Emelianov Date: Thu, 25 Apr 2024 17:03:58 +0300 Subject: [PATCH] Fix integration sanity check --- .github/workflows/aio_integration.yml | 2 +- .github/workflows/integration.yml | 2 +- scripts/check_output.py | 3 ++- scripts/integration.py | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aio_integration.yml b/.github/workflows/aio_integration.yml index b937cde2..43dfa9e8 100644 --- a/.github/workflows/aio_integration.yml +++ b/.github/workflows/aio_integration.yml @@ -71,7 +71,7 @@ jobs: - name: Install dependencies run: | poetry install -n - poetry run pip install -U aioboto3 boto3-stubs types-aiobotocore types-aioboto3 + poetry run pip install -U mypy ruff aioboto3 boto3-stubs types-aiobotocore types-aioboto3 poetry install -n - name: Install Node.js dependencies run: | diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e680813a..6fcb2c65 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -67,7 +67,7 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install mypy flake8 boto3 botocore botocore-stubs boto3-stubs-lite types-requests + python -m pip install mypy ruff boto3 botocore botocore-stubs boto3-stubs-lite types-requests - name: Install Node.js dependencies run: | npm install -g pyright diff --git a/scripts/check_output.py b/scripts/check_output.py index 1fe132bf..4dca8cd1 100755 --- a/scripts/check_output.py +++ b/scripts/check_output.py @@ -90,7 +90,7 @@ def setup_logging(level: int) -> logging.Logger: return logger -@dataclass(kw_only=True, slots=True) +@dataclass class CLINamespace: """ CLI namespace. @@ -142,6 +142,7 @@ def run_ruff(path: Path) -> None: "E501", "N802", "N803", + "N812", ] with tempfile.NamedTemporaryFile("w+b") as f: try: diff --git a/scripts/integration.py b/scripts/integration.py index e330822b..d1e20b5c 100755 --- a/scripts/integration.py +++ b/scripts/integration.py @@ -2,6 +2,7 @@ """ Integration tests. """ + import argparse import difflib import enum @@ -60,7 +61,7 @@ def setup_logging(level: int) -> logging.Logger: return logger -@dataclass(kw_only=True, slots=True) +@dataclass class CLINamespace: """ CLI namespace.