keep-github-workflows-active 2.0.0__tar.gz → 2.1.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 (70) hide show
  1. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.github/workflows/ci.yml +31 -21
  2. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.github/workflows/codeql.yml +1 -1
  3. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.github/workflows/release.yml +2 -2
  4. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.gitignore +1 -0
  5. keep_github_workflows_active-2.1.2/CHANGELOG.md +69 -0
  6. keep_github_workflows_active-2.0.0/AGENTS.md → keep_github_workflows_active-2.1.2/CLAUDE.md +29 -106
  7. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/Makefile +7 -1
  8. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/PKG-INFO +30 -12
  9. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/README.md +16 -0
  10. keep_github_workflows_active-2.1.2/docs/systemdesign/SECURITY.md +298 -0
  11. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/pyproject.toml +51 -11
  12. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/_utils.py +276 -89
  13. keep_github_workflows_active-2.1.2/scripts/clean.py +75 -0
  14. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/cli.py +20 -1
  15. keep_github_workflows_active-2.1.2/scripts/dependencies.py +590 -0
  16. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/menu.py +33 -19
  17. keep_github_workflows_active-2.1.2/scripts/push.py +309 -0
  18. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/release.py +3 -1
  19. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/target_metadata.py +32 -4
  20. keep_github_workflows_active-2.1.2/scripts/test.py +1004 -0
  21. keep_github_workflows_active-2.1.2/scripts/toml_config.py +433 -0
  22. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__init__conf__.py +8 -1
  23. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/cli.py +35 -14
  24. keep_github_workflows_active-2.1.2/src/keep_github_workflows_active/doctest.env +1 -0
  25. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/keep_github_workflow_active.py +291 -93
  26. keep_github_workflows_active-2.1.2/src/keep_github_workflows_active/py.typed +0 -0
  27. keep_github_workflows_active-2.1.2/src/keep_github_workflows_active/sanitization.py +379 -0
  28. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/conftest.py +28 -8
  29. keep_github_workflows_active-2.1.2/tests/test_sanitization.py +295 -0
  30. keep_github_workflows_active-2.0.0/CHANGELOG.md +0 -27
  31. keep_github_workflows_active-2.0.0/scripts/clean.py +0 -48
  32. keep_github_workflows_active-2.0.0/scripts/push.py +0 -77
  33. keep_github_workflows_active-2.0.0/scripts/test.py +0 -535
  34. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.devcontainer/devcontainer.json +0 -0
  35. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.devcontainer/settings.json +0 -0
  36. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.env.example +0 -0
  37. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.github/dependabot.yml +0 -0
  38. /keep_github_workflows_active-2.0.0/src/keep_github_workflows_active/py.typed → /keep_github_workflows_active-2.1.2/.github/workflows/do_not_change_ci_yml.md +0 -0
  39. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.qlty/qlty.toml +0 -0
  40. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/.snyk +0 -0
  41. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/CONTRIBUTING.md +0 -0
  42. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/DEVELOPMENT.md +0 -0
  43. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/INSTALL.md +0 -0
  44. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/LICENSE +0 -0
  45. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/codecov.yml +0 -0
  46. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/concept.md +0 -0
  47. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/docs/systemdesign/module_reference.md +0 -0
  48. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/notebooks/Quickstart.ipynb +0 -0
  49. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/reset_git_history.sh +0 -0
  50. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/__init__.py +0 -0
  51. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/__main__.py +0 -0
  52. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/build.py +0 -0
  53. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/bump.py +0 -0
  54. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/bump_major.py +0 -0
  55. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/bump_minor.py +0 -0
  56. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/bump_patch.py +0 -0
  57. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/bump_version.py +0 -0
  58. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/dev.py +0 -0
  59. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/help.py +0 -0
  60. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/install.py +0 -0
  61. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/run_cli.py +0 -0
  62. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/scripts/version_current.py +0 -0
  63. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__init__.py +0 -0
  64. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__main__.py +0 -0
  65. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/behaviors.py +0 -0
  66. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/test_behaviors.py +0 -0
  67. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/test_cli.py +0 -0
  68. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/test_metadata.py +0 -0
  69. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/test_module_entry.py +0 -0
  70. {keep_github_workflows_active-2.0.0 → keep_github_workflows_active-2.1.2}/tests/test_scripts.py +0 -0
