keep-github-workflows-active 2.3.0__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/workflows/default_cicd_public.yml +1 -1
  2. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.gitignore +2 -0
  3. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/CHANGELOG.md +14 -0
  4. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/Makefile +1 -1
  5. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/PKG-INFO +10 -10
  6. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/pyproject.toml +13 -10
  7. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/__init__conf__.py +1 -1
  8. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/cli.py +8 -7
  9. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/keep_github_workflow_active.py +5 -5
  10. keep_github_workflows_active-2.3.2/src/keep_github_workflows_active/typed_click.py +32 -0
  11. keep_github_workflows_active-2.3.0/CLAUDE.md +0 -129
  12. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.devcontainer/devcontainer.json +0 -0
  13. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.devcontainer/settings.json +0 -0
  14. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.env.example +0 -0
  15. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/actions/extract-metadata/action.yml +0 -0
  16. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/dependabot.yml +0 -0
  17. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/workflows/activate_workflows.yml +0 -0
  18. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/workflows/activate_workflows_priv.yml +0 -0
  19. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/workflows/codeql.yml +0 -0
  20. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.github/workflows/default_release_public.yml +0 -0
  21. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.qlty/qlty.toml +0 -0
  22. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/.snyk +0 -0
  23. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/CONTRIBUTING.md +0 -0
  24. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/DEVELOPMENT.md +0 -0
  25. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/INSTALL.md +0 -0
  26. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/LICENSE +0 -0
  27. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/README.md +0 -0
  28. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/codecov.yml +0 -0
  29. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/concept.md +0 -0
  30. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/docs/systemdesign/SECURITY.md +0 -0
  31. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/docs/systemdesign/module_reference.md +0 -0
  32. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/notebooks/Quickstart.ipynb +0 -0
  33. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/__init__.py +0 -0
  34. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/__main__.py +0 -0
  35. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/behaviors.py +0 -0
  36. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/doctest.env +0 -0
  37. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/py.typed +0 -0
  38. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/src/keep_github_workflows_active/sanitization.py +0 -0
  39. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/conftest.py +0 -0
  40. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_behaviors.py +0 -0
  41. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_cli.py +0 -0
  42. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_github_integration.py +0 -0
  43. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_metadata.py +0 -0
  44. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_module_entry.py +0 -0
  45. {keep_github_workflows_active-2.3.0 → keep_github_workflows_active-2.3.2}/tests/test_sanitization.py +0 -0
@@ -214,7 +214,7 @@ jobs:
214
214
  && steps.pytest.outcome == 'success'
215
215
  && matrix.os == 'ubuntu-latest'
216
216
  && matrix.python == needs.setup.outputs.python-latest
217
- uses: codecov/codecov-action@v6
217
+ uses: codecov/codecov-action@v7
218
218
  with:
219
219
  files: ${{ env.COV_REPORT_FILE }}
220
220
  fail_ci_if_error: false
@@ -179,3 +179,5 @@ poetry.lock
179
179
  pdm.lock
180
180
  uv.lock
181
181
  /.github.bak/
182
+ .claude/
183
+ CLAUDE.md
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.2] 2026-06-14
6
+
7
+ ### Changed
8
+ - Added a `typed_click.py` facade wrapping rich-click's `option` / `version_option` decorators behind explicit, fully-known signatures, keeping the CLI strict-clean under pyright 1.1.410 (`reportUnknownMemberType`) without disabling the rule (ignore isolated to the facade).
9
+ - Bumped `lib_cli_exit_tools` floor to `>=2.3.2`.
10
+
11
+ ## [2.3.1] - 2026-05-14
12
+
13
+ ### Fixed
14
+ - Annotated `headers` dicts in `keep_github_workflow_active.py` as `dict[str, str | bytes]` so pyright accepts them as `requests` `HeadersType` (which is `MutableMapping[str, str | bytes]` and invariant on the value type). Restores green CI under types-requests 2.34.
15
+
16
+ ### Security
17
+ - Refreshed pip-audit ignore list: removed resolved entries for gitpython (`CVE-2026-42215`, `CVE-2026-42284`, `CVE-2026-44244`) and python-multipart (`CVE-2026-42561`); kept the pip CVEs (`CVE-2026-3219`, `CVE-2026-6357`) since the CI runner still ships pip 26.0.1; added `CVE-2026-44405` (paramiko, no fix yet) and `CVE-2026-44431`/`CVE-2026-44432` (urllib3 2.6.3 in the local bmk toolchain, fixed in 2.7.0)
18
+
5
19
  ## [2.3.0] - 2026-05-03
