feat: update default presets

This commit is contained in:
2026-09-15 17:21:23 +03:00
parent 06c3bc4e18
commit 5cf71fcae1
10 changed files with 58 additions and 18 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
import logging
from collections import Counter
from enum import StrEnum
from enum import StrEnum, auto
from pathlib import Path
from typing import Iterable
@@ -14,8 +14,8 @@ logger = logging.getLogger("project")
class ResultType(StrEnum):
SUCCESS = "success"
FAILED = "failed"
SUCCESS = auto()
FAILED = auto()
RESULT_ICONS = {
@@ -40,8 +40,8 @@ class ProjectManager:
counter = Counter()
for entry in self._iter_entries():
try:
if entry.run_task(key):
counter[ResultType.SUCCESS] += 1
if count := entry.run_task(key):
counter[ResultType.SUCCESS] += count
except CommandError as error:
self._logger.error("%s\n%s", entry, error.output)
counter[ResultType.FAILED] += 1