@@ -5,11 +5,17 @@ on:
5
5
  branches: [ main, master ]
6
6
  pull_request:
7
7
  branches: [ main, master ]
8
+ schedule:
9
+ - cron: "0 7 * * 1"
8
10
 
9
11
  jobs:
10
12
  test:
11
13
  name: Tests (Python ${{ matrix.python }}, ${{ matrix.os }})
12
14
  runs-on: ${{ matrix.os }}
15
+ env:
16
+ SECRET_GITHUB_TOKEN: ${{ secrets.SECRET_GITHUB_TOKEN }}
17
+ SECRET_GITHUB_OWNER: ${{ secrets.SECRET_GITHUB_OWNER }}
18
+ PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
13
19
  strategy:
14
20
  fail-fast: false
15
21
  matrix:
@@ -17,10 +23,15 @@ jobs:
17
23
  # Test against the latest CPython 3.x release provided by Actions
18
24
  python: ["3.x"]
19
25
  steps:
20
- - uses: actions/checkout@v5
26
+ - uses: actions/checkout@v6
21
27
  - uses: actions/setup-python@v6
22
28
  with:
23
29
  python-version: ${{ matrix.python }}
30
+ cache: 'pip'
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@v7
33
+ with:
34
+ enable-cache: true
24
35
  - name: Extract project metadata
25
36
  shell: python
26
37
  run: |
@@ -46,14 +57,10 @@ jobs:
46
57
  sudo apt-get update
47
58
  sudo apt-get install -y python3-systemd
48
59
 
49
- - name: Upgrade pip
50
- shell: bash
51
- run: python -m pip install --upgrade pip
52
-
53
- - name: Install dev deps
60
+ - name: Install dev deps with uv
54
61
  shell: bash
55
62
  run: |
56
- pip install -e .[dev]
63
+ uv pip install --system -e .[dev]
57
64
 
58
65
  - name: Run full test suite (lint, types, tests, coverage, codecov)
59
66
  shell: bash
@@ -62,23 +69,24 @@ jobs:
62
69
  run: make test
63
70
  - name: Build wheel/sdist
64
71
  shell: bash
65
- run: python -m build
72
+ run: uv build
66
73
  - name: Verify wheel install in clean env
67
74
  shell: bash
68
75
  run: |
69
- python -m venv .venv_wheel
76
+ uv venv .venv_wheel
70
77
  . .venv_wheel/bin/activate 2>/dev/null || . .venv_wheel/Scripts/activate 2>/dev/null
