keep-github-workflows-active 2.1.3__tar.gz → 2.1.4__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.4}/.github/actions/extract-metadata/action.yml +8 -7
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.github/workflows/default_cicd_public.yml +10 -14
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.github/workflows/default_release_public.yml +1 -1
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/CHANGELOG.md +19 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/CLAUDE.md +4 -5
- keep_github_workflows_active-2.1.4/Makefile +235 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/PKG-INFO +5 -5
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/README.md +1 -1
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/pyproject.toml +5 -5
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/reset_git_history.sh +17 -16
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/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/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.4}/.devcontainer/devcontainer.json +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.devcontainer/settings.json +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.env.example +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.github/dependabot.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.github/workflows/activate_workflows.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.github/workflows/codeql.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.gitignore +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.qlty/qlty.toml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/.snyk +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/CONTRIBUTING.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/DEVELOPMENT.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/INSTALL.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/LICENSE +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/codecov.yml +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/concept.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/docs/systemdesign/SECURITY.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/docs/systemdesign/module_reference.md +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/notebooks/Quickstart.ipynb +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/__init__.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/__main__.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/behaviors.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/cli.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/doctest.env +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/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.4}/src/keep_github_workflows_active/py.typed +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/src/keep_github_workflows_active/sanitization.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/conftest.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/test_behaviors.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/test_cli.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/test_github_integration.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/test_metadata.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/tests/test_module_entry.py +0 -0
- {keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/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']
|
|
@@ -23,6 +23,7 @@ jobs:
|
|
|
23
23
|
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
|
|
24
24
|
PYTHONIOENCODING: "utf-8"
|
|
25
25
|
UV_LINK_MODE: "copy"
|
|
26
|
+
UV_BREAK_SYSTEM_PACKAGES: "1"
|
|
26
27
|
steps:
|
|
27
28
|
- uses: actions/checkout@v6
|
|
28
29
|
- uses: actions/setup-python@v6
|
|
@@ -34,9 +35,11 @@ jobs:
|
|
|
34
35
|
enable-cache: true
|
|
35
36
|
prune-cache: false
|
|
36
37
|
|
|
37
|
-
- name: Install
|
|
38
|
-
|
|
39
|
-
run:
|
|
38
|
+
- name: Install bash 4+ on macOS
|
|
39
|
+
if: runner.os == 'macOS'
|
|
40
|
+
run: |
|
|
41
|
+
brew install bash
|
|
42
|
+
echo "$(brew --prefix)/bin" >> "$GITHUB_PATH"
|
|
40
43
|
|
|
41
44
|
- name: Extract project metadata
|
|
42
45
|
id: metadata
|
|
@@ -94,7 +97,7 @@ jobs:
|
|
|
94
97
|
# and stale journal files cause "database is locked" errors.
|
|
95
98
|
COVERAGE_FILE: "${{ runner.temp }}/.coverage"
|
|
96
99
|
run: >-
|
|
97
|
-
|
|
100
|
+
pytest -m "not local_only"
|
|
98
101
|
--cov=${{ env.SRC_PATH }}/${{ env.PACKAGE_MODULE }}
|
|
99
102
|
--cov-report=term-missing
|
|
100
103
|
--cov-report=xml:${{ env.COV_REPORT_FILE }}
|
|
@@ -130,12 +133,9 @@ jobs:
|
|
|
130
133
|
shell: python
|
|
131
134
|
run: |
|
|
132
135
|
import subprocess, sys
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
import tomli as tomllib
|
|
137
|
-
with open("pyproject.toml", "rb") as f:
|
|
138
|
-
data = tomllib.load(f)
|
|
136
|
+
import rtoml
|
|
137
|
+
from pathlib import Path
|
|
138
|
+
data = rtoml.load(Path("pyproject.toml"))
|
|
139
139
|
vulns = data.get("tool", {}).get("pip-audit", {}).get("ignore-vulns", [])
|
|
140
140
|
cmd = ["pip-audit", "--skip-editable"]
|
|
141
141
|
for v in vulns:
|
|
@@ -210,10 +210,6 @@ jobs:
|
|
|
210
210
|
enable-cache: true
|
|
211
211
|
prune-cache: false
|
|
212
212
|
|
|
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
213
|
- name: Extract project metadata
|
|
218
214
|
id: metadata
|
|
219
215
|
uses: ./.github/actions/extract-metadata
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [2.1.4] - 2026-02-13
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Fixed shellcheck SC1083 warning and shfmt formatting in `reset_git_history.sh`
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Updated CI/CD workflows: added Bash 4+ support for macOS, streamlined metadata extraction action
|
|
12
|
+
- Updated README badge path
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
- Bumped `lib_cli_exit_tools` to `>=2.3.0`
|
|
16
|
+
- Bumped `ruff` to `>=0.15.1`
|
|
17
|
+
- Bumped `import-linter` to `>=2.10`
|
|
18
|
+
|
|
19
|
+
### Security
|
|
20
|
+
- Added CVE-2026-1703 and CVE-2026-26007 (cryptography 46.0.3) to pip-audit ignore list
|
|
21
|
+
|
|
3
22
|
## [2.1.3] - 2026-02-01
|
|
4
23
|
|
|
5
24
|
### Fixed
|
|
@@ -8,10 +8,9 @@
|
|
|
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
|
|
@@ -32,10 +31,10 @@ when writing or refracturing Bash scripts, apply those Rules :
|
|
|
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,235 @@
|
|
|
1
|
+
# BMK MAKEFILE 2.3.3
|
|
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 calling bmk via uvx
|
|
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
|
+
# All targets invoke `uvx bmk@latest` so the latest published
|
|
15
|
+
# version is always used, regardless of local install state.
|
|
16
|
+
#
|
|
17
|
+
# Arguments after the target name are forwarded automatically.
|
|
18
|
+
# You can also use ARGS="..." explicitly if preferred.
|
|
19
|
+
|
|
20
|
+
SHELL := /bin/bash
|
|
21
|
+
.DEFAULT_GOAL := help
|
|
22
|
+
|
|
23
|
+
BMK := uvx bmk@latest
|
|
24
|
+
ARGS ?=
|
|
25
|
+
|
|
26
|
+
# ──────────────────────────────────────────────────────────────
|
|
27
|
+
# Argument forwarding via MAKECMDGOALS
|
|
28
|
+
# ──────────────────────────────────────────────────────────────
|
|
29
|
+
# Allows natural argument passing: make push fix login bug
|
|
30
|
+
# instead of: make push ARGS="fix login bug"
|
|
31
|
+
|
|
32
|
+
# All targets that accept trailing arguments
|
|
33
|
+
_BMK_TARGETS := test t testintegration testi ti codecov coverage cov \
|
|
34
|
+
build bld clean cln cl run \
|
|
35
|
+
bump-major bump-minor bump-patch bump \
|
|
36
|
+
commit c push psh p release rel r \
|
|
37
|
+
dependencies deps d dependencies-update \
|
|
38
|
+
config config-deploy config-generate-examples \
|
|
39
|
+
send-email send-notification custom \
|
|
40
|
+
info logdemo
|
|
41
|
+
|
|
42
|
+
ifneq (,$(filter $(_BMK_TARGETS),$(firstword $(MAKECMDGOALS))))
|
|
43
|
+
# Capture everything after the first word as extra arguments
|
|
44
|
+
_EXTRA := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
|
|
45
|
+
# Append to ARGS (so explicit ARGS="..." still works alongside)
|
|
46
|
+
override ARGS += $(_EXTRA)
|
|
47
|
+
endif
|
|
48
|
+
|
|
49
|
+
# ──────────────────────────────────────────────────────────────
|
|
50
|
+
# Test & Quality
|
|
51
|
+
# ──────────────────────────────────────────────────────────────
|
|
52
|
+
|
|
53
|
+
.PHONY: test t
|
|
54
|
+
test: ## Run test suite [alias: t]
|
|
55
|
+
$(BMK) test $(ARGS)
|
|
56
|
+
t:
|
|
57
|
+
$(BMK) test $(ARGS)
|
|
58
|
+
|
|
59
|
+
.PHONY: testintegration testi ti
|
|
60
|
+
testintegration: ## Run integration tests only [aliases: testi, ti]
|
|
61
|
+
$(BMK) testintegration $(ARGS)
|
|
62
|
+
testi ti:
|
|
63
|
+
$(BMK) testintegration $(ARGS)
|
|
64
|
+
|
|
65
|
+
.PHONY: codecov coverage cov
|
|
66
|
+
codecov: ## Upload coverage report to Codecov [aliases: coverage, cov]
|
|
67
|
+
$(BMK) codecov $(ARGS)
|
|
68
|
+
coverage cov:
|
|
69
|
+
$(BMK) codecov $(ARGS)
|
|
70
|
+
|
|
71
|
+
# ──────────────────────────────────────────────────────────────
|
|
72
|
+
# Build & Clean
|
|
73
|
+
# ──────────────────────────────────────────────────────────────
|
|
74
|
+
|
|
75
|
+
.PHONY: build bld
|
|
76
|
+
build: ## Build wheel and sdist artifacts [alias: bld]
|
|
77
|
+
$(BMK) build $(ARGS)
|
|
78
|
+
bld:
|
|
79
|
+
$(BMK) build $(ARGS)
|
|
80
|
+
|
|
81
|
+
.PHONY: clean cln cl
|
|
82
|
+
clean: ## Remove build artifacts and caches [aliases: cln, cl]
|
|
83
|
+
$(BMK) clean $(ARGS)
|
|
84
|
+
cln cl:
|
|
85
|
+
$(BMK) clean $(ARGS)
|
|
86
|
+
|
|
87
|
+
# ──────────────────────────────────────────────────────────────
|
|
88
|
+
# Run
|
|
89
|
+
# ──────────────────────────────────────────────────────────────
|
|
90
|
+
|
|
91
|
+
.PHONY: run
|
|
92
|
+
run: ## Run the project CLI via uvx
|
|
93
|
+
$(BMK) run $(ARGS)
|
|
94
|
+
|
|
95
|
+
# ──────────────────────────────────────────────────────────────
|
|
96
|
+
# Version Bumping
|
|
97
|
+
# ──────────────────────────────────────────────────────────────
|
|
98
|
+
|
|
99
|
+
.PHONY: bump-major
|
|
100
|
+
bump-major: ## Bump major version (X+1).0.0
|
|
101
|
+
$(BMK) bump major $(ARGS)
|
|
102
|
+
|
|
103
|
+
.PHONY: bump-minor
|
|
104
|
+
bump-minor: ## Bump minor version X.(Y+1).0
|
|
105
|
+
$(BMK) bump minor $(ARGS)
|
|
106
|
+
|
|
107
|
+
.PHONY: bump-patch
|
|
108
|
+
bump-patch: ## Bump patch version X.Y.(Z+1)
|
|
109
|
+
$(BMK) bump patch $(ARGS)
|
|
110
|
+
|
|
111
|
+
.PHONY: bump
|
|
112
|
+
bump: bump-patch ## Bump patch version (default for bump)
|
|
113
|
+
|
|
114
|
+
# ──────────────────────────────────────────────────────────────
|
|
115
|
+
# Git Operations
|
|
116
|
+
# ──────────────────────────────────────────────────────────────
|
|
117
|
+
|
|
118
|
+
.PHONY: commit c
|
|
119
|
+
commit: ## Create a git commit with timestamped message [alias: c]
|
|
120
|
+
$(BMK) commit $(ARGS)
|
|
121
|
+
c:
|
|
122
|
+
$(BMK) commit $(ARGS)
|
|
123
|
+
|
|
124
|
+
.PHONY: push psh p
|
|
125
|
+
push: ## Run tests, commit, and push to remote [aliases: psh, p]
|
|
126
|
+
$(BMK) push $(ARGS)
|
|
127
|
+
psh p:
|
|
128
|
+
$(BMK) push $(ARGS)
|
|
129
|
+
|
|
130
|
+
.PHONY: release rel r
|
|
131
|
+
release: ## Create a versioned release (tag + GitHub release) [aliases: rel, r]
|
|
132
|
+
$(BMK) release $(ARGS)
|
|
133
|
+
rel r:
|
|
134
|
+
$(BMK) release $(ARGS)
|
|
135
|
+
|
|
136
|
+
# ──────────────────────────────────────────────────────────────
|
|
137
|
+
# Dependencies
|
|
138
|
+
# ──────────────────────────────────────────────────────────────
|
|
139
|
+
|
|
140
|
+
.PHONY: dependencies deps d
|
|
141
|
+
dependencies: ## Check and list project dependencies [aliases: deps, d]
|
|
142
|
+
$(BMK) dependencies $(ARGS)
|
|
143
|
+
deps d:
|
|
144
|
+
$(BMK) dependencies $(ARGS)
|
|
145
|
+
|
|
146
|
+
.PHONY: dependencies-update
|
|
147
|
+
dependencies-update: ## Update dependencies to latest versions
|
|
148
|
+
$(BMK) dependencies update $(ARGS)
|
|
149
|
+
|
|
150
|
+
# ──────────────────────────────────────────────────────────────
|
|
151
|
+
# Configuration
|
|
152
|
+
# ──────────────────────────────────────────────────────────────
|
|
153
|
+
|
|
154
|
+
.PHONY: config
|
|
155
|
+
config: ## Show current merged configuration
|
|
156
|
+
$(BMK) config $(ARGS)
|
|
157
|
+
|
|
158
|
+
.PHONY: config-deploy
|
|
159
|
+
config-deploy: ## Deploy configuration to system/user directories
|
|
160
|
+
$(BMK) config-deploy $(ARGS)
|
|
161
|
+
|
|
162
|
+
.PHONY: config-generate-examples
|
|
163
|
+
config-generate-examples: ## Generate example configuration files
|
|
164
|
+
$(BMK) config-generate-examples $(ARGS)
|
|
165
|
+
|
|
166
|
+
# ──────────────────────────────────────────────────────────────
|
|
167
|
+
# Email
|
|
168
|
+
# ──────────────────────────────────────────────────────────────
|
|
169
|
+
|
|
170
|
+
.PHONY: send-email
|
|
171
|
+
send-email: ## Send an email via configured SMTP
|
|
172
|
+
$(BMK) send-email $(ARGS)
|
|
173
|
+
|
|
174
|
+
.PHONY: send-notification
|
|
175
|
+
send-notification: ## Send a plain-text notification email
|
|
176
|
+
$(BMK) send-notification $(ARGS)
|
|
177
|
+
|
|
178
|
+
# ──────────────────────────────────────────────────────────────
|
|
179
|
+
# Custom Commands
|
|
180
|
+
# ──────────────────────────────────────────────────────────────
|
|
181
|
+
|
|
182
|
+
.PHONY: custom
|
|
183
|
+
custom: ## Run a custom command (make custom <name> [args...])
|
|
184
|
+
$(BMK) custom $(ARGS)
|
|
185
|
+
|
|
186
|
+
# ──────────────────────────────────────────────────────────────
|
|
187
|
+
# Info & Demos
|
|
188
|
+
# ──────────────────────────────────────────────────────────────
|
|
189
|
+
|
|
190
|
+
.PHONY: info
|
|
191
|
+
info: ## Print resolved package metadata
|
|
192
|
+
$(BMK) info $(ARGS)
|
|
193
|
+
|
|
194
|
+
.PHONY: logdemo
|
|
195
|
+
logdemo: ## Run logging demonstration
|
|
196
|
+
$(BMK) logdemo $(ARGS)
|
|
197
|
+
|
|
198
|
+
.PHONY: version-current
|
|
199
|
+
version-current: ## Print current version
|
|
200
|
+
$(BMK) --version
|
|
201
|
+
|
|
202
|
+
# ──────────────────────────────────────────────────────────────
|
|
203
|
+
# Development
|
|
204
|
+
# ──────────────────────────────────────────────────────────────
|
|
205
|
+
|
|
206
|
+
.PHONY: dev
|
|
207
|
+
dev: ## Install package with dev extras (editable)
|
|
208
|
+
uv pip install -e ".[dev]"
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
.PHONY: install
|
|
212
|
+
install: ## Editable install (no dev extras)
|
|
213
|
+
uv pip install -e .
|
|
214
|
+
|
|
215
|
+
# ──────────────────────────────────────────────────────────────
|
|
216
|
+
# Help
|
|
217
|
+
# ──────────────────────────────────────────────────────────────
|
|
218
|
+
|
|
219
|
+
.PHONY: help
|
|
220
|
+
help: ## Show this help
|
|
221
|
+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
|
222
|
+
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-26s\033[0m %s\n", $$1, $$2}' | \
|
|
223
|
+
sort
|
|
224
|
+
|
|
225
|
+
# ──────────────────────────────────────────────────────────────
|
|
226
|
+
# No-op overrides for trailing argument words (MUST be last)
|
|
227
|
+
# ──────────────────────────────────────────────────────────────
|
|
228
|
+
# Placed after all real target definitions so the no-op recipes
|
|
229
|
+
# override them. This prevents "make push codecov fix" from
|
|
230
|
+
# executing the real codecov target — "codecov" is an argument
|
|
231
|
+
# to push, not a separate command.
|
|
232
|
+
ifneq (,$(_EXTRA))
|
|
233
|
+
$(_EXTRA):
|
|
234
|
+
@:
|
|
235
|
+
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.4
|
|
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,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
17
|
Classifier: Typing :: Typed
|
|
18
18
|
Requires-Python: >=3.10
|
|
19
|
-
Requires-Dist: lib-cli-exit-tools>=2.
|
|
19
|
+
Requires-Dist: lib-cli-exit-tools>=2.3.0
|
|
20
20
|
Requires-Dist: pydantic>=2.12.5
|
|
21
21
|
Requires-Dist: requests>=2.32.5
|
|
22
22
|
Requires-Dist: rich-click>=1.9.7
|
|
@@ -24,13 +24,13 @@ Provides-Extra: dev
|
|
|
24
24
|
Requires-Dist: bandit>=1.9.3; extra == 'dev'
|
|
25
25
|
Requires-Dist: build>=1.4.0; extra == 'dev'
|
|
26
26
|
Requires-Dist: codecov-cli>=11.2.6; extra == 'dev'
|
|
27
|
-
Requires-Dist: import-linter>=2.
|
|
27
|
+
Requires-Dist: import-linter>=2.10; extra == 'dev'
|
|
28
28
|
Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
|
|
29
29
|
Requires-Dist: pyright[nodejs]>=1.1.408; extra == 'dev'
|
|
30
30
|
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
31
31
|
Requires-Dist: pytest>=9.0.2; extra == 'dev'
|
|
32
32
|
Requires-Dist: rtoml>=0.13.0; extra == 'dev'
|
|
33
|
-
Requires-Dist: ruff>=0.
|
|
33
|
+
Requires-Dist: ruff>=0.15.1; extra == 'dev'
|
|
34
34
|
Requires-Dist: textual>=7.5.0; extra == 'dev'
|
|
35
35
|
Requires-Dist: twine>=6.2.0; extra == 'dev'
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
@@ -38,7 +38,7 @@ Description-Content-Type: text/markdown
|
|
|
38
38
|
# keep_github_workflows_active
|
|
39
39
|
|
|
40
40
|
<!-- Badges -->
|
|
41
|
-
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/default_cicd_public.yml)
|
|
42
42
|
[](https://github.com/bitranox/keep_github_workflows_active/actions/workflows/codeql.yml)
|
|
43
43
|
[](LICENSE)
|
|
44
44
|
[](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)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "keep_github_workflows_active"
|
|
3
|
-
version = "2.1.
|
|
3
|
+
version = "2.1.4"
|
|
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.
|
|
7
|
+
dependencies = ["rich-click>=1.9.7", "lib_cli_exit_tools>=2.3.0", "requests>=2.32.5", "pydantic>=2.12.5"]
|
|
8
8
|
license = { text = "MIT" }
|
|
9
9
|
authors = [{ name = "bitranox", email = "bitranox@gmail.com" }]
|
|
10
10
|
keywords = ["logging", "rich", "cli", "terminal", "ansi"]
|
|
@@ -26,7 +26,7 @@ Issues = "https://github.com/bitranox/keep_github_workflows_active/issues"
|
|
|
26
26
|
dev = [
|
|
27
27
|
"pytest>=9.0.2",
|
|
28
28
|
"pytest-cov>=7.0.0",
|
|
29
|
-
"ruff>=0.
|
|
29
|
+
"ruff>=0.15.1",
|
|
30
30
|
"pyright[nodejs]>=1.1.408",
|
|
31
31
|
"bandit>=1.9.3",
|
|
32
32
|
"build>=1.4.0",
|
|
@@ -34,7 +34,7 @@ dev = [
|
|
|
34
34
|
"codecov-cli>=11.2.6",
|
|
35
35
|
"pip-audit>=2.10.0",
|
|
36
36
|
"textual>=7.5.0",
|
|
37
|
-
"import-linter>=2.
|
|
37
|
+
"import-linter>=2.10",
|
|
38
38
|
"rtoml>=0.13.0"
|
|
39
39
|
]
|
|
40
40
|
|
|
@@ -147,4 +147,4 @@ layers = [
|
|
|
147
147
|
# PYSEC-2022-43012: fixed in 65.5.1
|
|
148
148
|
# PYSEC-2025-49: fixed in 78.1.1
|
|
149
149
|
# CVE-2024-6345: fixed in 70.0.0
|
|
150
|
-
ignore-vulns = ["GHSA-4xh5-x5gv-qwph", "PYSEC-2022-42969", "PYSEC-2022-43012", "PYSEC-2025-49", "CVE-2024-6345"]
|
|
150
|
+
ignore-vulns = ["GHSA-4xh5-x5gv-qwph", "PYSEC-2022-42969", "PYSEC-2022-43012", "PYSEC-2025-49", "CVE-2024-6345","CVE-2026-1703","CVE-2026-26007"]
|
{keep_github_workflows_active-2.1.3 → keep_github_workflows_active-2.1.4}/reset_git_history.sh
RENAMED
|
@@ -5,14 +5,14 @@ set -euo pipefail
|
|
|
5
5
|
echo "Preparing to squash repository history..."
|
|
6
6
|
|
|
7
7
|
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
echo "Error: run this script inside a Git repository." >&2
|
|
9
|
+
exit 1
|
|
10
10
|
fi
|
|
11
11
|
|
|
12
12
|
current_branch="$(git symbolic-ref --short HEAD 2>/dev/null || true)"
|
|
13
13
|
if [[ -z "$current_branch" ]]; then
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
echo "Error: could not determine current branch. Check out a branch and retry." >&2
|
|
15
|
+
exit 1
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
# Snapshot tracked changes, keeping untracked files untouched.
|
|
@@ -20,35 +20,36 @@ fi
|
|
|
20
20
|
git rm -r --cached .idea >/dev/null 2>&1 || true
|
|
21
21
|
|
|
22
22
|
if git status --porcelain | grep -v '^??' >/dev/null 2>&1; then
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
echo "Committing tracked changes..."
|
|
24
|
+
git add -u
|
|
25
|
+
git commit -m "chore: checkpoint before history reset"
|
|
26
26
|
fi
|
|
27
27
|
|
|
28
28
|
# Ensure the working tree is clean before rewriting history.
|
|
29
29
|
if ! git diff --quiet || ! git diff --cached --quiet; then
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
echo "Error: working tree is not clean after checkpoint commit. Aborting." >&2
|
|
31
|
+
exit 1
|
|
32
32
|
fi
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
# shellcheck disable=SC1083
|
|
35
|
+
tree_sha="$(git rev-parse "HEAD^{tree}")"
|
|
35
36
|
reset_message="chore: reset history"
|
|
36
37
|
new_commit="$(git commit-tree "$tree_sha" -m "$reset_message")"
|
|
37
38
|
git reset --hard "$new_commit"
|
|
38
39
|
|
|
39
40
|
remote="${1:-}"
|
|
40
41
|
if [[ -z "$remote" ]]; then
|
|
41
|
-
|
|
42
|
+
remote="$(git remote | head -n1 || true)"
|
|
42
43
|
fi
|
|
43
44
|
|
|
44
45
|
if [[ -n "$remote" ]]; then
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
# Ensure any reintroduced IntelliJ files are untracked before the force push.
|
|
47
|
+
git rm -r --cached .idea >/dev/null 2>&1 || true
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
echo "Force pushing rewritten history to remote '$remote'..."
|
|
50
|
+
git push --force "$remote" "$current_branch"
|
|
50
51
|
else
|
|
51
|
-
|
|
52
|
+
echo "No remote configured. Local history rewritten only."
|
|
52
53
|
fi
|
|
53
54
|
|
|
54
55
|
echo "History reset complete. Untracked files were left untouched."
|
|
@@ -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.1.
|
|
27
|
+
version = "2.1.4"
|
|
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.
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
SHELL := /bin/bash
|
|
2
|
-
|
|
3
|
-
PYTHON ?= python3
|
|
4
|
-
SCRIPTS ?= $(PYTHON) -m scripts
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
help:
|
|
9
|
-
$(SCRIPTS) help
|
|
10
|
-
|
|
11
|
-
install:
|
|
12
|
-
$(SCRIPTS) install
|
|
13
|
-
|
|
14
|
-
dev:
|
|
15
|
-
$(SCRIPTS) dev
|
|
16
|
-
|
|
17
|
-
test:
|
|
18
|
-
$(SCRIPTS) test
|
|
19
|
-
|
|
20
|
-
run:
|
|
21
|
-
$(SCRIPTS) run
|
|
22
|
-
|
|
23
|
-
version-current:
|
|
24
|
-
$(SCRIPTS) version-current
|
|
25
|
-
|
|
26
|
-
bump:
|
|
27
|
-
$(SCRIPTS) bump
|
|
28
|
-
|
|
29
|
-
bump-patch:
|
|
30
|
-
$(SCRIPTS) bump-patch
|
|
31
|
-
|
|
32
|
-
bump-minor:
|
|
33
|
-
$(SCRIPTS) bump-minor
|
|
34
|
-
|
|
35
|
-
bump-major:
|
|
36
|
-
$(SCRIPTS) bump-major
|
|
37
|
-
|
|
38
|
-
clean:
|
|
39
|
-
$(SCRIPTS) clean
|
|
40
|
-
|
|
41
|
-
coverage:
|
|
42
|
-
$(SCRIPTS) coverage
|
|
43
|
-
|
|
44
|
-
push:
|
|
45
|
-
$(SCRIPTS) push
|
|
46
|
-
|
|
47
|
-
build:
|
|
48
|
-
$(SCRIPTS) build
|
|
49
|
-
|
|
50
|
-
release:
|
|
51
|
-
$(SCRIPTS) release
|
|
52
|
-
|
|
53
|
-
dependencies:
|
|
54
|
-
$(SCRIPTS) dependencies
|
|
55
|
-
|
|
56
|
-
dependencies-update:
|
|
57
|
-
$(SCRIPTS) dependencies-update
|
|
58
|
-
|
|
59
|
-
menu:
|
|
60
|
-
$(SCRIPTS) menu
|