keep-github-workflows-active 2.1.3__tar.gz → 2.1.5__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.
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/actions/extract-metadata/action.yml +8 -7
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/workflows/activate_workflows.yml +26 -1
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/workflows/default_cicd_public.yml +50 -19
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/workflows/default_release_public.yml +2 -2
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/CHANGELOG.md +29 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/CLAUDE.md +6 -7
- keep_github_workflows_active-2.1.5/Makefile +260 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/PKG-INFO +12 -11
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/README.md +1 -1
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/pyproject.toml +15 -12
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/__init__conf__.py +1 -1
- keep_github_workflows_active-2.1.3/Makefile +0 -60
- keep_github_workflows_active-2.1.3/reset_git_history.sh +0 -54
- keep_github_workflows_active-2.1.3/scripts/__init__.py +0 -3
- keep_github_workflows_active-2.1.3/scripts/__main__.py +0 -7
- keep_github_workflows_active-2.1.3/scripts/_utils.py +0 -768
- keep_github_workflows_active-2.1.3/scripts/build.py +0 -52
- keep_github_workflows_active-2.1.3/scripts/bump.py +0 -32
- keep_github_workflows_active-2.1.3/scripts/bump_major.py +0 -20
- keep_github_workflows_active-2.1.3/scripts/bump_minor.py +0 -20
- keep_github_workflows_active-2.1.3/scripts/bump_patch.py +0 -20
- keep_github_workflows_active-2.1.3/scripts/bump_version.py +0 -80
- keep_github_workflows_active-2.1.3/scripts/clean.py +0 -75
- keep_github_workflows_active-2.1.3/scripts/cli.py +0 -232
- keep_github_workflows_active-2.1.3/scripts/dependencies.py +0 -590
- keep_github_workflows_active-2.1.3/scripts/dev.py +0 -19
- keep_github_workflows_active-2.1.3/scripts/help.py +0 -41
- keep_github_workflows_active-2.1.3/scripts/install.py +0 -19
- keep_github_workflows_active-2.1.3/scripts/menu.py +0 -582
- keep_github_workflows_active-2.1.3/scripts/push.py +0 -309
- keep_github_workflows_active-2.1.3/scripts/release.py +0 -92
- keep_github_workflows_active-2.1.3/scripts/run_cli.py +0 -154
- keep_github_workflows_active-2.1.3/scripts/target_metadata.py +0 -202
- keep_github_workflows_active-2.1.3/scripts/test.py +0 -1004
- keep_github_workflows_active-2.1.3/scripts/toml_config.py +0 -433
- keep_github_workflows_active-2.1.3/scripts/version_current.py +0 -20
- keep_github_workflows_active-2.1.3/tests/test_scripts.py +0 -266
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.devcontainer/devcontainer.json +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.devcontainer/settings.json +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.env.example +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/dependabot.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.github/workflows/codeql.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.gitignore +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.qlty/qlty.toml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/.snyk +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/CONTRIBUTING.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/DEVELOPMENT.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/INSTALL.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/LICENSE +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/codecov.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/concept.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/docs/systemdesign/SECURITY.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/docs/systemdesign/module_reference.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/notebooks/Quickstart.ipynb +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/__init__.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/__main__.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/behaviors.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/cli.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/doctest.env +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/keep_github_workflow_active.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/py.typed +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/src/keep_github_workflows_active/sanitization.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/conftest.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_behaviors.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_cli.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_github_integration.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_metadata.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_module_entry.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.5}/tests/test_sanitization.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
name: Extract project metadata
|
|
2
2
|
description: >-
|
|
3
3
|
Parse pyproject.toml and expose project metadata as step outputs.
|
|
4
|
-
Requires Python
|
|
5
|
-
|
|
4
|
+
Requires Python to be available in the runner environment.
|
|
5
|
+
Auto-installs rtoml if not already present.
|
|
6
6
|
|
|
7
7
|
outputs:
|
|
8
8
|
PACKAGE_MODULE:
|
|
@@ -37,14 +37,15 @@ runs:
|
|
|
37
37
|
id: meta
|
|
38
38
|
shell: python
|
|
39
39
|
run: |
|
|
40
|
-
import os
|
|
40
|
+
import os, subprocess, sys
|
|
41
41
|
try:
|
|
42
|
-
import
|
|
42
|
+
import rtoml
|
|
43
43
|
except ModuleNotFoundError:
|
|
44
|
-
|
|
44
|
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "rtoml", "-q"])
|
|
45
|
+
import rtoml
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
from pathlib import Path
|
|
48
|
+
data = rtoml.load(Path('pyproject.toml'))
|
|
48
49
|
|
|
49
50
|
# --- [project] section ---
|
|
50
51
|
project = data['project']['name']
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Activate Workflows
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -78,6 +78,31 @@ jobs:
|
|
|
78
78
|
uv pip install dist/*.whl
|
|
79
79
|
"$CLI_BIN" --version 2>/dev/null || python -m "$PACKAGE_MODULE" --version
|
|
80
80
|
|
|
81
|
+
activate:
|
|
82
|
+
name: Enable workflows & delete old runs
|
|
83
|
+
needs: test
|
|
84
|
+
if: github.event_name == 'schedule'
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
env:
|
|
87
|
+
SECRET_GITHUB_TOKEN: ${{ secrets.SECRET_GITHUB_TOKEN }}
|
|
88
|
+
SECRET_GITHUB_OWNER: ${{ secrets.SECRET_GITHUB_OWNER }}
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/checkout@v6
|
|
91
|
+
- uses: actions/setup-python@v6
|
|
92
|
+
with:
|
|
93
|
+
python-version: "3.x"
|
|
94
|
+
cache: 'pip'
|
|
95
|
+
- name: Install uv
|
|
96
|
+
uses: astral-sh/setup-uv@v7
|
|
97
|
+
with:
|
|
98
|
+
enable-cache: true
|
|
99
|
+
- name: Install package
|
|
100
|
+
run: uv pip install --system -e .
|
|
101
|
+
- name: Enable all workflows
|
|
102
|
+
run: keep-github-workflows-active enable-all-workflows
|
|
103
|
+
- name: Delete old workflow runs
|
|
104
|
+
run: keep-github-workflows-active delete-old-workflow-runs
|
|
105
|
+
|
|
81
106
|
pipx-uv:
|
|
82
107
|
name: pipx/uv verification (ubuntu)
|
|
83
108
|
runs-on: ubuntu-latest
|
|
@@ -10,19 +10,52 @@ on:
|
|
|
10
10
|
- cron: '17 3 * * *'
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
|
+
setup:
|
|
14
|
+
name: Extract Python versions from pyproject.toml
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
outputs:
|
|
17
|
+
python-versions: ${{ steps.versions.outputs.python-versions }}
|
|
18
|
+
python-latest: ${{ steps.versions.outputs.python-latest }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
- uses: actions/setup-python@v6
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.x"
|
|
24
|
+
- name: Parse classifiers for Python versions
|
|
25
|
+
id: versions
|
|
26
|
+
shell: python
|
|
27
|
+
run: |
|
|
28
|
+
import json, os, tomllib
|
|
29
|
+
|
|
30
|
+
with open("pyproject.toml", "rb") as f:
|
|
31
|
+
data = tomllib.load(f)
|
|
32
|
+
classifiers = data.get("project", {}).get("classifiers", [])
|
|
33
|
+
prefix = "Programming Language :: Python :: "
|
|
34
|
+
versions = [
|
|
35
|
+
c[len(prefix):]
|
|
36
|
+
for c in classifiers
|
|
37
|
+
if c.startswith(prefix) and "." in c[len(prefix):]
|
|
38
|
+
]
|
|
39
|
+
if not versions:
|
|
40
|
+
raise SystemExit("No Python X.Y versions found in classifiers")
|
|
41
|
+
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
|
|
42
|
+
fh.write(f"python-versions={json.dumps(versions)}\n")
|
|
43
|
+
fh.write(f"python-latest={versions[-1]}\n")
|
|
44
|
+
|
|
13
45
|
test:
|
|
14
46
|
name: Tests (Python ${{ matrix.python }}, ${{ matrix.os }})
|
|
47
|
+
needs: setup
|
|
15
48
|
runs-on: ${{ matrix.os }}
|
|
16
49
|
strategy:
|
|
17
50
|
fail-fast: false
|
|
18
51
|
matrix:
|
|
19
52
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
20
|
-
|
|
21
|
-
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
53
|
+
python: ${{ fromJSON(needs.setup.outputs.python-versions) }}
|
|
22
54
|
env:
|
|
23
55
|
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
|
|
24
56
|
PYTHONIOENCODING: "utf-8"
|
|
25
57
|
UV_LINK_MODE: "copy"
|
|
58
|
+
UV_BREAK_SYSTEM_PACKAGES: "1"
|
|
26
59
|
steps:
|
|
27
60
|
- uses: actions/checkout@v6
|
|
28
61
|
- uses: actions/setup-python@v6
|
|
@@ -34,9 +67,11 @@ jobs:
|
|
|
34
67
|
enable-cache: true
|
|
35
68
|
prune-cache: false
|
|
36
69
|
|
|
37
|
-
- name: Install
|
|
38
|
-
|
|
39
|
-
run:
|
|
70
|
+
- name: Install bash 4+ on macOS
|
|
71
|
+
if: runner.os == 'macOS'
|
|
72
|
+
run: |
|
|
73
|
+
brew install bash
|
|
74
|
+
echo "$(brew --prefix)/bin" >> "$GITHUB_PATH"
|
|
40
75
|
|
|
41
76
|
- name: Extract project metadata
|
|
42
77
|
id: metadata
|
|
@@ -60,7 +95,10 @@ jobs:
|
|
|
60
95
|
run: |
|
|
61
96
|
uv pip install pywin32 --system
|
|
62
97
|
|
|
98
|
+
# Self-hosted runners persist ruff cache via RUFF_CACHE_DIR volume mount,
|
|
99
|
+
# so actions/cache is only needed on GitHub-hosted runners.
|
|
63
100
|
- name: Restore ruff cache
|
|
101
|
+
if: runner.environment == 'github-hosted'
|
|
64
102
|
id: ruff-cache
|
|
65
103
|
uses: actions/cache/restore@v5
|
|
66
104
|
with:
|
|
@@ -94,7 +132,7 @@ jobs:
|
|
|
94
132
|
# and stale journal files cause "database is locked" errors.
|
|
95
133
|
COVERAGE_FILE: "${{ runner.temp }}/.coverage"
|
|
96
134
|
run: >-
|
|
97
|
-
|
|
135
|
+
pytest -m "not local_only"
|
|
98
136
|
--cov=${{ env.SRC_PATH }}/${{ env.PACKAGE_MODULE }}
|
|
99
137
|
--cov-report=term-missing
|
|
100
138
|
--cov-report=xml:${{ env.COV_REPORT_FILE }}
|
|
@@ -106,7 +144,7 @@ jobs:
|
|
|
106
144
|
always()
|
|
107
145
|
&& steps.pytest.outcome == 'success'
|
|
108
146
|
&& matrix.os == 'ubuntu-latest'
|
|
109
|
-
&& matrix.python ==
|
|
147
|
+
&& matrix.python == needs.setup.outputs.python-latest
|
|
110
148
|
uses: codecov/codecov-action@v5
|
|
111
149
|
with:
|
|
112
150
|
files: ${{ env.COV_REPORT_FILE }}
|
|
@@ -122,7 +160,7 @@ jobs:
|
|
|
122
160
|
id: bandit
|
|
123
161
|
continue-on-error: true
|
|
124
162
|
shell: bash
|
|
125
|
-
run: bandit -q -r ${{ env.SRC_PATH }}/${{ env.PACKAGE_MODULE }} ${{ env.BANDIT_SKIP_FLAG }}
|
|
163
|
+
run: bandit -q -c pyproject.toml -r ${{ env.SRC_PATH }}/${{ env.PACKAGE_MODULE }} ${{ env.BANDIT_SKIP_FLAG }}
|
|
126
164
|
|
|
127
165
|
- name: Run pip-audit (vulnerability scan)
|
|
128
166
|
id: pipaudit
|
|
@@ -130,12 +168,9 @@ jobs:
|
|
|
130
168
|
shell: python
|
|
131
169
|
run: |
|
|
132
170
|
import subprocess, sys
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
import tomli as tomllib
|
|
137
|
-
with open("pyproject.toml", "rb") as f:
|
|
138
|
-
data = tomllib.load(f)
|
|
171
|
+
import rtoml
|
|
172
|
+
from pathlib import Path
|
|
173
|
+
data = rtoml.load(Path("pyproject.toml"))
|
|
139
174
|
vulns = data.get("tool", {}).get("pip-audit", {}).get("ignore-vulns", [])
|
|
140
175
|
cmd = ["pip-audit", "--skip-editable"]
|
|
141
176
|
for v in vulns:
|
|
@@ -189,7 +224,7 @@ jobs:
|
|
|
189
224
|
run: uv cache prune --ci
|
|
190
225
|
|
|
191
226
|
- name: Save ruff cache
|
|
192
|
-
if: always() && steps.ruff-cache.outputs.cache-hit != 'true'
|
|
227
|
+
if: always() && runner.environment == 'github-hosted' && steps.ruff-cache.outputs.cache-hit != 'true'
|
|
193
228
|
uses: actions/cache/save@v5
|
|
194
229
|
with:
|
|
195
230
|
path: .ruff_cache
|
|
@@ -210,10 +245,6 @@ jobs:
|
|
|
210
245
|
enable-cache: true
|
|
211
246
|
prune-cache: false
|
|
212
247
|
|
|
213
|
-
- name: Install tomli (Python < 3.11)
|
|
214
|
-
shell: bash
|
|
215
|
-
run: python -c "import tomllib" 2>/dev/null || uv pip install tomli --system
|
|
216
|
-
|
|
217
248
|
- name: Extract project metadata
|
|
218
249
|
id: metadata
|
|
219
250
|
uses: ./.github/actions/extract-metadata
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
run: uv build
|
|
32
32
|
|
|
33
33
|
- name: Upload artifacts
|
|
34
|
-
uses: actions/upload-artifact@
|
|
34
|
+
uses: actions/upload-artifact@v7
|
|
35
35
|
with:
|
|
36
36
|
name: dist
|
|
37
37
|
path: dist/*
|
|
@@ -56,7 +56,7 @@ jobs:
|
|
|
56
56
|
fi
|
|
57
57
|
|
|
58
58
|
- name: Download artifacts
|
|
59
|
-
uses: actions/download-artifact@
|
|
59
|
+
uses: actions/download-artifact@v8
|
|
60
60
|
with:
|
|
61
61
|
name: dist
|
|
62
62
|
path: dist/
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [2.1.5] - 2026-03-25
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Updated CI/CD workflows: improved artifact upload/download actions, updated runner configurations
|
|
9
|
+
- Updated Makefile with streamlined build targets
|
|
10
|
+
|
|
11
|
+
### Security
|
|
12
|
+
- Added CVE-2026-25990 (pillow), CVE-2025-8869 (pip), CVE-2026-25645 (requests) to pip-audit ignore list
|
|
13
|
+
- Added CVE-2026-4539 (pygments) to pip-audit ignore list
|
|
14
|
+
|
|
15
|
+
## [2.1.4] - 2026-02-13
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Fixed shellcheck SC1083 warning and shfmt formatting in `reset_git_history.sh`
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Updated CI/CD workflows: added Bash 4+ support for macOS, streamlined metadata extraction action
|
|
22
|
+
- Updated README badge path
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
- Bumped `lib_cli_exit_tools` to `>=2.3.0`
|
|
26
|
+
- Bumped `ruff` to `>=0.15.1`
|
|
27
|
+
- Bumped `import-linter` to `>=2.10`
|
|
28
|
+
|
|
29
|
+
### Security
|
|
30
|
+
- Added CVE-2026-1703 and CVE-2026-26007 (cryptography 46.0.3) to pip-audit ignore list
|
|
31
|
+
|
|
3
32
|
## [2.1.3] - 2026-02-01
|
|
4
33
|
|
|
5
34
|
### Fixed
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
|
|
5
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
|
+
- use skill `bx-bash-clean-architecture`
|
|
8
8
|
- bash_clean_code.md
|
|
9
9
|
- bash_small_functions.md
|
|
10
10
|
- python_solid_architecture_enforcer.md
|
|
11
|
-
- python_clean_architecture.md
|
|
12
11
|
- python_clean_code.md
|
|
13
12
|
- python_small_functions_style.md
|
|
14
|
-
-
|
|
13
|
+
- use skill `bx-python-libraries-to-use`
|
|
15
14
|
- python_structure_template.md
|
|
16
15
|
- self_documenting.md
|
|
17
16
|
- self_documenting_template.md
|
|
@@ -25,17 +24,17 @@ always apply those Rules :
|
|
|
25
24
|
when writing or refracturing Bash scripts, apply those Rules :
|
|
26
25
|
|
|
27
26
|
- core_programming_solid.md
|
|
28
|
-
-
|
|
27
|
+
- use skill `bx-bash-clean-architecture`
|
|
29
28
|
- bash_clean_code.md
|
|
30
29
|
- bash_small_functions.md
|
|
31
30
|
|
|
32
31
|
when writing or refracturing Python scripts, apply those Rules :
|
|
33
32
|
- core_programming_solid.md
|
|
34
33
|
- python_solid_architecture_enforcer.md
|
|
35
|
-
-
|
|
34
|
+
- use skill `bx-python-clean-architecture`
|
|
36
35
|
- python_clean_code.md
|
|
37
36
|
- python_small_functions_style.md
|
|
38
|
-
-
|
|
37
|
+
- use skill `bx-python-libraries-to-use`
|
|
39
38
|
- python_lib_structure_template.md
|
|
40
39
|
|
|
41
40
|
## Project Structure & Module Organization
|
|
@@ -81,7 +80,7 @@ when writing or refracturing Python scripts, apply those Rules :
|
|
|
81
80
|
## Commit & Pull Request Guidelines
|
|
82
81
|
|
|
83
82
|
## Architecture Overview
|
|
84
|
-
-
|
|
83
|
+
- use skill `bx-python-clean-architecture`
|
|
85
84
|
|
|
86
85
|
## Data Architecture Rules
|
|
87
86
|
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# BMK MAKEFILE 2.9.0
|
|
2
|
+
# do not alter this file - it might be overwritten on new versions of BMK
|
|
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
|
+
# bmk Makefile — thin wrapper using `uv tool install` for persistent bmk
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# make test # run test suite
|
|
8
|
+
# make test --verbose # forward extra flags
|
|
9
|
+
# make bump-patch # bump patch version
|
|
10
|
+
# make push fix login bug # push with commit message
|
|
11
|
+
# make custom deploy # run custom command
|
|
12
|
+
# make custom deploy --dry-run
|
|
13
|
+
#
|
|
14
|
+
# On every invocation, bmk is (re-)installed as a persistent uv tool
|
|
15
|
+
# together with the current project's dependencies (read from ./pyproject.toml).
|
|
16
|
+
# This ensures pyright, pytest, pip-audit etc. can resolve the full
|
|
17
|
+
# dependency tree without PYTHONPATH hacks or a local .venv.
|
|
18
|
+
#
|
|
19
|
+
# Arguments after the target name are forwarded automatically.
|
|
20
|
+
# You can also use ARGS="..." explicitly if preferred.
|
|
21
|
+
|
|
22
|
+
SHELL := /bin/bash
|
|
23
|
+
.DEFAULT_GOAL := help
|
|
24
|
+
|
|
25
|
+
# Use absolute path to the uv tool binary so active virtualenvs cannot shadow it.
|
|
26
|
+
BMK := $(HOME)/.local/bin/bmk
|
|
27
|
+
ARGS ?=
|
|
28
|
+
|
|
29
|
+
# ──────────────────────────────────────────────────────────────
|
|
30
|
+
# Ensure bmk + project deps are installed as a persistent uv tool
|
|
31
|
+
# ──────────────────────────────────────────────────────────────
|
|
32
|
+
# --reinstall re-resolves deps on every call (fast when cached).
|
|
33
|
+
# Fallback handles first-time install where --reinstall would fail.
|
|
34
|
+
.PHONY: _ensure_bmk
|
|
35
|
+
_ensure_bmk:
|
|
36
|
+
@uv tool install --reinstall bmk --with . 2>/dev/null || uv tool install bmk --with .
|
|
37
|
+
|
|
38
|
+
# ──────────────────────────────────────────────────────────────
|
|
39
|
+
# Argument forwarding via MAKECMDGOALS
|
|
40
|
+
# ──────────────────────────────────────────────────────────────
|
|
41
|
+
# Allows natural argument passing: make push fix login bug
|
|
42
|
+
# instead of: make push ARGS="fix login bug"
|
|
43
|
+
|
|
44
|
+
# All targets that accept trailing arguments
|
|
45
|
+
_BMK_TARGETS := test t test-human th testintegration testi ti testintegration-human tih \
|
|
46
|
+
codecov coverage cov \
|
|
47
|
+
build bld clean cln cl run \
|
|
48
|
+
bump-major bump-minor bump-patch bump \
|
|
49
|
+
commit c push psh p release rel r \
|
|
50
|
+
dependencies deps d dependencies-update \
|
|
51
|
+
config config-deploy config-generate-examples \
|
|
52
|
+
send-email send-notification custom \
|
|
53
|
+
info logdemo
|
|
54
|
+
|
|
55
|
+
ifneq (,$(filter $(_BMK_TARGETS),$(firstword $(MAKECMDGOALS))))
|
|
56
|
+
# Capture everything after the first word as extra arguments
|
|
57
|
+
_EXTRA := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
|
|
58
|
+
# Append to ARGS (so explicit ARGS="..." still works alongside)
|
|
59
|
+
override ARGS += $(_EXTRA)
|
|
60
|
+
endif
|
|
61
|
+
|
|
62
|
+
# ──────────────────────────────────────────────────────────────
|
|
63
|
+
# Test & Quality
|
|
64
|
+
# ──────────────────────────────────────────────────────────────
|
|
65
|
+
|
|
66
|
+
.PHONY: test t
|
|
67
|
+
test: _ensure_bmk ## Run test suite [alias: t]
|
|
68
|
+
$(BMK) test $(ARGS)
|
|
69
|
+
t: _ensure_bmk
|
|
70
|
+
$(BMK) test $(ARGS)
|
|
71
|
+
|
|
72
|
+
.PHONY: test-human th
|
|
73
|
+
test-human: _ensure_bmk ## Run test suite with human-readable output [alias: th]
|
|
74
|
+
$(BMK) test --human $(ARGS)
|
|
75
|
+
th: _ensure_bmk
|
|
76
|
+
$(BMK) test --human $(ARGS)
|
|
77
|
+
|
|
78
|
+
.PHONY: testintegration testi ti
|
|
79
|
+
testintegration: _ensure_bmk ## Run integration tests only [aliases: testi, ti]
|
|
80
|
+
$(BMK) testintegration $(ARGS)
|
|
81
|
+
testi ti: _ensure_bmk
|
|
82
|
+
$(BMK) testintegration $(ARGS)
|
|
83
|
+
|
|
84
|
+
.PHONY: testintegration-human tih
|
|
85
|
+
testintegration-human: _ensure_bmk ## Run integration tests with human-readable output [alias: tih]
|
|
86
|
+
$(BMK) testintegration --human $(ARGS)
|
|
87
|
+
tih: _ensure_bmk
|
|
88
|
+
$(BMK) testintegration --human $(ARGS)
|
|
89
|
+
|
|
90
|
+
.PHONY: codecov coverage cov
|
|
91
|
+
codecov: _ensure_bmk ## Upload coverage report to Codecov [aliases: coverage, cov]
|
|
92
|
+
$(BMK) codecov $(ARGS)
|
|
93
|
+
coverage cov: _ensure_bmk
|
|
94
|
+
$(BMK) codecov $(ARGS)
|
|
95
|
+
|
|
96
|
+
# ──────────────────────────────────────────────────────────────
|
|
97
|
+
# Build & Clean
|
|
98
|
+
# ──────────────────────────────────────────────────────────────
|
|
99
|
+
|
|
100
|
+
.PHONY: build bld
|
|
101
|
+
build: _ensure_bmk ## Build wheel and sdist artifacts [alias: bld]
|
|
102
|
+
$(BMK) build $(ARGS)
|
|
103
|
+
bld: _ensure_bmk
|
|
104
|
+
$(BMK) build $(ARGS)
|
|
105
|
+
|
|
106
|
+
.PHONY: clean cln cl
|
|
107
|
+
clean: _ensure_bmk ## Remove build artifacts and caches [aliases: cln, cl]
|
|
108
|
+
$(BMK) clean $(ARGS)
|
|
109
|
+
cln cl: _ensure_bmk
|
|
110
|
+
$(BMK) clean $(ARGS)
|
|
111
|
+
|
|
112
|
+
# ──────────────────────────────────────────────────────────────
|
|
113
|
+
# Run
|
|
114
|
+
# ──────────────────────────────────────────────────────────────
|
|
115
|
+
|
|
116
|
+
.PHONY: run
|
|
117
|
+
run: _ensure_bmk ## Run the project CLI
|
|
118
|
+
$(BMK) run $(ARGS)
|
|
119
|
+
|
|
120
|
+
# ──────────────────────────────────────────────────────────────
|
|
121
|
+
# Version Bumping
|
|
122
|
+
# ──────────────────────────────────────────────────────────────
|
|
123
|
+
|
|
124
|
+
.PHONY: bump-major
|
|
125
|
+
bump-major: _ensure_bmk ## Bump major version (X+1).0.0
|
|
126
|
+
$(BMK) bump major $(ARGS)
|
|
127
|
+
|
|
128
|
+
.PHONY: bump-minor
|
|
129
|
+
bump-minor: _ensure_bmk ## Bump minor version X.(Y+1).0
|
|
130
|
+
$(BMK) bump minor $(ARGS)
|
|
131
|
+
|
|
132
|
+
.PHONY: bump-patch
|
|
133
|
+
bump-patch: _ensure_bmk ## Bump patch version X.Y.(Z+1)
|
|
134
|
+
$(BMK) bump patch $(ARGS)
|
|
135
|
+
|
|
136
|
+
.PHONY: bump
|
|
137
|
+
bump: bump-patch ## Bump patch version (default for bump)
|
|
138
|
+
|
|
139
|
+
# ──────────────────────────────────────────────────────────────
|
|
140
|
+
# Git Operations
|
|
141
|
+
# ──────────────────────────────────────────────────────────────
|
|
142
|
+
|
|
143
|
+
.PHONY: commit c
|
|
144
|
+
commit: _ensure_bmk ## Create a git commit with timestamped message [alias: c]
|
|
145
|
+
$(BMK) commit $(ARGS)
|
|
146
|
+
c: _ensure_bmk
|
|
147
|
+
$(BMK) commit $(ARGS)
|
|
148
|
+
|
|
149
|
+
.PHONY: push psh p
|
|
150
|
+
push: _ensure_bmk ## Run tests, commit, and push to remote [aliases: psh, p]
|
|
151
|
+
$(BMK) push $(ARGS)
|
|
152
|
+
psh p: _ensure_bmk
|
|
153
|
+
$(BMK) push $(ARGS)
|
|
154
|
+
|
|
155
|
+
.PHONY: release rel r
|
|
156
|
+
release: _ensure_bmk ## Create a versioned release (tag + GitHub release) [aliases: rel, r]
|
|
157
|
+
$(BMK) release $(ARGS)
|
|
158
|
+
rel r: _ensure_bmk
|
|
159
|
+
$(BMK) release $(ARGS)
|
|
160
|
+
|
|
161
|
+
# ──────────────────────────────────────────────────────────────
|
|
162
|
+
# Dependencies
|
|
163
|
+
# ──────────────────────────────────────────────────────────────
|
|
164
|
+
|
|
165
|
+
.PHONY: dependencies deps d
|
|
166
|
+
dependencies: _ensure_bmk ## Check and list project dependencies [aliases: deps, d]
|
|
167
|
+
$(BMK) dependencies $(ARGS)
|
|
168
|
+
deps d: _ensure_bmk
|
|
169
|
+
$(BMK) dependencies $(ARGS)
|
|
170
|
+
|
|
171
|
+
.PHONY: dependencies-update
|
|
172
|
+
dependencies-update: _ensure_bmk ## Update dependencies to latest versions
|
|
173
|
+
$(BMK) dependencies update $(ARGS)
|
|
174
|
+
|
|
175
|
+
# ──────────────────────────────────────────────────────────────
|
|
176
|
+
# Configuration
|
|
177
|
+
# ──────────────────────────────────────────────────────────────
|
|
178
|
+
|
|
179
|
+
.PHONY: config
|
|
180
|
+
config: _ensure_bmk ## Show current merged configuration
|
|
181
|
+
$(BMK) config $(ARGS)
|
|
182
|
+
|
|
183
|
+
.PHONY: config-deploy
|
|
184
|
+
config-deploy: _ensure_bmk ## Deploy configuration to system/user directories
|
|
185
|
+
$(BMK) config-deploy $(ARGS)
|
|
186
|
+
|
|
187
|
+
.PHONY: config-generate-examples
|
|
188
|
+
config-generate-examples: _ensure_bmk ## Generate example configuration files
|
|
189
|
+
$(BMK) config-generate-examples $(ARGS)
|
|
190
|
+
|
|
191
|
+
# ──────────────────────────────────────────────────────────────
|
|
192
|
+
# Email
|
|
193
|
+
# ──────────────────────────────────────────────────────────────
|
|
194
|
+
|
|
195
|
+
.PHONY: send-email
|
|
196
|
+
send-email: _ensure_bmk ## Send an email via configured SMTP
|
|
197
|
+
$(BMK) send-email $(ARGS)
|
|
198
|
+
|
|
199
|
+
.PHONY: send-notification
|
|
200
|
+
send-notification: _ensure_bmk ## Send a plain-text notification email
|
|
201
|
+
$(BMK) send-notification $(ARGS)
|
|
202
|
+
|
|
203
|
+
# ──────────────────────────────────────────────────────────────
|
|
204
|
+
# Custom Commands
|
|
205
|
+
# ──────────────────────────────────────────────────────────────
|
|
206
|
+
|
|
207
|
+
.PHONY: custom
|
|
208
|
+
custom: _ensure_bmk ## Run a custom command (make custom <name> [args...])
|
|
209
|
+
$(BMK) custom $(ARGS)
|
|
210
|
+
|
|
211
|
+
# ──────────────────────────────────────────────────────────────
|
|
212
|
+
# Info & Demos
|
|
213
|
+
# ──────────────────────────────────────────────────────────────
|
|
214
|
+
|
|
215
|
+
.PHONY: info
|
|
216
|
+
info: _ensure_bmk ## Print resolved package metadata
|
|
217
|
+
$(BMK) info $(ARGS)
|
|
218
|
+
|
|
219
|
+
.PHONY: logdemo
|
|
220
|
+
logdemo: _ensure_bmk ## Run logging demonstration
|
|
221
|
+
$(BMK) logdemo $(ARGS)
|
|
222
|
+
|
|
223
|
+
.PHONY: version-current
|
|
224
|
+
version-current: _ensure_bmk ## Print current version
|
|
225
|
+
$(BMK) --version
|
|
226
|
+
|
|
227
|
+
# ──────────────────────────────────────────────────────────────
|
|
228
|
+
# Development
|
|
229
|
+
# ──────────────────────────────────────────────────────────────
|
|
230
|
+
|
|
231
|
+
.PHONY: dev
|
|
232
|
+
dev: ## Install package with dev extras (editable)
|
|
233
|
+
uv pip install -e ".[dev]"
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
.PHONY: install
|
|
237
|
+
install: ## Editable install (no dev extras)
|
|
238
|
+
uv pip install -e .
|
|
239
|
+
|
|
240
|
+
# ──────────────────────────────────────────────────────────────
|
|
241
|
+
# Help
|
|
242
|
+
# ──────────────────────────────────────────────────────────────
|
|
243
|
+
|
|
244
|
+
.PHONY: help
|
|
245
|
+
help: ## Show this help
|
|
246
|
+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
|
247
|
+
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-26s\033[0m %s\n", $$1, $$2}' | \
|
|
248
|
+
sort
|
|
249
|
+
|
|
250
|
+
# ──────────────────────────────────────────────────────────────
|
|
251
|
+
# No-op overrides for trailing argument words (MUST be last)
|
|
252
|
+
# ──────────────────────────────────────────────────────────────
|
|
253
|
+
# Placed after all real target definitions so the no-op recipes
|
|
254
|
+
# override them. This prevents "make push codecov fix" from
|
|
255
|
+
# executing the real codecov target — "codecov" is an argument
|
|
256
|
+
# to push, not a separate command.
|
|
257
|
+
ifneq (,$(_EXTRA))
|
|
258
|
+
$(_EXTRA):
|
|
259
|
+
@:
|
|
260
|
+
endif
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: keep_github_workflows_active
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.5
|
|
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
|
|
@@ -14,31 +14,32 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
18
|
Classifier: Typing :: Typed
|
|
18
19
|
Requires-Python: >=3.10
|
|
19
|
-
Requires-Dist: lib-cli-exit-tools>=2.
|
|
20
|
+
Requires-Dist: lib-cli-exit-tools>=2.3.0
|
|
20
21
|
Requires-Dist: pydantic>=2.12.5
|
|
21
|
-
Requires-Dist: requests>=2.
|
|
22
|
+
Requires-Dist: requests>=2.33.0
|
|
22
23
|
Requires-Dist: rich-click>=1.9.7
|
|
23
24
|
Provides-Extra: dev
|
|
24
|
-
Requires-Dist: bandit>=1.9.
|
|
25
|
-
Requires-Dist: build>=1.4.
|
|
26
|
-
Requires-Dist: codecov-cli>=11.2.
|
|
27
|
-
Requires-Dist: import-linter>=2.
|
|
25
|
+
Requires-Dist: bandit>=1.9.4; extra == 'dev'
|
|
26
|
+
Requires-Dist: build>=1.4.2; extra == 'dev'
|
|
27
|
+
Requires-Dist: codecov-cli>=11.2.7; extra == 'dev'
|
|
28
|
+
Requires-Dist: import-linter>=2.11; extra == 'dev'
|
|
28
29
|
Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
|
|
29
30
|
Requires-Dist: pyright[nodejs]>=1.1.408; extra == 'dev'
|
|
30
|
-
Requires-Dist: pytest-cov>=7.
|
|
31
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
|
|
31
32
|
Requires-Dist: pytest>=9.0.2; extra == 'dev'
|
|
32
33
|
Requires-Dist: rtoml>=0.13.0; extra == 'dev'
|
|
33
|
-
Requires-Dist: ruff>=0.
|
|
34
|
-
Requires-Dist: textual>=
|
|
34
|
+
Requires-Dist: ruff>=0.15.7; extra == 'dev'
|
|
35
|
+
Requires-Dist: textual>=8.1.1; extra == 'dev'
|
|
35
36
|
Requires-Dist: twine>=6.2.0; extra == 'dev'
|
|
36
37
|
Description-Content-Type: text/markdown
|
|
37
38
|
|
|
38
39
|
# keep_github_workflows_active
|
|
39
40
|
|
|
40
41
|
<!-- Badges -->
|
|
41
|
-
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/default_cicd_public.yml)
|
|
42
43
|
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/codeql.yml)
|
|
43
44
|
[](LICENSE)
|
|
44
45
|
[](https://codespaces.new/bitranox/keep_github_workflows_active?quickstart=1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# keep_github_workflows_active
|
|
2
2
|
|
|
3
3
|
<!-- Badges -->
|
|
4
|
-
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/default_cicd_public.yml)
|
|
5
5
|
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/codeql.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://codespaces.new/bitranox/keep_github_workflows_active?quickstart=1)
|