71
- pip install dist/*.whl
78
+ uv pip install dist/*.whl
72
79
  "$CLI_BIN" --version 2>/dev/null || python -m "$PACKAGE_MODULE" --version
73
80
 
74
81
  pipx-uv:
75
82
  name: pipx/uv verification (ubuntu)
76
83
  runs-on: ubuntu-latest
77
84
  steps:
78
- - uses: actions/checkout@v5
85
+ - uses: actions/checkout@v6
79
86
  - uses: actions/setup-python@v6
80
87
  with:
81
88
  python-version: "3.13"
89
+ cache: 'pip'
82
90
  - name: Extract project metadata
83
91
  shell: python
84
92
  run: |
@@ -97,19 +105,17 @@ jobs:
97
105
  env.write(f"PROJECT_NAME={project}\n")
98
106
  env.write(f"PACKAGE_MODULE={module}\n")
99
107
  env.write(f"CLI_BIN={cli_bin}\n")
108
+ - name: Install uv
109
+ uses: astral-sh/setup-uv@v7
110
+ with:
111
+ enable-cache: true
100
112
  - name: Build wheel
101
- run: |
102
- python -m pip install --upgrade pip build
103
- python -m build
113
+ run: uv build
104
114
  - name: pipx install from wheel
105
115
  run: |
106
116
  python -m pip install pipx
107
117
  pipx install dist/*.whl
108
118
  "$CLI_BIN" --version 2>/dev/null || python -m "$PACKAGE_MODULE" --version
109
- - name: Install uv
110
- uses: astral-sh/setup-uv@v7
111
- with:
112
- enable-cache: true
113
119
  - name: uv tool install
114
120
  run: |
115
121
  uv tool install .
@@ -119,14 +125,18 @@ jobs:
119
125
  name: Execute notebooks (ubuntu, Python 3.13)
120
126
  runs-on: ubuntu-latest
121
127
  steps:
122
- - uses: actions/checkout@v5
128
+ - uses: actions/checkout@v6
123
129
  - uses: actions/setup-python@v6
124
130
  with:
125
131
  python-version: "3.13"
132
+ cache: 'pip'
133
+ - name: Install uv
134
+ uses: astral-sh/setup-uv@v7
135
+ with:
136
+ enable-cache: true
126
137
  - name: Install notebook runner deps
127
138
  run: |
128
- python -m pip install --upgrade pip
129
- pip install nbclient nbformat ipykernel jupyter_client
139
+ uv pip install --system nbclient nbformat ipykernel jupyter_client
130
140
  python -m ipykernel install --user --name python3 --display-name "Python 3"
131
141
  - name: Execute Quickstart notebook
132
142
  env:
@@ -23,7 +23,7 @@ jobs:
23
23
 
24
24
  steps:
25
25
  - name: Checkout repository
26
- uses: actions/checkout@v5
26
+ uses: actions/checkout@v6
27
27
 
28
28
  - name: Initialize CodeQL
29
29
  uses: github/codeql-action/init@v4
@@ -14,7 +14,7 @@ jobs:
14
14
  permissions:
15
15
  contents: read
16
16
  steps:
17
- - uses: actions/checkout@v5
17
+ - uses: actions/checkout@v6
18
18
  - name: Verify PyPI token is set
19
19
  run: |
20
20
  if [ -z "${{ secrets.PYPI_API_TOKEN }}" ]; then
@@ -37,7 +37,7 @@ jobs:
37
37
  attestations: false
38
38
  skip-existing: true
39
39
  - name: Upload artifacts
40
- uses: actions/upload-artifact@v4
40
+ uses: actions/upload-artifact@v6
41
41
  with:
42
42
  name: dist
43
43
  path: dist/*
@@ -178,3 +178,4 @@ result
178
178
  poetry.lock
179
179
  pdm.lock
180
180
  uv.lock
181
+ /.github.bak/
@@ -0,0 +1,69 @@
1
+ # Changelog
2
+
3
+ ## [2.1.2] - 2025-12-15
4
+
5
+ ### Changed
6
+ - Migrated scripts to use `rtoml` for TOML parsing
7
+
8
+ ### Dependencies
9
+ - Bumped `lib_cli_exit_tools` to `>=2.2.2`
10
+ - Bumped `ruff` to `>=0.14.9`
11
+ - Bumped `textual` to `>=6.9.0`
12
+ - Bumped `import-linter` to `>=2.9`
13
+ - Added `rtoml>=0.13.0` as dev dependency for improved TOML handling
14
+
15
+ ## [2.1.1] - 2025-12-08
16
+
17
+ ### Changed
18
+ - **Data Architecture Enforcement**: Refactored to follow strict Pydantic/Enum architecture rules.
19
+ - `EnvConfig` now uses `__getattr__` for typed attribute access instead of dict-style `.get()` method
20
+ - Added `PaginationLink` Pydantic model for typed pagination header handling
21
+ - Replaced dict key access (`response.links.get("next")`) with typed model access (`link.url`)
22
+ - Added `get_value()` method to `EnvConfig` for explicit key lookup
23
+
24
+ ### Dependencies
25
+ - Added `pydantic>=2.10.0` as a runtime dependency for typed data models
26
+
27
+ ### Documentation
28
+ - Updated `CLAUDE.md` with Data Architecture Rules section documenting:
29
+ - Core principles (Pydantic at boundaries, no internal dicts, Enums for constants)
30
+ - Key Pydantic models and Enums used in the project
31
+ - Framework exceptions where dict usage is required
32
+ - Fixed incorrect path reference in Versioning section (`lib_cli_exit_tools` → `keep_github_workflows_active`)
33
+
34
+ ## [2.1.0] - 2025-10-29
35
+ ### Security
36
+ - **Added comprehensive credential sanitization** to prevent token leakage in logs.
37
+ - New `sanitization` module with functions to redact sensitive data
38
+ - All logging calls now sanitize messages before output
39
+ - Protects GitHub tokens (ghp_*, gho_*, etc.), API keys, and authorization headers
40
+ - Token pattern detection using regex for various formats (hex, base64, GitHub-specific)
41
+ - Dictionary and nested structure sanitization for structured logging
42
+ - 100% test coverage with 31 dedicated tests
43
+ - Comprehensive security documentation in `docs/systemdesign/SECURITY.md`
44
+
45
+ ## [2.0.0] - 2025-10-23
46
+ ### Changed
47
+ - Removed pre-3.13 compatibility shims and migrated internal modules to native
48
+ Python 3.13 type syntax (e.g., ``list[str]`` and ``Sequence[str] | None``).
49
+ - Hardened GitHub token discovery by falling back to project ``.env`` files
50
+ when environment variables are unset.
51
+ - Surfaced workflow maintenance helpers as CLI commands
52
+ (``enable-all-workflows`` and ``delete-old-workflow-runs``) with optional
53
+ override parameters.
54
+ - Added explicit HTTP timeouts to GitHub workflow maintenance calls to avoid
55
+ hanging requests.
56
+ - Simplified CI matrix to run only on ``ubuntu-latest`` with the rolling
57
+ ``3.x`` CPython release.
58
+ - Updated CI packaging checks to execute the CLI from the pipx binary directory
59
+ and via ``uv tool install --from dist/*.whl`` to confirm the built wheel
60
+ exposes the console entry point correctly.
61
+ - Refined packaging verification to leverage the pipx binary directory and
62
+ install the local wheel via ``uv tool install --from dist/*.whl``.
63
+ - Corrected the CI pipeline to use the current ``astral-sh/setup-uv@v6`` action
64
+ tag.
65
+
66
+ ### Dependencies
67
+ - Bumped ``ruff`` to ``>=0.14.1`` and ``textual`` to ``>=6.4.0``.
68
+ - Declared ``requests`` as a runtime dependency to support GitHub API calls when
69
+ the package is installed.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## On session start
4
4
 
5
- - Read following files from directory /media/srv-main/softdev/*/projects/softwarestack/systemprompts and keep their guidance in working memory:
5
+ - Read following files from directory /media/srv-main-softdev/*/projects/softwarestack/systemprompts and keep their guidance in working memory:
6
6
  - core_programming_solid.md
7
7
  - bash_clean_architecture.md
8
8
  - bash_clean_code.md
@@ -48,8 +48,8 @@ when writing or refracturing Python scripts, apply those Rules :
48
48
  ### Versioning & Releases
49
49
 
50
50
  - Single source of truth for the package version is `pyproject.toml` (`[project].version`).
51
- - Runtime code reads metadata via `importlib.metadata`; do not duplicate the version in code files.
52
- - On a version bump, update only `pyproject.toml` and the `CHANGELOG.md` entry; do not edit `src/keep_github_workflows_active/__init__conf__.py` for versioning.
51
+ - Automation rewrites `src/keep_github_workflows_active/__init__conf__.py` from `pyproject.toml`, so runtime code imports generated constants instead of querying `importlib.metadata`.
52
+ - After updating project metadata (version, summary, URLs, authors) run `make test` (or `python -m scripts.test`) to regenerate the metadata module before committing.
53
53
  - Tag releases `vX.Y.Z` and push tags; CI will build artifacts and publish when configured.
54
54
 
55
55
  ### Common Make Targets (Alphabetical)
@@ -83,9 +83,35 @@ when writing or refracturing Python scripts, apply those Rules :
83
83
  ## Architecture Overview
84
84
  - apply python_clean_architecture.md
85
85
 
86
+ ## Data Architecture Rules
87
+
88
+ This project follows strict data architecture rules using Pydantic models and Enums:
89
+
90
+ ### Core Principles
91
+ 1. **Pydantic at Boundaries**: All external data (API requests, file reads, env vars) is parsed into Pydantic models immediately upon entry
92
+ 2. **Pydantic for Export**: All outputs use Pydantic's `.model_dump()` or `.model_dump_json()`
93
+ 3. **No Internal Dicts**: Inside the application, never use raw dicts for structured data - use typed models
94
+ 4. **Enums for Constants**: All string literals representing categories, statuses, or modes use Enums (prefer `IntEnum` for performance)
95
+ 5. **Minimize Conversions**: Ideal flow is ONE parse at input, ONE dump at output
96
+
97
+ ### Key Pydantic Models
98
+ - `GitHubRepository`, `GitHubWorkflow`, `GitHubWorkflowRun` - GitHub API responses
99
+ - `GitHubErrorResponse` - Error parsing with `from_response()` factory
100
+ - `PaginationLink` - Typed wrapper for pagination headers with `from_link_dict()` factory
101
+ - `EnvConfig` - Dynamic configuration with `__getattr__` for typed attribute access
102
+
103
+ ### Enums
104
+ - `SkippedWorkflowType` (IntEnum) - Workflow types to skip during enablement
105
+
106
+ ### Exceptions to Rules (Framework Requirements)
107
+ - `CLICK_CONTEXT_SETTINGS` dict - Required by Click framework API
108
+ - Pydantic `model_validator(mode="before")` returning dict - Required by Pydantic
109
+ - `sanitization.py` dict handling - Security utility designed for arbitrary dict sanitization
110
+
86
111
  ## Security & Configuration Tips
87
112
  - `.env` is only for local tooling (CodeCov tokens, etc.); do not commit secrets.
88
113
  - Rich logging should sanitize payloads before rendering once implemented.
114
+ - All logging calls use `sanitization.sanitize_message()` to prevent credential leakage.
89
115
 
90
116
  ## Translations (Docs)
91
117
 
@@ -102,106 +128,3 @@ when writing or refracturing Python scripts, apply those Rules :
102
128
  ## commit/push/GitHub policy
103
129
  - run "make test" before any push to avoid lint/test breakage.
104
130
  - after push, monitor errors in the github actions and try to correct the errors
105
-
106
- ---
107
-
108
- # ONLY ON USER REQEST !!!! :
109
-
110
- # 📘 Documentation Review & Enhancement Prompt
111
-
112
- You are a **senior software developer specializing in code documentation and system design clarity**. Your task is to review, correct, and enhance all documentation (external and inline) across the codebase with the following principles and workflow.
113
-
114
- ---
115
-
116
- ## **Principles**
117
-
118
- * Documentation should emphasize **WHY** and **WHAT**, not just **HOW**.
119
- * All docs must align with the system’s design-level documentation in `docs/systemdesign/*`.
120
- * Every module, function, dataclass, and constant should be documented with clear intent, expected use, and system relevance.
121
- * Documentation must be **authoritative, consistent, and actionable** for developers, maintainers, and system designers.
122
-
123
- ---
124
-
125
- ## **Workflow Checklist**
126
-
127
- ### **Step 1 – System Alignment**
128
-
129
- * [ ] For every feature, function, configuration, dataclass, and constant:
130
-
131
- * [ ] Verify alignment with `docs/systemdesign/*`.
132
- * [ ] Document it in `docs/systemdesign/module_reference.md` using the template in `systemprompts/self_documenting.md`.
133
- * [ ] Ensure consistent terminology and style with system docs.
134
-
135
- ---
136
-
137
- ### **Step 2 – Module-Level Documentation**
138
-
139
- * [ ] At the top of each module, create or update a **header block** that:
140
-
141
- * [ ] States the **purpose and intention** of the module.
142
- * [ ] Outlines its **contents** (functions, classes, constants).
143
- * [ ] Explains how it connects to the **overall system design**.
144
-
145
- ---
146
-
147
- ### **Step 3 – Function Documentation**
148
-
149
- For every function:
150
-
151
- * [ ] Document **Why** it exists (its role in the system).
152
- * [ ] Document **What** it does (conceptual description).
153
- * [ ] Document **Inputs** (parameters, types, ranges, meaning).
154
- * [ ] Document **Outputs** (return values, meaning, edge cases).
155
- * [ ] Document **Side Effects** (state changes, I/O, mutations).
156
- * [ ] Add or refine **doctests** that:
157
-
158
- * [ ] Demonstrate common use cases.
159
- * [ ] Cover edge cases.
160
- * [ ] Illustrate not just mechanics but **intent**.
161
-
162
- ---
163
-
164
- ### **Step 4 – Dataclasses & Structures**
165
-
166
- * [ ] For each dataclass:
167
-
168
- * [ ] Document each field’s **expected value and type**.
169
- * [ ] Explain **why the field exists**.
170
- * [ ] Describe how it interacts with other parts of the system.
171
-
172
- ---
173
-
174
- ### **Step 5 – Constants & Magic Numbers**
175
-
176
- * [ ] For each constant or magic number:
177
-
178
- * [ ] Explain **what it represents**.
179
- * [ ] Explain **why this value was chosen**.
180
- * [ ] Reference relevant standards, business rules, or domain logic.
181
- * [ ] Replace unexplained “magic numbers” with named constants if possible.
182
-
183
- ---
184
-
185
- ### **Step 6 – Corrections & Enhancements**
186
-
187
- * [ ] Remove or rewrite **obsolete documentation**.
188
- * [ ] Correct **inaccurate or unclear explanations**.
189
- * [ ] Fill in **missing documentation**.
190
- * [ ] Reframe overly technical notes to emphasize **intent and reasoning**.
191
-
192
- ---
193
-
194
- ## ✅ Definition of Done (DoD)
195
-
196
- Documentation is considered **complete and high quality** when:
197
-
198
- 1. **System Consistency**: Every documented element aligns with `docs/systemdesign/*` and is included in `docs/systemdesign/module_reference.md`.
199
- 2. **Module Headers**: Each module has a clear header block with purpose, contents, and system role.
200
- 3. **Function Docs**: Every function has complete, accurate, and intent-driven documentation, including doctests for clarity and correctness.
201
- 4. **Dataclass Docs**: Every dataclass field is fully described with expected type, purpose, and relevance.
202
- 5. **Constants**: Every constant or magic number has a clear explanation or has been replaced with a meaningful named constant.
203
- 6. **Corrections**: All obsolete, unclear, or incorrect docs have been fixed.
204
- 7. **Completeness**: No feature, function, configuration, dataclass, or constant is left undocumented.
205
- 8. **Clarity**: Documentation emphasizes **WHY** and **WHAT**, making the codebase understandable without digging into implementation details.
206
-
207
- ---
@@ -3,7 +3,7 @@ SHELL := /bin/bash
3
3
  PYTHON ?= python3
4
4
  SCRIPTS ?= $(PYTHON) -m scripts
5
5
 
6
- .PHONY: help install dev test run clean build push release coverage version-current bump bump-patch bump-minor bump-major menu
6
+ .PHONY: help install dev test run clean build push release coverage version-current bump bump-patch bump-minor bump-major dependencies dependencies-update menu
7
7
 
8
8
  help:
9
9
  $(SCRIPTS) help
@@ -50,5 +50,11 @@ build:
50
50
  release:
51
51
  $(SCRIPTS) release
52
52
 
53
+ dependencies:
54
+ $(SCRIPTS) dependencies
55
+
56
+ dependencies-update:
57
+ $(SCRIPTS) dependencies-update
58
+
53
59
  menu:
54
60
  $(SCRIPTS) menu
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keep_github_workflows_active
3
- Version: 2.0.0
3
+ Version: 2.1.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
@@ -16,20 +16,22 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Typing :: Typed
18
18
  Requires-Python: >=3.13
19
- Requires-Dist: lib-cli-exit-tools>=2.1.0
20
- Requires-Dist: requests>=2.32.3
21
- Requires-Dist: rich-click>=1.9.3
19
+ Requires-Dist: lib-cli-exit-tools>=2.2.2
20
+ Requires-Dist: pydantic>=2.12.5
21
+ Requires-Dist: requests>=2.32.5
22
+ Requires-Dist: rich-click>=1.9.4
22
23
  Provides-Extra: dev
23
- Requires-Dist: bandit>=1.8.6; extra == 'dev'
24
+ Requires-Dist: bandit>=1.9.2; extra == 'dev'
24
25
  Requires-Dist: build>=1.3.0; extra == 'dev'
25
- Requires-Dist: codecov-cli>=11.2.3; extra == 'dev'
26
- Requires-Dist: import-linter>=2.5.2; extra == 'dev'
27
- Requires-Dist: pip-audit>=2.9.0; extra == 'dev'
28
- Requires-Dist: pyright>=1.1.406; extra == 'dev'
26
+ Requires-Dist: codecov-cli>=11.2.6; extra == 'dev'
27
+ Requires-Dist: import-linter>=2.9; extra == 'dev'
28
+ Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
29
+ Requires-Dist: pyright>=1.1.407; extra == 'dev'
29
30
  Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
30
- Requires-Dist: pytest>=8.4.2; extra == 'dev'
31
- Requires-Dist: ruff>=0.14.1; extra == 'dev'
32
- Requires-Dist: textual>=6.4.0; extra == 'dev'
31
+ Requires-Dist: pytest>=9.0.2; extra == 'dev'
32
+ Requires-Dist: rtoml>=0.13.0; extra == 'dev'
33
+ Requires-Dist: ruff>=0.14.9; extra == 'dev'
34
+ Requires-Dist: textual>=6.9.0; extra == 'dev'
33
35
  Requires-Dist: twine>=6.2.0; extra == 'dev'
34
36
  Description-Content-Type: text/markdown
35
37
 
@@ -46,6 +48,9 @@ Description-Content-Type: text/markdown
46
48
  [![codecov](https://codecov.io/gh/bitranox/keep_github_workflows_active/graph/badge.svg?token=UFBaUDIgRk)](https://codecov.io/gh/bitranox/keep_github_workflows_active)
47
49
  [![Maintainability](https://qlty.sh/badges/041ba2c1-37d6-40bb-85a0-ec5a8a0aca0c/maintainability.svg)](https://qlty.sh/gh/bitranox/projects/keep_github_workflows_active)
48
50
  [![Known Vulnerabilities](https://snyk.io/test/github/bitranox/keep_github_workflows_active/badge.svg)](https://snyk.io/test/github/bitranox/keep_github_workflows_active)
51
+ [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
52
+
53
+ > **CI cadence:** The GitHub Actions CI workflow runs automatically every Monday at 07:00 UTC, in addition to push and pull request triggers.
49
54
 
50
55
 
51
56
  ## Overview
@@ -182,6 +187,18 @@ kgwa.print_info()
182
187
  ```
183
188
 
184
189
 
190
+ ## Security
191
+
192
+ All logging operations sanitize sensitive data before output to prevent credential
193
+ leakage. The automation redacts:
194
+
195
+ - GitHub personal access tokens (ghp_*, gho_*, etc.)
196
+ - Authorization headers and API keys
197
+ - Token-like patterns in error messages
198
+
199
+ For complete security documentation including incident response procedures, see
200
+ [SECURITY.md](docs/systemdesign/SECURITY.md).
201
+
185
202
  ## Further documentation
186
203
 
187
204
  - [Install Guide](INSTALL.md)
@@ -189,4 +206,5 @@ kgwa.print_info()
189
206
  - [Contributor Guide](CONTRIBUTING.md)
190
207
  - [Changelog](CHANGELOG.md)
191
208
  - [Module Reference](docs/systemdesign/module_reference.md)
209
+ - [Security Documentation](docs/systemdesign/SECURITY.md)
192
210
  - [License](LICENSE)
@@ -11,6 +11,9 @@
11
11
  [![codecov](https://codecov.io/gh/bitranox/keep_github_workflows_active/graph/badge.svg?token=UFBaUDIgRk)](https://codecov.io/gh/bitranox/keep_github_workflows_active)
12
12
  [![Maintainability](https://qlty.sh/badges/041ba2c1-37d6-40bb-85a0-ec5a8a0aca0c/maintainability.svg)](https://qlty.sh/gh/bitranox/projects/keep_github_workflows_active)
13
13
  [![Known Vulnerabilities](https://snyk.io/test/github/bitranox/keep_github_workflows_active/badge.svg)](https://snyk.io/test/github/bitranox/keep_github_workflows_active)
14
+ [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
15
+
16
+ > **CI cadence:** The GitHub Actions CI workflow runs automatically every Monday at 07:00 UTC, in addition to push and pull request triggers.
14
17
 
15
18
 
16
19
  ## Overview
@@ -147,6 +150,18 @@ kgwa.print_info()
147
150
  ```
148
151
 
149
152
 
153
+ ## Security
154
+
155
+ All logging operations sanitize sensitive data before output to prevent credential
156
+ leakage. The automation redacts:
157
+
158
+ - GitHub personal access tokens (ghp_*, gho_*, etc.)
159
+ - Authorization headers and API keys
160
+ - Token-like patterns in error messages
161
+
162
+ For complete security documentation including incident response procedures, see
163
+ [SECURITY.md](docs/systemdesign/SECURITY.md).
164
+
150
165
  ## Further documentation
151
166
 
152
167
  - [Install Guide](INSTALL.md)
@@ -154,4 +169,5 @@ kgwa.print_info()
154
169
  - [Contributor Guide](CONTRIBUTING.md)
155
170
  - [Changelog](CHANGELOG.md)
156
171
  - [Module Reference](docs/systemdesign/module_reference.md)
172
+ - [Security Documentation](docs/systemdesign/SECURITY.md)
157
173
  - [License](LICENSE)