cli-base-utilities 0.32.2__tar.gz → 0.34.0__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.
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.github/workflows/tests.yml +2 -2
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.gitignore +2 -0
- cli_base_utilities-0.34.0/.gitlab-ci.yml +45 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.pre-commit-config.yaml +2 -2
- cli_base_utilities-0.34.0/.run/Code Style linting via tests.run.xml +21 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.run/Unittests _all_.run.xml +2 -0
- cli_base_utilities-0.34.0/.run/Update DocWrite via tests.run.xml +21 -0
- cli_base_utilities-0.34.0/.vibe/skills/update-project/SKILL.md +40 -0
- cli_base_utilities-0.34.0/AGENTS.md +28 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/PKG-INFO +72 -36
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/README.md +71 -35
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/__init__.py +1 -1
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/packaging.py +13 -1
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/git.py +26 -9
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/git_history.py +28 -20
- cli_base_utilities-0.34.0/cli_base/cli_tools/tests/docwrite_macro.py +9 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_git_history.py +53 -9
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/run_pip_audit.py +8 -0
- cli_base_utilities-0.34.0/cli_base/run_uv_audit.py +52 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_pre_commit.py +1 -1
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_run_pip_audit.py +2 -1
- cli_base_utilities-0.34.0/cli_base/tests/test_run_uv_audit.py +23 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/docs/pip_audit.md +2 -0
- cli_base_utilities-0.34.0/docs/readme_tools.md +18 -0
- cli_base_utilities-0.34.0/docs/uv_audit.md +15 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/pyproject.toml +12 -3
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.editorconfig +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.idea/.gitignore +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.pre-commit-hooks.yaml +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.run/.gitignore +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.run/Template Python.run.xml +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/.venv-app/.gitignore +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/LICENSE +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/__main__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/autodiscover.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_app/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_app/shell_completion.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_app/update_readme_history.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/__main__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/code_style.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/shell_completion.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/testing.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_dev/update_readme_history.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/code_style.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/constants.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/dev_tools.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/dict_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/path_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/rich_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/shell_completion.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/string_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/subprocess_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/assertion.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/base_testcases.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/cli_readme.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/environment_fixtures.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/git_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/logs.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/rich_click_test_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/rich_test_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/shutil_mocks.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/snapshot.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/subprocess_mocks.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/test_utils/temp_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_code_style.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_dev_tools.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_dict_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_environ_fixtures.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_git.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_git_git_apply_patch_1.snapshot.patch +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_git_git_diff_1.snapshot.patch +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_path_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_rich_click_test_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_rich_test_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_rich_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_snapshot.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_subprocess_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/test_version_info.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/tests/tools_executer_test_helper.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/verbosity.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/cli_tools/version_info.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/click_defaults.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/constants.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/demo/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/demo/__main__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/demo/cli.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/demo/settings.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/api.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/data_classes.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/defaults.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/exceptions.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/service_template.txt +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/template.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/test_utils/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/test_utils/mock_systemd_info.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/test_api.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/test_data_classes.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/test_mock_systemd_info.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/test_mock_systemd_info_mock_1.snapshot.toml +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/systemd/tests/test_template.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/shell_complete_snapshots/.gitignore +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_doc_write.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_doctests.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_project_setup.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_readme.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tests/test_readme_history.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/api.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/data_class_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/debug.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/deserialize.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/exceptions.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/sensible_editor.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/serialize.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/test_utils/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/test_utils/cli_mock.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/test_utils/data_class_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/__init__.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/fixtures.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/test_demo_settings.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/test_deserialize.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/test_sensible_editor.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/test_serialize.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/toml_settings/tests/test_test_utils.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/cli_base/tyro_commands.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/completions +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/demo-cli.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/dev-cli.py +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/dist/.gitignore +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/docs/README.md +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/docs/shell_completion.md +0 -0
- {cli_base_utilities-0.32.2 → cli_base_utilities-0.34.0}/noxfile.py +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- test
|
|
3
|
+
|
|
4
|
+
workflow:
|
|
5
|
+
rules:
|
|
6
|
+
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
7
|
+
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
8
|
+
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
9
|
+
|
|
10
|
+
test:
|
|
11
|
+
stage: test
|
|
12
|
+
image: python:${PYTHON_VERSION}-slim
|
|
13
|
+
parallel:
|
|
14
|
+
matrix:
|
|
15
|
+
- PYTHON_VERSION: ['3.12', '3.13', '3.14']
|
|
16
|
+
variables:
|
|
17
|
+
PYTHONUNBUFFERED: '1'
|
|
18
|
+
PYTHONWARNINGS: 'always'
|
|
19
|
+
UV_CACHE_DIR: '${CI_PROJECT_DIR}/.cache/uv'
|
|
20
|
+
NO_AUTO_UV_UPGRADE: '1'
|
|
21
|
+
cache:
|
|
22
|
+
key:
|
|
23
|
+
files:
|
|
24
|
+
- uv.lock
|
|
25
|
+
paths:
|
|
26
|
+
- .cache/uv/
|
|
27
|
+
before_script:
|
|
28
|
+
- apt-get update -qq && apt-get install -y --no-install-recommends git
|
|
29
|
+
- git checkout -B "$CI_COMMIT_REF_NAME"
|
|
30
|
+
- git fetch origin main:main || true
|
|
31
|
+
- pip install uv --quiet
|
|
32
|
+
script:
|
|
33
|
+
- ./cli.py version
|
|
34
|
+
- ./cli.py --help
|
|
35
|
+
- ./dev-cli.py version
|
|
36
|
+
- ./dev-cli.py --help
|
|
37
|
+
- ./dev-cli.py coverage
|
|
38
|
+
coverage: '/TOTAL.*\s+(\d+%)$/'
|
|
39
|
+
artifacts:
|
|
40
|
+
reports:
|
|
41
|
+
coverage_report:
|
|
42
|
+
coverage_format: cobertura
|
|
43
|
+
path: coverage.xml
|
|
44
|
+
when: always
|
|
45
|
+
expire_in: 1 week
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# pre-commit plugin configuration
|
|
2
2
|
# See https://pre-commit.com for more information
|
|
3
3
|
repos:
|
|
4
|
-
- repo: https://codeberg.org/jedie/cli-base-utilities
|
|
5
|
-
rev: v0.
|
|
4
|
+
- repo: https://codeberg.org/jedie/cli-base-utilities
|
|
5
|
+
rev: v0.33.0
|
|
6
6
|
hooks:
|
|
7
7
|
- id: update-readme-history
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
|
2
|
+
<configuration default="false" name="Code Style linting via tests" type="tests" factoryName="Unittests">
|
|
3
|
+
<module name="cli-base-utilities" />
|
|
4
|
+
<option name="ENV_FILES" value="" />
|
|
5
|
+
<option name="INTERPRETER_OPTIONS" value="" />
|
|
6
|
+
<option name="PARENT_ENVS" value="true" />
|
|
7
|
+
<option name="SDK_HOME" value="" />
|
|
8
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
9
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
10
|
+
<option name="ADD_CONTENT_ROOTS" value="false" />
|
|
11
|
+
<option name="ADD_SOURCE_ROOTS" value="false" />
|
|
12
|
+
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
13
|
+
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
14
|
+
<option name="RUN_TOOL" value="" />
|
|
15
|
+
<option name="_new_pattern" value="""" />
|
|
16
|
+
<option name="_new_additionalArguments" value="""" />
|
|
17
|
+
<option name="_new_target" value=""cli_base.tests.test_project_setup.ProjectSetupTestCase.test_code_style"" />
|
|
18
|
+
<option name="_new_targetType" value=""PYTHON"" />
|
|
19
|
+
<method v="2" />
|
|
20
|
+
</configuration>
|
|
21
|
+
</component>
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
<option name="IS_MODULE_SDK" value="true" />
|
|
10
10
|
<option name="ADD_CONTENT_ROOTS" value="false" />
|
|
11
11
|
<option name="ADD_SOURCE_ROOTS" value="false" />
|
|
12
|
+
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
12
13
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
14
|
+
<option name="RUN_TOOL" value="" />
|
|
13
15
|
<option name="_new_pattern" value="""" />
|
|
14
16
|
<option name="_new_additionalArguments" value="""" />
|
|
15
17
|
<option name="_new_target" value="""" />
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
|
2
|
+
<configuration default="false" name="Update DocWrite via tests" type="tests" factoryName="Unittests">
|
|
3
|
+
<module name="cli-base-utilities" />
|
|
4
|
+
<option name="ENV_FILES" value="" />
|
|
5
|
+
<option name="INTERPRETER_OPTIONS" value="" />
|
|
6
|
+
<option name="PARENT_ENVS" value="true" />
|
|
7
|
+
<option name="SDK_HOME" value="" />
|
|
8
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
9
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
10
|
+
<option name="ADD_CONTENT_ROOTS" value="false" />
|
|
11
|
+
<option name="ADD_SOURCE_ROOTS" value="false" />
|
|
12
|
+
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
13
|
+
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
14
|
+
<option name="RUN_TOOL" value="" />
|
|
15
|
+
<option name="_new_pattern" value="""" />
|
|
16
|
+
<option name="_new_additionalArguments" value="""" />
|
|
17
|
+
<option name="_new_target" value=""cli_base.tests.test_doc_write.DocuWriteApiTestCase.test_up2date_docs"" />
|
|
18
|
+
<option name="_new_targetType" value=""PYTHON"" />
|
|
19
|
+
<method v="2" />
|
|
20
|
+
</configuration>
|
|
21
|
+
</component>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update-project
|
|
3
|
+
description: Load when the user wants to update this project. Updates pyproject.toml dependencies, runs tests, and fixes tests only if failures are due to API changes from newer package versions. uv.lock is not checked into this lib repo.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Update Project
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
0. **Check clean state**
|
|
11
|
+
Ensure there are no uncommitted changes:
|
|
12
|
+
```bash
|
|
13
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
14
|
+
echo "Error: There are uncommitted changes"
|
|
15
|
+
git status
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
1. **Update dependencies**
|
|
21
|
+
Run the dev-cli update command (upgrades pyproject.toml, runs pip-audit, syncs venv, updates pre-commit hooks):
|
|
22
|
+
```bash
|
|
23
|
+
./dev-cli.py update
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. **Run tests**
|
|
27
|
+
Execute the test suite:
|
|
28
|
+
```bash
|
|
29
|
+
./dev-cli.py test
|
|
30
|
+
```
|
|
31
|
+
If tests fail and the failure is due to API changes from newer package versions, fix them.
|
|
32
|
+
|
|
33
|
+
3. **Commit changes**
|
|
34
|
+
If tests needed updates, commit with explanation:
|
|
35
|
+
```bash
|
|
36
|
+
git add .
|
|
37
|
+
git commit -m "Update tests for API changes in package versions
|
|
38
|
+
|
|
39
|
+
[Explain which tests were updated and why]
|
|
40
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# cli-base-utilities
|
|
2
|
+
|
|
3
|
+
Helpers to build Python CLI programs. Published as `cli-base-utilities` on PyPI.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
All commands require `uv` in PATH (pipx install uv).
|
|
8
|
+
|
|
9
|
+
- `./cli.py` — Application CLI, creates `.venv-app/` and installs packages from pyproject.toml dependencies.
|
|
10
|
+
- `./dev-cli.py` — Development CLI, creates `.venv/`, installs both main dependencies and dependency-groups.dev packages, and auto-upgrades the lockfile.
|
|
11
|
+
|
|
12
|
+
Run `./cli.py --help` or `./dev-cli.py --help` to see all available commands.
|
|
13
|
+
|
|
14
|
+
## Conventions
|
|
15
|
+
|
|
16
|
+
- **Line length**: 120 (ruff), 119 max in .editorconfig for Python
|
|
17
|
+
- **Imports**: sorted by isort (ruff `I` rules), 2 blank lines after imports
|
|
18
|
+
- **Tests**: `unittest.TestCase` (not pytest). Snapshot tests via `assert_text_snapshot`
|
|
19
|
+
- **Coverage**: branch coverage, `fail_under = 30`, data in `.coverage_data/`
|
|
20
|
+
- **CLI framework**: `tyro` for argument parsing, `rich` for output
|
|
21
|
+
|
|
22
|
+
## Gotchas
|
|
23
|
+
|
|
24
|
+
- `./dev-cli.py` and `./cli.py` require `uv` in PATH. They auto-create `.venv` / `.venv-app`
|
|
25
|
+
- `./dev-cli.py` auto-upgrades `uv.lock` if older than 24h (skip with `NO_AUTO_UV_UPGRADE=1`)
|
|
26
|
+
- README contains auto-generated sections (marked with `✂✂✂` comments) — do not edit manually
|
|
27
|
+
- Pre-commit hook `update-readme-history` updates README on every commit
|
|
28
|
+
- `force_dev_platform = "codeberg.org"` in `[tool.cli_base]` controls README history links
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cli-base-utilities
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.34.0
|
|
4
4
|
Summary: Helpers to bild a CLI program
|
|
5
5
|
Project-URL: Documentation, https://codeberg.org/jedie/cli-base-utilities
|
|
6
6
|
Project-URL: Source, https://codeberg.org/jedie/cli-base-utilities
|
|
@@ -28,40 +28,12 @@ Helpers to build a CLI program and some useful tools for CLI programs.
|
|
|
28
28
|
pip install cli-base-utilities
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
## GitHub suspended me!
|
|
32
|
-
|
|
33
|
-
**Important notice:**
|
|
34
|
-
|
|
35
|
-
----
|
|
36
|
-
|
|
37
|
-
GitHub _suspended_ [my account](https://github.com/jedie) sometime in late August 2026 !
|
|
38
|
-
There was **no** warning beforehand, nor **any explanation** of the reasons afterwards.
|
|
39
|
-
Since then, I have had **no access** or control over my data on GitHub.
|
|
40
|
-
|
|
41
|
-
All my projects and everything about me have completely disappeared.
|
|
42
|
-
**Everything** just results in a **404 "Not Found"** error page.
|
|
43
|
-
|
|
44
|
-
A support request still hasn't been answered, even after several weeks (apart from a confirmation that the request was received).
|
|
45
|
-
|
|
46
|
-
For that reason, I have been looking for a new home for all my OpenSource projects.
|
|
47
|
-
(Or rather, I am in the process of republishing all my projects elsewhere.)
|
|
48
|
-
|
|
49
|
-
Now you can find my on these place**s**:
|
|
50
|
-
|
|
51
|
-
* [**Codeberg**.org/jedie](https://codeberg.org/jedie)
|
|
52
|
-
* [**OpenCommit**.eu/jedie](https://opencommit.eu/jedie)
|
|
53
|
-
* [**GitLab**.com/users/jedie](https://gitlab.com/users/jedie/projects)
|
|
54
|
-
* [**Radicle**](https://radicle.network/install): [did:key:z6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934](https://radicle.network/nodes/iris.radicle.network/users/did%3Akey%3Az6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934) | [jedie.radicle.garden](https://radicle.network/nodes/jedie.radicle.garden)
|
|
55
|
-
|
|
56
|
-
That is why there will probably be a lot of broken links pointing to my GitHub account for quite some time!
|
|
57
|
-
|
|
58
|
-
----
|
|
59
|
-
|
|
60
31
|
## Features
|
|
61
32
|
|
|
62
33
|
Some of the features are:
|
|
63
34
|
|
|
64
|
-
* [`
|
|
35
|
+
* [`run_uv_audit()` to run `uv audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/uv_audit.md)
|
|
36
|
+
* [`run_pip_audit()` to run `pip-audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/pip_audit.md) (DEPRECATED: will be removed in the future, use `run_uv_audit()` instead)
|
|
65
37
|
|
|
66
38
|
TODO: Document all features here ;)
|
|
67
39
|
|
|
@@ -79,7 +51,7 @@ TODO: Document all features here ;)
|
|
|
79
51
|
|
|
80
52
|
[comment]: <> (✂✂✂ auto generated dev help start ✂✂✂)
|
|
81
53
|
```
|
|
82
|
-
usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell-completion,test,update,update-readme-history,update-test-snapshot-files,version}
|
|
54
|
+
usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell-completion,test,update,update-readme-history,update-test-snapshot-files,uv-audit,version}
|
|
83
55
|
|
|
84
56
|
|
|
85
57
|
|
|
@@ -93,7 +65,9 @@ usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell
|
|
|
93
65
|
│ • lint Check/fix code style by run: "ruff check --fix" │
|
|
94
66
|
│ • mypy Run Mypy (configured in pyproject.toml) │
|
|
95
67
|
│ • nox Run nox │
|
|
96
|
-
│ • pip-audit
|
|
68
|
+
│ • pip-audit DEPRECATED: Will be removed in the future, use "uv-audit" instead. │
|
|
69
|
+
│ │
|
|
70
|
+
│ Run pip-audit check against current requirements files │
|
|
97
71
|
│ • publish Build and upload this project to PyPi │
|
|
98
72
|
│ • shell-completion │
|
|
99
73
|
│ Setup shell completion for this CLI (Currently only for bash and zsh) │
|
|
@@ -109,6 +83,7 @@ usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell
|
|
|
109
83
|
│ • update-test-snapshot-files │
|
|
110
84
|
│ Update all test snapshot files (by remove and recreate all snapshot │
|
|
111
85
|
│ files) │
|
|
86
|
+
│ • uv-audit Run "uv audit" against the locked dependencies │
|
|
112
87
|
│ • version Print version and exit │
|
|
113
88
|
╰────────────────────────────────────────────────────────────────────────────────────────╯
|
|
114
89
|
```
|
|
@@ -237,6 +212,15 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
237
212
|
|
|
238
213
|
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
|
|
239
214
|
|
|
215
|
+
* [v0.34.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.33.0...v0.34.0)
|
|
216
|
+
* 2026-11-20 - Deprecate pip-audit, add "uv audit"
|
|
217
|
+
* 2026-11-20 - Update uv exclude-newer date to allow non-vulnerable version 0.13.9
|
|
218
|
+
* 2026-11-20 - Add AGENTS.md and update skill
|
|
219
|
+
* 2026-10-03 - Expand tests
|
|
220
|
+
* [v0.33.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.2...v0.33.0)
|
|
221
|
+
* 2026-09-21 - NEW: optional `force_dev_platform` in [tool.cli_base]
|
|
222
|
+
* 2026-09-21 - Apply project updates
|
|
223
|
+
* 2026-09-21 - Add project links to README
|
|
240
224
|
* [v0.32.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.1...v0.32.2)
|
|
241
225
|
* 2026-09-13 - fix more github -> codeberg links
|
|
242
226
|
* [v0.32.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.0...v0.32.1)
|
|
@@ -244,6 +228,9 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
244
228
|
* 2026-09-13 - NEW: git.get_remote_info()
|
|
245
229
|
* 2026-09-13 - Update README
|
|
246
230
|
* 2026-09-11 - README.md aktualisiert
|
|
231
|
+
|
|
232
|
+
<details><summary>Expand older history entries ...</summary>
|
|
233
|
+
|
|
247
234
|
* [v0.32.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.31.1...v0.32.0)
|
|
248
235
|
* 2026-09-11 - GitHub -> Codeberg + Radicle
|
|
249
236
|
* [v0.31.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.30.0...v0.31.1)
|
|
@@ -251,9 +238,6 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
251
238
|
* 2026-08-22 - apply projects upgrades
|
|
252
239
|
* 2026-06-16 - Enhance README utils
|
|
253
240
|
* 2026-06-16 - remove lock file from git
|
|
254
|
-
|
|
255
|
-
<details><summary>Expand older history entries ...</summary>
|
|
256
|
-
|
|
257
241
|
* [v0.30.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.2...v0.30.0)
|
|
258
242
|
* 2026-04-11 - Enhance print_version(): Add optional project_name and clean module name
|
|
259
243
|
* [v0.29.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.1...v0.29.2)
|
|
@@ -457,3 +441,55 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
457
441
|
|
|
458
442
|
|
|
459
443
|
[comment]: <> (✂✂✂ auto generated history end ✂✂✂)
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
## update-project skill
|
|
450
|
+
|
|
451
|
+
This project has a `.vibe/skills/update-project/SKILL.md` skill for **Mistral Vibe** that updates project dependencies and runs tests. It updates pyproject.toml dependencies, runs tests, and fixes tests only if failures are due to API changes from newer package versions.
|
|
452
|
+
|
|
453
|
+
Example CLI call to run this skill:
|
|
454
|
+
```bash
|
|
455
|
+
vibe "update project"
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
## GitHub suspended me!
|
|
459
|
+
|
|
460
|
+
**Important notice:**
|
|
461
|
+
|
|
462
|
+
----
|
|
463
|
+
|
|
464
|
+
GitHub _suspended_ [my account](https://github.com/jedie) sometime in late August 2026 !
|
|
465
|
+
There was **no** warning beforehand, nor **any explanation** of the reasons afterwards.
|
|
466
|
+
Since then, I have had **no access** or control over my data on GitHub.
|
|
467
|
+
|
|
468
|
+
All my projects and everything about me have completely disappeared.
|
|
469
|
+
**Everything** just results in a **404 "Not Found"** error page.
|
|
470
|
+
|
|
471
|
+
A support request still hasn't been answered, even after several weeks (apart from a confirmation that the request was received).
|
|
472
|
+
|
|
473
|
+
For that reason, I have been looking for a new home for all my OpenSource projects.
|
|
474
|
+
(Or rather, I am in the process of republishing all my projects elsewhere.)
|
|
475
|
+
|
|
476
|
+
Now you can find my on these place**s**:
|
|
477
|
+
|
|
478
|
+
* [**Codeberg**.org/jedie](https://codeberg.org/jedie)
|
|
479
|
+
* [**OpenCommit**.eu/jedie](https://opencommit.eu/jedie)
|
|
480
|
+
* [**GitLab**.com/users/jedie](https://gitlab.com/users/jedie/projects)
|
|
481
|
+
* [**Radicle**](https://radicle.network/install): [did:key:z6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934](https://radicle.network/nodes/iris.radicle.network/users/did%3Akey%3Az6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934) | [jedie.radicle.garden](https://radicle.network/nodes/jedie.radicle.garden)
|
|
482
|
+
|
|
483
|
+
That is why there will probably be a lot of broken links pointing to my GitHub account for quite some time!
|
|
484
|
+
|
|
485
|
+
#GitHubSuspendedMe #GiveUpGitHub
|
|
486
|
+
|
|
487
|
+
----
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
## Project links
|
|
491
|
+
|
|
492
|
+
* Codeberg: https://codeberg.org/jedie/cli-base-utilities/
|
|
493
|
+
* OpenCommit: https://opencommit.eu/jedie/cli-base-utilities/
|
|
494
|
+
* GitLab: https://gitlab.com/jedie/cli-base-utilities/
|
|
495
|
+
* PyPi: https://pypi.org/project/cli-base-utilities/
|
|
@@ -10,40 +10,12 @@ Helpers to build a CLI program and some useful tools for CLI programs.
|
|
|
10
10
|
pip install cli-base-utilities
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## GitHub suspended me!
|
|
14
|
-
|
|
15
|
-
**Important notice:**
|
|
16
|
-
|
|
17
|
-
----
|
|
18
|
-
|
|
19
|
-
GitHub _suspended_ [my account](https://github.com/jedie) sometime in late August 2026 !
|
|
20
|
-
There was **no** warning beforehand, nor **any explanation** of the reasons afterwards.
|
|
21
|
-
Since then, I have had **no access** or control over my data on GitHub.
|
|
22
|
-
|
|
23
|
-
All my projects and everything about me have completely disappeared.
|
|
24
|
-
**Everything** just results in a **404 "Not Found"** error page.
|
|
25
|
-
|
|
26
|
-
A support request still hasn't been answered, even after several weeks (apart from a confirmation that the request was received).
|
|
27
|
-
|
|
28
|
-
For that reason, I have been looking for a new home for all my OpenSource projects.
|
|
29
|
-
(Or rather, I am in the process of republishing all my projects elsewhere.)
|
|
30
|
-
|
|
31
|
-
Now you can find my on these place**s**:
|
|
32
|
-
|
|
33
|
-
* [**Codeberg**.org/jedie](https://codeberg.org/jedie)
|
|
34
|
-
* [**OpenCommit**.eu/jedie](https://opencommit.eu/jedie)
|
|
35
|
-
* [**GitLab**.com/users/jedie](https://gitlab.com/users/jedie/projects)
|
|
36
|
-
* [**Radicle**](https://radicle.network/install): [did:key:z6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934](https://radicle.network/nodes/iris.radicle.network/users/did%3Akey%3Az6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934) | [jedie.radicle.garden](https://radicle.network/nodes/jedie.radicle.garden)
|
|
37
|
-
|
|
38
|
-
That is why there will probably be a lot of broken links pointing to my GitHub account for quite some time!
|
|
39
|
-
|
|
40
|
-
----
|
|
41
|
-
|
|
42
13
|
## Features
|
|
43
14
|
|
|
44
15
|
Some of the features are:
|
|
45
16
|
|
|
46
|
-
* [`
|
|
17
|
+
* [`run_uv_audit()` to run `uv audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/uv_audit.md)
|
|
18
|
+
* [`run_pip_audit()` to run `pip-audit` with configuration from `pyproject.toml`](https://codeberg.org/jedie/cli-base-utilities/src/branch/main/docs/pip_audit.md) (DEPRECATED: will be removed in the future, use `run_uv_audit()` instead)
|
|
47
19
|
|
|
48
20
|
TODO: Document all features here ;)
|
|
49
21
|
|
|
@@ -61,7 +33,7 @@ TODO: Document all features here ;)
|
|
|
61
33
|
|
|
62
34
|
[comment]: <> (✂✂✂ auto generated dev help start ✂✂✂)
|
|
63
35
|
```
|
|
64
|
-
usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell-completion,test,update,update-readme-history,update-test-snapshot-files,version}
|
|
36
|
+
usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell-completion,test,update,update-readme-history,update-test-snapshot-files,uv-audit,version}
|
|
65
37
|
|
|
66
38
|
|
|
67
39
|
|
|
@@ -75,7 +47,9 @@ usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell
|
|
|
75
47
|
│ • lint Check/fix code style by run: "ruff check --fix" │
|
|
76
48
|
│ • mypy Run Mypy (configured in pyproject.toml) │
|
|
77
49
|
│ • nox Run nox │
|
|
78
|
-
│ • pip-audit
|
|
50
|
+
│ • pip-audit DEPRECATED: Will be removed in the future, use "uv-audit" instead. │
|
|
51
|
+
│ │
|
|
52
|
+
│ Run pip-audit check against current requirements files │
|
|
79
53
|
│ • publish Build and upload this project to PyPi │
|
|
80
54
|
│ • shell-completion │
|
|
81
55
|
│ Setup shell completion for this CLI (Currently only for bash and zsh) │
|
|
@@ -91,6 +65,7 @@ usage: ./dev-cli.py [-h] {coverage,install,lint,mypy,nox,pip-audit,publish,shell
|
|
|
91
65
|
│ • update-test-snapshot-files │
|
|
92
66
|
│ Update all test snapshot files (by remove and recreate all snapshot │
|
|
93
67
|
│ files) │
|
|
68
|
+
│ • uv-audit Run "uv audit" against the locked dependencies │
|
|
94
69
|
│ • version Print version and exit │
|
|
95
70
|
╰────────────────────────────────────────────────────────────────────────────────────────╯
|
|
96
71
|
```
|
|
@@ -219,6 +194,15 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
219
194
|
|
|
220
195
|
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
|
|
221
196
|
|
|
197
|
+
* [v0.34.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.33.0...v0.34.0)
|
|
198
|
+
* 2026-11-20 - Deprecate pip-audit, add "uv audit"
|
|
199
|
+
* 2026-11-20 - Update uv exclude-newer date to allow non-vulnerable version 0.13.9
|
|
200
|
+
* 2026-11-20 - Add AGENTS.md and update skill
|
|
201
|
+
* 2026-10-03 - Expand tests
|
|
202
|
+
* [v0.33.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.2...v0.33.0)
|
|
203
|
+
* 2026-09-21 - NEW: optional `force_dev_platform` in [tool.cli_base]
|
|
204
|
+
* 2026-09-21 - Apply project updates
|
|
205
|
+
* 2026-09-21 - Add project links to README
|
|
222
206
|
* [v0.32.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.1...v0.32.2)
|
|
223
207
|
* 2026-09-13 - fix more github -> codeberg links
|
|
224
208
|
* [v0.32.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.32.0...v0.32.1)
|
|
@@ -226,6 +210,9 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
226
210
|
* 2026-09-13 - NEW: git.get_remote_info()
|
|
227
211
|
* 2026-09-13 - Update README
|
|
228
212
|
* 2026-09-11 - README.md aktualisiert
|
|
213
|
+
|
|
214
|
+
<details><summary>Expand older history entries ...</summary>
|
|
215
|
+
|
|
229
216
|
* [v0.32.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.31.1...v0.32.0)
|
|
230
217
|
* 2026-09-11 - GitHub -> Codeberg + Radicle
|
|
231
218
|
* [v0.31.1](https://codeberg.org/jedie/cli-base-utilities/compare/v0.30.0...v0.31.1)
|
|
@@ -233,9 +220,6 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
233
220
|
* 2026-08-22 - apply projects upgrades
|
|
234
221
|
* 2026-06-16 - Enhance README utils
|
|
235
222
|
* 2026-06-16 - remove lock file from git
|
|
236
|
-
|
|
237
|
-
<details><summary>Expand older history entries ...</summary>
|
|
238
|
-
|
|
239
223
|
* [v0.30.0](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.2...v0.30.0)
|
|
240
224
|
* 2026-04-11 - Enhance print_version(): Add optional project_name and clean module name
|
|
241
225
|
* [v0.29.2](https://codeberg.org/jedie/cli-base-utilities/compare/v0.29.1...v0.29.2)
|
|
@@ -439,3 +423,55 @@ It's easier to temporarily uninstall the hooks, create the release and install t
|
|
|
439
423
|
|
|
440
424
|
|
|
441
425
|
[comment]: <> (✂✂✂ auto generated history end ✂✂✂)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
## update-project skill
|
|
432
|
+
|
|
433
|
+
This project has a `.vibe/skills/update-project/SKILL.md` skill for **Mistral Vibe** that updates project dependencies and runs tests. It updates pyproject.toml dependencies, runs tests, and fixes tests only if failures are due to API changes from newer package versions.
|
|
434
|
+
|
|
435
|
+
Example CLI call to run this skill:
|
|
436
|
+
```bash
|
|
437
|
+
vibe "update project"
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
## GitHub suspended me!
|
|
441
|
+
|
|
442
|
+
**Important notice:**
|
|
443
|
+
|
|
444
|
+
----
|
|
445
|
+
|
|
446
|
+
GitHub _suspended_ [my account](https://github.com/jedie) sometime in late August 2026 !
|
|
447
|
+
There was **no** warning beforehand, nor **any explanation** of the reasons afterwards.
|
|
448
|
+
Since then, I have had **no access** or control over my data on GitHub.
|
|
449
|
+
|
|
450
|
+
All my projects and everything about me have completely disappeared.
|
|
451
|
+
**Everything** just results in a **404 "Not Found"** error page.
|
|
452
|
+
|
|
453
|
+
A support request still hasn't been answered, even after several weeks (apart from a confirmation that the request was received).
|
|
454
|
+
|
|
455
|
+
For that reason, I have been looking for a new home for all my OpenSource projects.
|
|
456
|
+
(Or rather, I am in the process of republishing all my projects elsewhere.)
|
|
457
|
+
|
|
458
|
+
Now you can find my on these place**s**:
|
|
459
|
+
|
|
460
|
+
* [**Codeberg**.org/jedie](https://codeberg.org/jedie)
|
|
461
|
+
* [**OpenCommit**.eu/jedie](https://opencommit.eu/jedie)
|
|
462
|
+
* [**GitLab**.com/users/jedie](https://gitlab.com/users/jedie/projects)
|
|
463
|
+
* [**Radicle**](https://radicle.network/install): [did:key:z6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934](https://radicle.network/nodes/iris.radicle.network/users/did%3Akey%3Az6MkfvNUuBCwRtNZwANEAGd4vaTzyuZXMKfiSyjoBALga934) | [jedie.radicle.garden](https://radicle.network/nodes/jedie.radicle.garden)
|
|
464
|
+
|
|
465
|
+
That is why there will probably be a lot of broken links pointing to my GitHub account for quite some time!
|
|
466
|
+
|
|
467
|
+
#GitHubSuspendedMe #GiveUpGitHub
|
|
468
|
+
|
|
469
|
+
----
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
## Project links
|
|
473
|
+
|
|
474
|
+
* Codeberg: https://codeberg.org/jedie/cli-base-utilities/
|
|
475
|
+
* OpenCommit: https://opencommit.eu/jedie/cli-base-utilities/
|
|
476
|
+
* GitLab: https://gitlab.com/jedie/cli-base-utilities/
|
|
477
|
+
* PyPi: https://pypi.org/project/cli-base-utilities/
|
|
@@ -8,6 +8,7 @@ from cli_base.cli_tools.dev_tools import run_unittest_cli
|
|
|
8
8
|
from cli_base.cli_tools.subprocess_utils import ToolsExecutor
|
|
9
9
|
from cli_base.cli_tools.verbosity import setup_logging
|
|
10
10
|
from cli_base.run_pip_audit import run_pip_audit
|
|
11
|
+
from cli_base.run_uv_audit import run_uv_audit
|
|
11
12
|
from cli_base.tyro_commands import TyroVerbosityArgType
|
|
12
13
|
|
|
13
14
|
|
|
@@ -27,12 +28,23 @@ def install():
|
|
|
27
28
|
@app.command
|
|
28
29
|
def pip_audit(verbosity: TyroVerbosityArgType):
|
|
29
30
|
"""
|
|
31
|
+
DEPRECATED: Will be removed in the future, use "uv-audit" instead.
|
|
32
|
+
|
|
30
33
|
Run pip-audit check against current requirements files
|
|
31
34
|
"""
|
|
32
35
|
setup_logging(verbosity=verbosity)
|
|
33
36
|
run_pip_audit(base_path=PACKAGE_ROOT, verbosity=verbosity)
|
|
34
37
|
|
|
35
38
|
|
|
39
|
+
@app.command
|
|
40
|
+
def uv_audit(verbosity: TyroVerbosityArgType):
|
|
41
|
+
"""
|
|
42
|
+
Run "uv audit" against the locked dependencies
|
|
43
|
+
"""
|
|
44
|
+
setup_logging(verbosity=verbosity)
|
|
45
|
+
run_uv_audit(base_path=PACKAGE_ROOT, verbosity=verbosity)
|
|
46
|
+
|
|
47
|
+
|
|
36
48
|
@app.command
|
|
37
49
|
def update(verbosity: TyroVerbosityArgType):
|
|
38
50
|
"""
|
|
@@ -43,7 +55,7 @@ def update(verbosity: TyroVerbosityArgType):
|
|
|
43
55
|
tools_executor = ToolsExecutor(cwd=PACKAGE_ROOT)
|
|
44
56
|
tools_executor.verbose_check_call('uv', 'lock', '--upgrade')
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
run_uv_audit(base_path=PACKAGE_ROOT, verbosity=verbosity)
|
|
47
59
|
|
|
48
60
|
# Install new dependencies in current .venv:
|
|
49
61
|
tools_executor.verbose_check_call('uv', 'sync')
|
|
@@ -215,6 +215,21 @@ class GitlabInfo(GitProjectInfo):
|
|
|
215
215
|
return f'https://gitlab.com/{self.user_name}/{self.project_name}/-'
|
|
216
216
|
|
|
217
217
|
|
|
218
|
+
DOMAIN2PROJECT_INFO = {
|
|
219
|
+
'codeberg.org': CodebergInfo,
|
|
220
|
+
'github.com': GithubInfo,
|
|
221
|
+
'gitlab.com': GitlabInfo,
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def get_git_project_info(*, url) -> GitProjectInfo | None:
|
|
226
|
+
for domain, project_info in DOMAIN2PROJECT_INFO.items():
|
|
227
|
+
if domain in url:
|
|
228
|
+
return project_info
|
|
229
|
+
logger.info('Unknown hosting service from url: %r', url)
|
|
230
|
+
return None
|
|
231
|
+
|
|
232
|
+
|
|
218
233
|
def get_git_root(path: Path):
|
|
219
234
|
if len(path.parts) == 1 or not path.is_dir():
|
|
220
235
|
return None
|
|
@@ -702,7 +717,11 @@ class Git:
|
|
|
702
717
|
return url
|
|
703
718
|
|
|
704
719
|
def get_project_info(
|
|
705
|
-
self,
|
|
720
|
+
self,
|
|
721
|
+
name='origin',
|
|
722
|
+
action_type='push',
|
|
723
|
+
force_git_project_info: GitProjectInfo | None = None,
|
|
724
|
+
verbose=True,
|
|
706
725
|
) -> GitProjectInfo | None:
|
|
707
726
|
url = self.get_remote_url(name=name, action_type=action_type, verbose=verbose)
|
|
708
727
|
if not url:
|
|
@@ -712,15 +731,13 @@ class Git:
|
|
|
712
731
|
logger.info('Non git url: %r', url)
|
|
713
732
|
return
|
|
714
733
|
|
|
715
|
-
if
|
|
716
|
-
klass =
|
|
717
|
-
elif 'github.com' in url:
|
|
718
|
-
klass = GithubInfo
|
|
719
|
-
elif 'gitlab.com' in url:
|
|
720
|
-
klass = GitlabInfo
|
|
734
|
+
if force_git_project_info:
|
|
735
|
+
klass = force_git_project_info
|
|
721
736
|
else:
|
|
722
|
-
|
|
723
|
-
|
|
737
|
+
klass = get_git_project_info(url=url)
|
|
738
|
+
if not klass:
|
|
739
|
+
logger.debug('Unknown hosting service from url: %r', url)
|
|
740
|
+
return
|
|
724
741
|
|
|
725
742
|
matches = re.findall(r'[:/]([^:/]+?)/([^/]+?).git', url)
|
|
726
743
|
if matches:
|