6
20
 
7
21
  ### Added
@@ -1,4 +1,4 @@
1
- # BMK MAKEFILE 2.9.1
1
+ # BMK MAKEFILE 2.9.4
2
2
  # do not alter this file - it might be overwritten on new versions of BMK
3
3
  # if You want to alter it, remove the first line # BMK MAKEFILE 1.0 - then it is a custom makefile and will not be overwritten
4
4
  # bmk Makefile — thin wrapper using `uv tool install` for persistent bmk
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keep_github_workflows_active
3
- Version: 2.3.0
3
+ Version: 2.3.2
4
4
  Summary: Template for python apps with registered cli commands
5
5
  Project-URL: Homepage, https://github.com/bitranox/keep_github_workflows_active
6
6
  Project-URL: Repository, https://github.com/bitranox/keep_github_workflows_active.git
@@ -17,22 +17,22 @@ Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Typing :: Typed
19
19
  Requires-Python: >=3.10
20
- Requires-Dist: lib-cli-exit-tools>=2.3.1
21
- Requires-Dist: pydantic>=2.13.3
22
- Requires-Dist: requests>=2.33.1
23
- Requires-Dist: rich-click>=1.9.7
20
+ Requires-Dist: lib-cli-exit-tools>=2.3.2
21
+ Requires-Dist: pydantic>=2.13.4
22
+ Requires-Dist: requests>=2.34.2
23
+ Requires-Dist: rich-click>=1.9.8
24
24
  Provides-Extra: dev
25
25
  Requires-Dist: bandit>=1.9.4; extra == 'dev'
26
26
  Requires-Dist: build>=1.5.0; extra == 'dev'
27
27
  Requires-Dist: codecov-cli>=11.2.8; extra == 'dev'
28
28
  Requires-Dist: import-linter>=2.11; extra == 'dev'
29
- Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
30
- Requires-Dist: pyright[nodejs]>=1.1.409; extra == 'dev'
29
+ Requires-Dist: pip-audit>=2.10.1; extra == 'dev'
30
+ Requires-Dist: pyright[nodejs]>=1.1.410; extra == 'dev'
31
31
  Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
32
- Requires-Dist: pytest>=9.0.3; extra == 'dev'
32
+ Requires-Dist: pytest>=9.1.0; extra == 'dev'
33
33
  Requires-Dist: rtoml>=0.13.0; extra == 'dev'
34
- Requires-Dist: ruff>=0.15.12; extra == 'dev'
35
- Requires-Dist: textual>=8.2.5; extra == 'dev'
34
+ Requires-Dist: ruff>=0.15.17; extra == 'dev'
35
+ Requires-Dist: textual>=8.2.7; extra == 'dev'
36
36
  Requires-Dist: twine>=6.2.0; extra == 'dev'
37
37
  Description-Content-Type: text/markdown
38
38
 
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "keep_github_workflows_active"
3
- version = "2.3.0"
3
+ version = "2.3.2"
4
4
  description = "Template for python apps with registered cli commands"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
7
- dependencies = ["rich-click>=1.9.7", "lib_cli_exit_tools>=2.3.1", "requests>=2.33.1", "pydantic>=2.13.3"]
7
+ dependencies = ["rich-click>=1.9.8", "lib_cli_exit_tools>=2.3.2", "requests>=2.34.2", "pydantic>=2.13.4"]
8
8
  license = { text = "MIT" }
9
9
  authors = [{ name = "bitranox", email = "bitranox@gmail.com" }]
