Skip to content

Commit 9ce3ed2

Browse files
committed
chore: update mypy / types
1 parent 9d726f0 commit 9ce3ed2

5 files changed

Lines changed: 584 additions & 500 deletions

File tree

gitops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Any
55

66
from colorama import Fore
7-
from invoke import run, task # type: ignore[attr-defined]
7+
from invoke import run, task
88

99
from .settings import get_apps_directory
1010
from .utils import config

gitops/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
from invoke import Collection, Program, Task # type: ignore[attr-defined]
3+
from invoke import Collection, Program, Task
44

55
from . import __version__, core, shorthands
66

gitops/shorthands.py

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

4-
from invoke import task # type: ignore[attr-defined]
4+
from invoke import task
55

66
from .core import command
77
from .utils.apps import get_app_details
@@ -51,7 +51,7 @@ def mcommand(
5151
)
5252

5353

54-
@task(aliases=["sp"])
54+
@task(aliases=("sp",))
5555
def shell_plus(ctx: Any, app: str, cleanup: bool = True, cpu: int = 0, memory: int = 0) -> None:
5656
"""Brings up shell_plus for selected app.
5757

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ dev-dependencies = [
4141
"pytest>=8.3.2",
4242
"ruff>=0.6.3",
4343
"types-colorama>=0.4.15.20240311",
44-
"mypy>=1.11.2",
44+
"mypy>=1.15",
4545
"types-pyyaml>=6.0.12.20240808",
4646
"types-tabulate>=0.9.0.20240106",
4747
"boto3-stubs>=1.35.11",
4848
"pytest-asyncio>=0.24.0",
49+
"types-invoke>=2.0.0.10",
4950
]
5051

5152

@@ -62,3 +63,4 @@ cache = "never"
6263

6364
[tool.mypy]
6465
exclude = ["tests"]
66+
strict = true

0 commit comments

Comments
 (0)