Skip to content

Commit 29e52e9

Browse files
refactor: ruff checks
1 parent 2387dfe commit 29e52e9

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,33 @@ jobs:
3636
steps:
3737
- name: Check out repository
3838
uses: actions/checkout@v4
39+
3940
- name: Set up python ${{ matrix.python-version }}
4041
id: setup-python
4142
uses: actions/setup-python@v5
4243
with:
4344
python-version: ${{ matrix.python-version }}
45+
4446
- name: Install Poetry
4547
uses: snok/install-poetry@v1
4648
with:
4749
virtualenvs-create: true
4850
virtualenvs-in-project: true
51+
4952
- name: Load cached venv
5053
id: cached-poetry-dependencies
5154
uses: actions/cache@v4
5255
with:
5356
path: .venv
5457
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
58+
5559
- name: Install dependencies
5660
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5761
run: poetry install --no-interaction --no-root
62+
5863
- name: Install library
5964
run: poetry install --no-interaction
65+
6066
- name: Run tests
6167
run: |
6268
source .venv/bin/activate

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,3 @@
9595
- code structure - (90d2678) - containerscrew
9696
- code and doc - (686cd5c) - containerscrew
9797
- documentation and code - (7c93213) - containerscrew
98-
99-

src/cloudsnake/cli/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from cloudsnake.logger import init_logger
99
from cloudsnake.tui import Tui
1010
from rich import traceback
11-
from rich.console import Console
1211

1312
traceback.install(show_locals=False)
1413

src/cloudsnake/cli/ssm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from typing import Optional
22
import typer
33

4-
from cloudsnake.cli.dto import OutputMode
54
from cloudsnake.sdk.ec2 import EC2InstanceWrapper
6-
from cloudsnake.sdk.ssm_parameter_store import SSMParameterStoreWrapper
75
from cloudsnake.sdk.ssm_session import SSMStartSessionWrapper
86

97
EC2_RUNNING_FILTER = "Name=instance-state-name,Values=running"

src/cloudsnake/sdk/ec2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import jmespath
4-
from typing import Any, Dict, List, Optional
4+
from typing import Any, Dict, Optional
55

66
from cloudsnake.helpers import parse_filters
77
from cloudsnake.sdk.aws import App

src/cloudsnake/tui.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import json
2-
import random
3-
41
from rich.console import Console
5-
from rich.table import Table
6-
from rich import print
72
from simple_term_menu import TerminalMenu
8-
from cloudsnake.helpers import serialize_datetime
93

104
"""
115
Color list

0 commit comments

Comments
 (0)