10
10
  keywords = ["logging", "rich", "cli", "terminal", "ansi"]
@@ -35,16 +35,16 @@ Issues = "https://github.com/bitranox/keep_github_workflows_active/issues"
35
35
 
36
36
  [project.optional-dependencies]
37
37
  dev = [
38
- "pytest>=9.0.3",
38
+ "pytest>=9.1.0",
39
39
  "pytest-cov>=7.1.0",
40
- "ruff>=0.15.12",
41
- "pyright[nodejs]>=1.1.409",
40
+ "ruff>=0.15.17",
41
+ "pyright[nodejs]>=1.1.410",
42
42
  "bandit>=1.9.4",
43
43
  "build>=1.5.0",
44
44
  "twine>=6.2.0",
45
45
  "codecov-cli>=11.2.8",
46
- "pip-audit>=2.10.0",
47
- "textual>=8.2.5",
46
+ "pip-audit>=2.10.1",
47
+ "textual>=8.2.7",
48
48
  "import-linter>=2.11",
49
49
  "rtoml>=0.13.0"
50
50
  ]
@@ -54,7 +54,7 @@ keep_github_workflows_active = "keep_github_workflows_active.cli:main"
54
54
  keep-github-workflows-active = "keep_github_workflows_active.cli:main"
55
55
 
56
56
  [build-system]
57
- requires = ["hatchling>=1.29.0"]
57
+ requires = ["hatchling>=1.30.1"]
58
58
  build-backend = "hatchling.build"
59
59
 
60
60
 
