Skip to content

Commit

Permalink
Support taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
YuviGold committed Nov 12, 2024
1 parent 9ba49d1 commit e6f9179
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# https://github.com/python-poetry/poetry/issues/7343
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion build.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12
FROM python:3.13

RUN apt-get update && apt-get install -y --no-install-recommends shellcheck

Expand Down
1 change: 1 addition & 0 deletions mercado/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
GitHubTool("k9s", labels=(Label.K8S,), repository="derailed/k9s"),
GitHubTool("k8sgpt", labels=(Label.K8S,), repository="k8sgpt-ai/k8sgpt"),
GitHubTool("colima", labels=(Label.DOCKER,), repository="abiosoft/colima"),
GitHubTool("task", labels=(Label.BUILD,), repository="go-task/task"),
],
Hashicorp(): [
Tool("vagrant", labels=(Label.VIRT,)),
Expand Down
31 changes: 16 additions & 15 deletions mercado/vendors/vendor.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
from dataclasses import dataclass, field
from enum import Enum
from enum import StrEnum, auto
from pathlib import Path


class Label(Enum):
DOCS = "docs"
SECURITY = "security"
IAC = "iac"
VCS = "vcs"
VIRT = "virt"
CICD = "ci/cd"
STORAGE = "storage"
NETWORK = "network"
ORCHESTRATE = "orchestration"
CLOUD = "cloud"

DOCKER = "docker"
K8S = "k8s"
class Label(StrEnum):
DOCS = auto()
SECURITY = auto()
IAC = auto()
VCS = auto()
VIRT = auto()
CICD = auto()
STORAGE = auto()
NETWORK = auto()
ORCHESTRATE = auto()
CLOUD = auto()
BUILD = auto()

DOCKER = auto()
K8S = auto()


@dataclass(frozen=True)
Expand Down
88 changes: 30 additions & 58 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[project]
name = "mercado"
requires-python = ">=3.11"


[tool.poetry]
name = "mercado"
version = "0.2.1"
Expand All @@ -13,17 +18,17 @@ readme = "README.md"
keywords = ["cli", "devops", "automation"]

[tool.poetry.dependencies]
python = "^3.10"
python = ">=3.11"

humanize = "^4.11.0"
requests = "^2.32.3"
rich = "^13.9.2"
typer = "^0.12.5"
rich = "^13.9.4"
typer = "^0.13.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
cogapp = "^3.4.1"
ruff = "^0.6.9"
ruff = "^0.7.3"

[tool.poetry.scripts]
mercado = "mercado.cli:main"
Expand Down

0 comments on commit e6f9179

Please sign in to comment.