@@ -154,6 +154,9 @@ layers = [
154
154
 
155
155
  [tool.pip-audit]
156
156
  # Known vulnerabilities to ignore (unfixable or accepted risk)
157
- # CVE-2026-3219: pip 26.0.1 concatenated tar+ZIP confusion, no fix released yet
157
+ # CVE-2026-3219: pip 26.0.1 concatenated tar+ZIP confusion, no fix released yet (CI runner ships 26.0.1)
158
+ # CVE-2026-6357: pip 26.0.1 self-update wheel-import ordering, fix in 26.1 (CI runner ships 26.0.1)
158
159
  # PYSEC-2022-42969: py 1.11.0 ReDoS via crafted SVN info, no fix available
159
- ignore-vulns = ["CVE-2026-3219", "PYSEC-2022-42969"]
160
+ # CVE-2026-44405: paramiko 4.0.0 rsakey.py allows SHA-1 (local bmk toolchain dep, no fix released yet)
161
+ # CVE-2026-44431/CVE-2026-44432: urllib3 2.6.3 (local bmk toolchain dep, fix in 2.7.0)
162
+ ignore-vulns = ["CVE-2026-3219", "CVE-2026-6357", "PYSEC-2022-42969", "CVE-2026-44405", "CVE-2026-44431", "CVE-2026-44432"]
@@ -24,7 +24,7 @@ name = "keep_github_workflows_active"
24
24
  #: Human-readable summary shown in CLI help output.
25
25
  title = "Template for python apps with registered cli commands"
26
26
  #: Current release version pulled from ``pyproject.toml`` by automation.
27
- version = "2.3.0"
27
+ version = "2.3.2"
28
28
  #: Repository homepage presented to users.
29
29
  homepage = "https://github.com/bitranox/keep_github_workflows_active"
30
30
  #: Author attribution surfaced in CLI output.
@@ -44,6 +44,7 @@ from dataclasses import dataclass
44
44
  from typing import Final, NamedTuple
45
45
 
46
46
  import rich_click as click
47
+ from .typed_click import option, version_option
47
48
 
48
49
  import lib_cli_exit_tools
49
50
  from click.core import ParameterSource
@@ -397,12 +398,12 @@ def _run_cli_via_exit_tools(
397
398
  context_settings=CLICK_CONTEXT_SETTINGS,
398
399
  invoke_without_command=True,
399
400
  )
400
- @click.version_option(
401
+ @version_option(
401
402
  version=__init__conf__.version,
402
403
  prog_name=__init__conf__.shell_command,
403
404
  message=f"{__init__conf__.shell_command} version {__init__conf__.version}",
404
405
  )
405
- @click.option(
406
+ @option(
406
407
  "--traceback/--no-traceback",
407
408
  is_flag=True,
408
409
  default=False,
@@ -489,12 +490,12 @@ def cli_fail() -> None:
489
490
 
490
491
 
491
492
  @cli.command("enable-all-workflows", context_settings=CLICK_CONTEXT_SETTINGS)
492
- @click.option(
493
+ @option(
493
494
  "--owner",
494
495
  metavar="OWNER",
495
496
  help="GitHub username owning the repositories (defaults to environment/.env)",
496
497
  )
497
- @click.option(
498
+ @option(
498
499
  "--token",
499
500
  metavar="TOKEN",
500
501
  help="Fine-grained personal access token (defaults to environment/.env)",
@@ -508,17 +509,17 @@ def cli_enable_all_workflows(owner: str | None, token: str | None) -> None:
508
509
 
509
510
 
510
511
  @cli.command("delete-old-workflow-runs", context_settings=CLICK_CONTEXT_SETTINGS)
511
- @click.option(
512
+ @option(
512
513
  "--owner",
513
514
  metavar="OWNER",
514
515
  help="GitHub username owning the repositories (defaults to environment/.env)",
515
516
  )
516
- @click.option(
517
+ @option(
517
518
  "--token",
518
519
  metavar="TOKEN",
519
520
  help="Fine-grained personal access token (defaults to environment/.env)",
520
521
  )
521
- @click.option(
522
+ @option(
522
523
  "--keep",
523
524
  metavar="COUNT",
524
525
  type=int,
@@ -495,7 +495,7 @@ def get_repositories(owner: str, github_token: str) -> list[str]:
495
495
 
496
496
  """
497
497
  repositories: list[str] = []
498
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
498
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
499
499
 
500
500
  # Try the org endpoint first (returns private repos too), fall back to user endpoint.
501
501
  org_url = f"https://api.github.com/orgs/{owner}/repos?per_page=100"
@@ -556,7 +556,7 @@ def get_workflows(owner: str, repository: str, github_token: str) -> list[str]:
556
556
  """
557
557
  workflows: list[str] = []
558
558
  url: str | None = f"https://api.github.com/repos/{owner}/{repository}/actions/workflows?per_page=100"
559
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
559
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
560
560
 
561
561
  while url:
562
562
  try:
@@ -599,7 +599,7 @@ def get_workflow_runs(owner: str, repository: str, github_token: str) -> list[in
599
599
 
600
600
  """
601
601
  url: str | None = f"https://api.github.com/repos/{owner}/{repository}/actions/runs?per_page=100"
602
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
602
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
603
603
 
604
604
  workflow_run_ids: list[int] = []
605
605
  while url:
@@ -635,7 +635,7 @@ def delete_workflow_run(owner: str, repository: str, github_token: str, run_id_t
635
635
  :return: None
636
636
  """
637
637
  url = f"https://api.github.com/repos/{owner}/{repository}/actions/runs/{run_id_to_delete}"
638
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
638
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
639
639
 
640
640
  try:
641
641
  response = requests.delete(url, headers=headers, timeout=REQUEST_TIMEOUT_SECONDS)
@@ -690,7 +690,7 @@ def enable_workflow(owner: str, repository: str, workflow_filename: str, github_
690
690
 
691
691
  """
692
692
  url = f"https://api.github.com/repos/{owner}/{repository}/actions/workflows/{workflow_filename}/enable"
693
- headers = {"Accept": "application/vnd.github.v3+json", "Authorization": f"Bearer {github_token}"}
693
+ headers: dict[str, str | bytes] = {"Accept": "application/vnd.github.v3+json", "Authorization": f"Bearer {github_token}"}
694
694
 
695
695
  response: requests.Response | None = None
696
696
  try:
@@ -0,0 +1,32 @@
1
+ """Strictly-typed wrappers for rich_click decorators with partially-unknown types.
2
+
3
+ rich_click ships ``py.typed`` but re-exports click's decorators, whose
4
+ ``ParamType[Unknown]`` parameters make pyright (strict mode) report
5
+ ``reportUnknownMemberType`` at every call site. Wrapping the affected decorators
6
+ here behind explicit, fully-known signatures keeps the rest of the code
7
+ strict-clean without disabling the rule. This module is the single boundary that
8
+ touches the untyped surface, so the only ``# pyright: ignore`` for this gap lives here.
9
+
10
+ Other click members (``command``, ``group``, ``Path`` …) type cleanly and are
11
+ still used directly as ``click.X`` at call sites.
12
+ """
13
+
14
+ from collections.abc import Callable
15
+ from typing import Any
16
+
17
+ import rich_click as click
18
+
19
+ _CommandDecorator = Callable[[Callable[..., Any]], Callable[..., Any]]
20
+
21
+
22
+ def option(*param_decls: str, **attrs: Any) -> _CommandDecorator:
23
+ """Typed wrapper over :func:`rich_click.option`. See module docstring."""
24
+ return click.option(*param_decls, **attrs) # pyright: ignore[reportUnknownMemberType]
25
+
26
+
27
+ def version_option(*param_decls: str, **attrs: Any) -> _CommandDecorator:
28
+ """Typed wrapper over :func:`rich_click.version_option`. See module docstring."""
29
+ return click.version_option(*param_decls, **attrs) # pyright: ignore[reportUnknownMemberType]
30
+
31
+
32
+ __all__ = ["option", "version_option"]
@@ -1,129 +0,0 @@
1
- # Repository Guidelines
2
-
3
- ## On session start
4
-
5
- - Read following files from directory /media/srv-main-softdev/*/projects/softwarestack/systemprompts and keep their guidance in working memory:
6
- - core_programming_solid.md
7
- - use skill `bx-bash-clean-architecture`
8
- - bash_clean_code.md
9
- - bash_small_functions.md
10
- - python_solid_architecture_enforcer.md
11
- - python_clean_code.md
12
- - python_small_functions_style.md
13
- - use skill `bx-python-libraries-to-use`
14
- - python_structure_template.md
15
- - self_documenting.md
16
- - self_documenting_template.md
17
- - python_jupyter_notebooks.md
18
- - python_testing.md
19
-
20
- always apply those Rules :
21
-
22
- - core_programming_solid.md
23
-
24
- when writing or refracturing Bash scripts, apply those Rules :
25
-
26
- - core_programming_solid.md
27
- - use skill `bx-bash-clean-architecture`
28
- - bash_clean_code.md
29
- - bash_small_functions.md
30
-
31
- when writing or refracturing Python scripts, apply those Rules :
32
- - core_programming_solid.md
33
- - python_solid_architecture_enforcer.md
34
- - use skill `bx-python-clean-architecture`
35
- - python_clean_code.md
36
- - python_small_functions_style.md
37
- - use skill `bx-python-libraries-to-use`
38
- - python_lib_structure_template.md
39
-
40
- ## Project Structure & Module Organization
41
-
42
- - `src/keep_github_workflows_active/`: Python package
43
- - `scripts/`: shared automation
44
- - `tests/`: test suite
45
-
46
-
47
- ### Versioning & Releases
48
-
49
- - Single source of truth for the package version is `pyproject.toml` (`[project].version`).
50
- - Automation rewrites `src/keep_github_workflows_active/__init__conf__.py` from `pyproject.toml`, so runtime code imports generated constants instead of querying `importlib.metadata`.
51
- - After updating project metadata (version, summary, URLs, authors) run `make test` (or `python -m scripts.test`) to regenerate the metadata module before committing.
52
- - Tag releases `vX.Y.Z` and push tags; CI will build artifacts and publish when configured.
53
-
54
- ### Common Make Targets (Alphabetical)
55
-
56
-
57
- | Target | One-line description |
58
- |-------------------|--------------------------------------------------------------------------------|
59
- | `build` | Build wheel/sdist artifacts. |
60
- | `bump` | Bump version (VERSION=X.Y.Z or PART=major\|minor\|patch) and update changelog. |
61
- | `bump-major` | Increment major version ((X+1).0.0). |
62
- | `bump-minor` | Increment minor version (X.Y.Z → X.(Y+1).0). |
63
- | `bump-patch` | Increment patch version (X.Y.Z → X.Y.(Z+1)). |
64
- | `clean` | Remove caches, coverage, and build artifacts (includes `dist/` and `build/`). |
65
- | `dev` | Install package with dev extras. |
66
- | `help` | Show this table. |
67
- | `install` | Editable install. |
68
- | `menu` | Interactive TUI menu (make menu). |
69
- | `push` | Commit changes once and push to GitHub (no CI monitoring). |
70
- | `release` | Tag vX.Y.Z, push, sync packaging, run gh release if available. |
71
- | `run` | Run module entry (`python -m ... --help`). |
72
- | `test` | Lint, format, type-check, run tests with coverage, upload to Codecov. |
73
- | `version-current` | Print current version from `pyproject.toml`. |
74
-
75
-
76
- ## Coding Style & Naming Conventions
77
- - apply python_clean_code.md
78
-
79
-
80
- ## Commit & Pull Request Guidelines
81
-
82
- ## Architecture Overview
83
- - use skill `bx-python-clean-architecture`
84
-
85
- ## Data Architecture Rules
86
-
87
- This project follows strict data architecture rules using Pydantic models and Enums:
88
-
89
- ### Core Principles
90
- 1. **Pydantic at Boundaries**: All external data (API requests, file reads, env vars) is parsed into Pydantic models immediately upon entry
91
- 2. **Pydantic for Export**: All outputs use Pydantic's `.model_dump()` or `.model_dump_json()`
92
- 3. **No Internal Dicts**: Inside the application, never use raw dicts for structured data - use typed models
93
- 4. **Enums for Constants**: All string literals representing categories, statuses, or modes use Enums (prefer `IntEnum` for performance)
94
- 5. **Minimize Conversions**: Ideal flow is ONE parse at input, ONE dump at output
95
-
96
- ### Key Pydantic Models
97
- - `GitHubRepository`, `GitHubWorkflow`, `GitHubWorkflowRun` - GitHub API responses
98
- - `GitHubErrorResponse` - Error parsing with `from_response()` factory
99
- - `PaginationLink` - Typed wrapper for pagination headers with `from_link_dict()` factory
100
- - `EnvConfig` - Dynamic configuration with `__getattr__` for typed attribute access
101
-
102
- ### Enums
103
- - `SkippedWorkflowType` (IntEnum) - Workflow types to skip during enablement
104
-
105
- ### Exceptions to Rules (Framework Requirements)
106
- - `CLICK_CONTEXT_SETTINGS` dict - Required by Click framework API
107
- - Pydantic `model_validator(mode="before")` returning dict - Required by Pydantic
108
- - `sanitization.py` dict handling - Security utility designed for arbitrary dict sanitization
109
-
110
- ## Security & Configuration Tips
111
- - `.env` is only for local tooling (CodeCov tokens, etc.); do not commit secrets.
112
- - Rich logging should sanitize payloads before rendering once implemented.
113
- - All logging calls use `sanitization.sanitize_message()` to prevent credential leakage.
114
-
115
- ## Translations (Docs)
116
-
117
- ## Translations (App UI Strings)
118
-
119
- ## Changes in WEB Documentation
120
- - when asked to update documentation - only do that in the english docs under /website/docs because other languages will be translated automatically,
121
- unless stated otherwise by the user. In doubt - ask the user
122
-
123
- ## Changes in APP Strings
124
- - when i18 strings are changed, only to that in sources/\_locales/en because other languages will be translated automatically,
125
- unless stated otherwise by the user. In doubt - ask the user
126
-
127
- ## commit/push/GitHub policy
128
- - run "make test" before any push to avoid lint/test breakage.
129
- - after push, monitor errors in the github actions and try to correct the errors