pre-commit-crocodile 2.1.0__tar.gz → 3.1.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.
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.cz.yaml +3 -3
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.gitlab-ci.yml +17 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.pre-commit-config.yaml +31 -28
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/CHANGELOG.md +89 -0
- {pre_commit_crocodile-2.1.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-3.1.0}/PKG-INFO +39 -5
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/README.md +36 -4
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/config/cliff.toml +1 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/codestyle/Dockerfile +1 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/commits/Dockerfile +1 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/deploy/Dockerfile +1 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/pages/Dockerfile +4 -2
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/preview/Dockerfile +1 -1
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/commitizen.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/commits.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/components.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/hooks.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/pre-commit.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/prepare.sh +14 -2
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/settings.md +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/mkdocs.yml +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0/pre_commit_crocodile.egg-info}/PKG-INFO +39 -5
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/pre_commit_crocodile.egg-info/SOURCES.txt +7 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/pre_commit_crocodile.egg-info/requires.txt +2 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/quality.txt +1 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/runtime.txt +2 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/sonar-project.properties +3 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/assets/.cz.yaml +3 -3
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/assets/.pre-commit-config.yaml +7 -0
- pre_commit_crocodile-3.1.0/src/cli/entrypoint.py +415 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/cli/main.py +36 -5
- pre_commit_crocodile-3.1.0/src/features/argcomplete.py +39 -0
- pre_commit_crocodile-3.1.0/src/features/commitizen.py +128 -0
- pre_commit_crocodile-3.1.0/src/features/gcil.py +168 -0
- pre_commit_crocodile-3.1.0/src/features/git.py +73 -0
- pre_commit_crocodile-3.1.0/src/features/precommit.py +249 -0
- pre_commit_crocodile-3.1.0/src/features/readme.py +46 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/hooks/configurations.py +14 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/hooks/prepare_commit_message.py +51 -4
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/package/bundle.py +2 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/package/updates.py +2 -2
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/system/platform.py +20 -0
- pre_commit_crocodile-3.1.0/src/types/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/templates/commits.yml +1 -1
- pre_commit_crocodile-2.1.0/src/cli/entrypoint.py +0 -415
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.coveragerc +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.gitattributes +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.gitignore +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.markdownlint.json +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.pre-commit-hooks.yaml +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.style.yapf +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.vscode/extensions.json +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/.vscode/settings.json +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/LICENSE +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/test-coverage-linux/Dockerfile +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/test-coverage-windows/Dockerfile +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/containers/test-linux/Dockerfile +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/preview.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/preview.svg +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/docs/template.svg +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/mypy.ini +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/pre_commit_crocodile.egg-info/dependency_links.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/pre_commit_crocodile.egg-info/entry_points.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/pre_commit_crocodile.egg-info/top_level.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/build.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/commits.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/coverage.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/deploy.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/docs.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/pages.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/requirements/tests.txt +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/setup.cfg +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/setup.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/__main__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/assets/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/cli/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0/src/hooks → pre_commit_crocodile-3.1.0/src/features}/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0/src/package → pre_commit_crocodile-3.1.0/src/hooks}/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0/src/prints → pre_commit_crocodile-3.1.0/src/package}/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/package/settings.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/package/version.py +0 -0
- {pre_commit_crocodile-2.1.0/src/system → pre_commit_crocodile-3.1.0/src/prints}/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/prints/boxes.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/prints/colors.py +0 -0
- {pre_commit_crocodile-2.1.0/src/types → pre_commit_crocodile-3.1.0/src/system}/__init__.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/system/commands.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/types/environments.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/src/types/strings.py +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/arguments/test.sh +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/colors/test.sh +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/macos/test.sh +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/settings/test.sh +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/versions/test.sh +0 -0
- {pre_commit_crocodile-2.1.0 → pre_commit_crocodile-3.1.0}/tests/windows/test.sh +0 -0
|
@@ -133,18 +133,18 @@ commitizen:
|
|
|
133
133
|
- type: input
|
|
134
134
|
name: scope
|
|
135
135
|
message: 'Scope of the change :'
|
|
136
|
-
filter: '
|
|
136
|
+
filter: 'required_validator_scope'
|
|
137
137
|
default: ''
|
|
138
138
|
- type: input
|
|
139
139
|
name: subject
|
|
140
140
|
message: 'Title of the commit (starting in lower case and without period) :'
|
|
141
|
-
filter: '
|
|
141
|
+
filter: 'required_validator_title_strip'
|
|
142
142
|
default: ''
|
|
143
143
|
- type: input
|
|
144
144
|
name: body
|
|
145
145
|
message: 'Additional contextual message (Empty to skip) :'
|
|
146
146
|
default: 'Issue: #...'
|
|
147
|
-
filter: '
|
|
147
|
+
filter: 'multiple_line_breaker'
|
|
148
148
|
- type: input
|
|
149
149
|
name: footer
|
|
150
150
|
message: 'Footer information and references (Empty to skip) :'
|
|
@@ -246,7 +246,7 @@ serve:
|
|
|
246
246
|
# Prepare documentation
|
|
247
247
|
- |
|
|
248
248
|
mkdir -p ./docs/.cache/
|
|
249
|
-
ls -1 ./.cz.yaml ./docs/* ./mkdocs.yml ./README.md | entr sh ./docs/prepare.sh &
|
|
249
|
+
ls -1 ./.cz.yaml ./config/* ./docs/* ./mkdocs.yml ./README.md | entr sh ./docs/prepare.sh &
|
|
250
250
|
echo -n "${!}" >./docs/.cache/.serve.pid
|
|
251
251
|
sleep 2
|
|
252
252
|
# Generate documentation
|
|
@@ -586,6 +586,15 @@ sonarcloud:
|
|
|
586
586
|
# Configure Git securities
|
|
587
587
|
- git config --global --add safe.directory "${CI_PROJECT_DIR}"
|
|
588
588
|
script:
|
|
589
|
+
# Prevent local usage
|
|
590
|
+
- |
|
|
591
|
+
if [ ! -z "${CI_LOCAL:-}" ] && [ -z "${SONAR_HOST_URL:-}" ]; then
|
|
592
|
+
set +x
|
|
593
|
+
echo ' '
|
|
594
|
+
echo ' [ERROR] SonarCloud quality job is meant for CI executions only...'
|
|
595
|
+
echo ' '
|
|
596
|
+
exit 1
|
|
597
|
+
fi
|
|
589
598
|
# Scan with SonarCloud
|
|
590
599
|
- sonar-scanner -Dsonar.projectVersion=$(git describe --always) -Dsonar.branch.name=${CI_COMMIT_REF_NAME}
|
|
591
600
|
rules:
|
|
@@ -598,6 +607,8 @@ sonarcloud:
|
|
|
598
607
|
when: always
|
|
599
608
|
- if: $CI_COMMIT_REF_NAME == "main"
|
|
600
609
|
when: always
|
|
610
|
+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
611
|
+
when: always
|
|
601
612
|
- when: never
|
|
602
613
|
allow_failure: true
|
|
603
614
|
|
|
@@ -693,6 +704,11 @@ pages:
|
|
|
693
704
|
artifacts: false
|
|
694
705
|
optional: true
|
|
695
706
|
script:
|
|
707
|
+
# Fetch all tags
|
|
708
|
+
- |
|
|
709
|
+
if [ -z "${CI_LOCAL:-}" ]; then
|
|
710
|
+
git fetch --tags --unshallow || true
|
|
711
|
+
fi
|
|
696
712
|
# Prepare documentation
|
|
697
713
|
- sh ./docs/prepare.sh
|
|
698
714
|
# Generate documentation
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# pre-commit configurations
|
|
2
2
|
default_install_hook_types:
|
|
3
|
-
-
|
|
3
|
+
- commit-msg
|
|
4
4
|
- pre-commit
|
|
5
5
|
- pre-push
|
|
6
|
-
default_stages:
|
|
7
6
|
- prepare-commit-msg
|
|
7
|
+
default_stages:
|
|
8
|
+
- commit-msg
|
|
8
9
|
- pre-commit
|
|
9
10
|
- pre-push
|
|
11
|
+
- prepare-commit-msg
|
|
10
12
|
minimum_pre_commit_version: 3.8.0
|
|
11
13
|
|
|
12
14
|
# pre-commit exclusions
|
|
@@ -53,6 +55,13 @@ repos:
|
|
|
53
55
|
- id: trailing-whitespace
|
|
54
56
|
args: ['--markdown-linebreak-ext=md']
|
|
55
57
|
|
|
58
|
+
# Repository: pre-commit-hooks
|
|
59
|
+
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
60
|
+
rev: v1.10.0
|
|
61
|
+
hooks:
|
|
62
|
+
- id: python-check-blanket-type-ignore
|
|
63
|
+
- id: python-no-eval
|
|
64
|
+
|
|
56
65
|
# Repository: commitizen
|
|
57
66
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
58
67
|
rev: v3.29.0
|
|
@@ -69,37 +78,31 @@ repos:
|
|
|
69
78
|
hooks:
|
|
70
79
|
- id: prepare-commit-message
|
|
71
80
|
name: Prepare commit message automatically
|
|
81
|
+
entry: python ./src/hooks/prepare_commit_message.py
|
|
82
|
+
language: python
|
|
72
83
|
description: Automatically prepare the commit message for manual edition
|
|
84
|
+
args: []
|
|
73
85
|
stages:
|
|
74
86
|
- prepare-commit-msg
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
language: python
|
|
87
|
+
additional_dependencies:
|
|
88
|
+
- PyYAML>=6.0
|
|
78
89
|
|
|
79
|
-
# Repository:
|
|
80
|
-
- repo:
|
|
90
|
+
# Repository: gcil
|
|
91
|
+
- repo: https://gitlab.com/RadianDevCore/tools/gcil
|
|
92
|
+
rev: 9db7ca21
|
|
81
93
|
hooks:
|
|
82
|
-
- id:
|
|
83
|
-
name:
|
|
94
|
+
- id: run-gcil-push
|
|
95
|
+
name: Run GitLab CI job with gcil (codestyle)
|
|
84
96
|
description: Automatically run GitLab CI job with gcil (codestyle)
|
|
85
|
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
language: system
|
|
90
|
-
- id: local-gcil-lint
|
|
91
|
-
name: check lint job with gcil
|
|
97
|
+
args:
|
|
98
|
+
- 'codestyle'
|
|
99
|
+
- id: run-gcil-push
|
|
100
|
+
name: Run GitLab CI job with gcil (lint)
|
|
92
101
|
description: Automatically run GitLab CI job with gcil (lint)
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
language: system
|
|
98
|
-
- id: local-gcil-typings
|
|
99
|
-
name: check typings job with gcil
|
|
102
|
+
args:
|
|
103
|
+
- 'lint'
|
|
104
|
+
- id: run-gcil-push
|
|
105
|
+
name: Run GitLab CI job with gcil (typings)
|
|
100
106
|
description: Automatically run GitLab CI job with gcil (typings)
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
entry: gcil -e 'PRE_COMMIT'
|
|
104
|
-
args: ['typings']
|
|
105
|
-
language: system
|
|
107
|
+
args:
|
|
108
|
+
- 'typings'
|
|
@@ -1,5 +1,94 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<a name="3.1.0"></a>
|
|
4
|
+
## [3.1.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/3.0.0...3.1.0) (2024-08-25)
|
|
5
|
+
|
|
6
|
+
### ✨ Features
|
|
7
|
+
|
|
8
|
+
- **cli:** implement '--stage STAGE' for '--run' to specify stage ([9ef3d2a](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9ef3d2ac4c9017ca247595da41a7cd9e5f998bd7))
|
|
9
|
+
- **configurations:** implement matcher for 'sonar-project.properties' ([b9627a6](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/b9627a653a5336e3b1483894bd7a3c0c9b71c514))
|
|
10
|
+
- **gcil:** inject 'gcil' badge automatically if configured or installed ([6cfe076](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/6cfe07681fe0ac7e8ac35d4c95da4bc36a8f045f))
|
|
11
|
+
- **gcil:** implement automatic 'run-gcil-push' hooks with whitelist ([56e9e6c](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/56e9e6ca4c46e11eb86479127a98042e9a039693))
|
|
12
|
+
- **main:** add '-D' as short flag for '--default' long flag ([6515c29](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/6515c295868477d4bb3f88111b67fbf1d157ae5d))
|
|
13
|
+
- **pre-commit:** add 'pygrep-hooks' hooks to 'pre-commit' template ([8813f81](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8813f8119c88c39a62834fcf1f5a0b8fe74211aa))
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **features:** enforce 'Commands' conditional arguments syntax ([142108f](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/142108f37896f9523e43144f3433092b1b4b5952))
|
|
18
|
+
|
|
19
|
+
### 📚 Documentation
|
|
20
|
+
|
|
21
|
+
- **cliff:** improve 'Unreleased' and refactor to 'Development' ([abaf0c9](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/abaf0c9c11ac9e1e5bbf37fa3d5fe99f9290e436))
|
|
22
|
+
- **mkdocs, prepare:** resolve Markdown support in hidden '<details>' ([d647166](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/d647166f68fcccd2ab7ec1c3717622fa365a8bd8))
|
|
23
|
+
- **prepare:** regenerate development 'CHANGELOG' with 'git-cliff' ([0cc6cc7](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/0cc6cc7995c56d91b1fb1eb7f9f63c35ce7c3609))
|
|
24
|
+
- **readme:** link against 'gcil' and 'pexpect-executor' documentation pages ([3044355](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/304435558aeab4e9792b4029c8a9d9b26ef54771))
|
|
25
|
+
- **readme:** add 'gcil:enabled' documentation badge ([f06542b](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f06542bac9d87e6844171cca4d4c96f9182ff91f))
|
|
26
|
+
|
|
27
|
+
### ⚙️ Cleanups
|
|
28
|
+
|
|
29
|
+
- **sonar:** wait for SonarCloud Quality Gate status ([f48b69e](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f48b69efeb94f034b3fbf84dfaeebb35dfc0e6ea))
|
|
30
|
+
|
|
31
|
+
### 🚀 CI
|
|
32
|
+
|
|
33
|
+
- **gitlab-ci:** prevent 'sonarcloud' job launch upon 'gcil' local use ([8ba9700](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8ba97001ad13c6feb40e02dfac391c1169740f0f))
|
|
34
|
+
- **gitlab-ci:** run SonarCloud analysis on merge request pipelines ([0f34e2d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/0f34e2da8dfff5e7eb27a987dd02ffcc2c7aa3f6))
|
|
35
|
+
- **gitlab-ci:** watch for 'config/*' changes in 'serve' job ([c47e433](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/c47e4339fc6f321debce26c57dd265fea51eb3f8))
|
|
36
|
+
- **gitlab-ci:** fetch Git tags history in 'pages' job execution ([c4c8b71](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/c4c8b71f55198eae1e273cd00e81df94a87c15f9))
|
|
37
|
+
- **gitlab-ci:** fetch with '--unshallow' for full history in 'pages' ([cd6d65e](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/cd6d65e3f82b61afc7d56aadec907bf1489e688a))
|
|
38
|
+
|
|
39
|
+
### 📦 Build
|
|
40
|
+
|
|
41
|
+
- **containers:** use 'apk add --no-cache' for lighter images ([d13b26a](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/d13b26a2bc88327bebfad60e635604ac786c9f4a))
|
|
42
|
+
- **pages:** add 'git-cliff' to the ':pages' image ([26f26c6](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/26f26c6f0b06e3835a5d553eb5342d2ba5ec94da))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<a name="3.0.0"></a>
|
|
46
|
+
## [3.0.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/2.1.0...3.0.0) (2024-08-25)
|
|
47
|
+
|
|
48
|
+
### ✨ Features
|
|
49
|
+
|
|
50
|
+
- **cli:** implement '--config FOLDER' and '--default' configurations ([081fd94](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/081fd94afd0d89ef2ac3ca23c68858c53df1216d))
|
|
51
|
+
- **cli:** implement '--clean' to run 'pre-commit clean' cache cleanups ([b971337](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/b9713370b85e610aa724c2f45322c50dc461227d))
|
|
52
|
+
- **entrypoint:** configure unused hooks upon '--default' use ([a271c43](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/a271c431988f116a57f5fa375eb1bf8cf4dbbc89))
|
|
53
|
+
- **entrypoint:** inject badge in 'README.md' upon '--configure' ([739774d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/739774d6b44f7cd5ce3b45738758215e74152f69))
|
|
54
|
+
- **entrypoint:** add 'README.md' to '--configure' commmands hint ([8d7ddcc](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8d7ddccf2b530ad02c92a0a29b0894f37e8154df))
|
|
55
|
+
- **entrypoint:** migrate to commitizen '3.29.0+adriandc.20240825' ([9c6f378](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9c6f37849e17f3ccd2baf302789045ed16424e86))
|
|
56
|
+
- **entrypoint:** allow newer commitizen versions usage ([138ef35](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/138ef3533a03ceb0b5a6a7a7568795efd717e975))
|
|
57
|
+
- **entrypoint, features:** refactor into static features classes ([9b85378](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9b85378eb831690fe83550dbea5b9575e1f04fa7))
|
|
58
|
+
- **🚨 BREAKING CHANGE 🚨 |** **main:** avoid running '--run' features upon '--enable' ([1c9134d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1c9134d152c69fbe34192461f62f1522e32bac21))
|
|
59
|
+
- **prepare_commit_message:** inject signoff if commitizen 'always_signoff' ([f402004](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f402004cde6c84a6bc8857fd6cd6ddcd0618d0a0))
|
|
60
|
+
- **updates:** migrate from deprecated 'pkg_resources' to 'packaging' ([1205341](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1205341bc1b7d7f96dfb8830b32c8853a96a31de))
|
|
61
|
+
|
|
62
|
+
### 🐛 Bug Fixes
|
|
63
|
+
|
|
64
|
+
- **entrypoint:** resolve unused hooks issues with '--default' ([9dc8309](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9dc8309dc8c2ff819d7ffe8fc0f7b46f1e52e438))
|
|
65
|
+
- **entrypoint:** remove 'README.md' debugging log in '--configure' ([71ceb42](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/71ceb42808eaabf64998a79624a3be0a7995e29c))
|
|
66
|
+
- **precommit:** resolve '--default' use with existing configuration ([7543149](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/7543149382f5280b074a24b1dbd403821810e36e))
|
|
67
|
+
- **templates:** migrate to 'run-gcil-*' skipped hooks names ([63df3c3](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/63df3c36819540f119f82c1a37e7848078580e13))
|
|
68
|
+
|
|
69
|
+
### 📚 Documentation
|
|
70
|
+
|
|
71
|
+
- **readme:** add badge compatibility and syntax documentation ([9de0ad9](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9de0ad97fdadf6cccd958b425ab5aafda1c02b38))
|
|
72
|
+
- **readme:** add 'mkdocs' and 'mkdocs-material' references ([f9eac20](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f9eac20e5db2c7b383462930c9b1ca194da07af7))
|
|
73
|
+
- **requirements:** install 'types-PyYAML>=6.0.12.2' as quality dependency ([4d09100](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/4d0910084d1392467dbca5298c01bcab7befaec8))
|
|
74
|
+
|
|
75
|
+
### ⚙️ Cleanups
|
|
76
|
+
|
|
77
|
+
- **commitizen:** migrate to new 'filter' syntax (commitizen#1207) ([4342bea](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/4342bea56efb8e9c45bcaa7372770cc0c240ae44))
|
|
78
|
+
- **entrypoint:** constantify '{PACKAGE_REVISION}' template string ([8a77371](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8a77371e9f476293941e27748817b4a858cb6e9a))
|
|
79
|
+
- **pre-commit:** add 'python-check-blanket-type-ignore' and 'python-no-eval' ([31738fe](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/31738fe68508926ed433190d870d7aea4c9464a5))
|
|
80
|
+
- **pre-commit:** simplify and unify 'local-gcil' hooks syntax ([001b11d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/001b11d840056d2a0a30faabac2e246f450163dd))
|
|
81
|
+
- **pre-commit:** add 'additional_dependencies' for missing YAML ([9c80622](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9c806225083194d7d4e21de7b49fcefe38b53bfd))
|
|
82
|
+
- **pre-commit:** improve syntax for 'args' arguments ([0d7e947](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/0d7e9476f5bf41c56ca699c4339a74900fa073c8))
|
|
83
|
+
- **pre-commit:** migrate to 'run-gcil-*' template 'gcil' hooks ([8e0f5cf](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8e0f5cfcee7db56b2dff830401e97ce8b6a70f86))
|
|
84
|
+
- **pre-commit:** update against 'run-gcil-push' hook template ([cb69d0b](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/cb69d0bbe2b1ca9f0338e005ec1447577355f856))
|
|
85
|
+
- **pre-commit:** add missing 'commit-msg' stage for commitizen ([a27b9dd](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/a27b9dd23b33a0fbd99164a386d01485cc5b51c0))
|
|
86
|
+
|
|
87
|
+
### 📦 Build
|
|
88
|
+
|
|
89
|
+
- **requirements:** add 'PyYAML>=6.0' as runtime dependency ([2fe8d58](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/2fe8d58e586daa760d8d062368cdfe33028cddc4))
|
|
90
|
+
|
|
91
|
+
|
|
3
92
|
<a name="2.1.0"></a>
|
|
4
93
|
## [2.1.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/2.0.2...2.1.0) (2024-08-24)
|
|
5
94
|
|
{pre_commit_crocodile-2.1.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-3.1.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pre-commit-crocodile
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Git hooks intended for developers using pre-commit
|
|
5
5
|
Home-page: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile
|
|
6
6
|
Author: Adrian DC
|
|
@@ -27,6 +27,8 @@ Requires-Python: >=3,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3
|
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE
|
|
29
29
|
Requires-Dist: colored>=1.4.2
|
|
30
|
+
Requires-Dist: packaging>=24.0
|
|
31
|
+
Requires-Dist: PyYAML>=6.0
|
|
30
32
|
Requires-Dist: setuptools>=45.1.0
|
|
31
33
|
Requires-Dist: update_checker>=0.18.0
|
|
32
34
|
|
|
@@ -42,6 +44,7 @@ Requires-Dist: update_checker>=0.18.0
|
|
|
42
44
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
43
45
|
[](https://github.com/pre-commit/pre-commit)
|
|
44
46
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
47
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
45
48
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
46
49
|
|
|
47
50
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -64,7 +67,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
64
67
|
|
|
65
68
|
## Preview
|
|
66
69
|
|
|
67
|
-

|
|
68
71
|
|
|
69
72
|
---
|
|
70
73
|
|
|
@@ -75,7 +78,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
75
78
|
|
|
76
79
|
```yaml
|
|
77
80
|
usage: pre-commit-crocodile [-h] [--version] [--no-color] [--update-check] [--settings] [--set GROUP KEY VAL]
|
|
78
|
-
[-l | -i | -c | -e | -d | -a | -r] [--]
|
|
81
|
+
[-l | -i | -c | -e | -d | -a | -C | -r] [--config FOLDER | -D] [--stage STAGE] [--]
|
|
79
82
|
|
|
80
83
|
pre-commit-crocodile: Git hooks intended for developers using pre-commit
|
|
81
84
|
|
|
@@ -96,8 +99,15 @@ modes arguments:
|
|
|
96
99
|
-e, --enable # Enable pre-commit hooks
|
|
97
100
|
-d, --disable # Disable pre-commit hooks
|
|
98
101
|
-a, --autoupdate # Autoupdate pre-commit hooks
|
|
102
|
+
-C, --clean # Clean pre-commit cached hooks
|
|
99
103
|
-r, --run # Run pre-commit hooks
|
|
100
104
|
|
|
105
|
+
configurations arguments:
|
|
106
|
+
--config FOLDER # Use configurations from a specific folder
|
|
107
|
+
-D, --default # Use global default configurations instead of sources
|
|
108
|
+
--stage STAGE # Run a specific pre-commit stage with --run
|
|
109
|
+
# (use 'list' to list supported stages)
|
|
110
|
+
|
|
101
111
|
positional arguments:
|
|
102
112
|
-- # Positional arguments separator (recommended)
|
|
103
113
|
```
|
|
@@ -126,6 +136,22 @@ positional arguments:
|
|
|
126
136
|
|
|
127
137
|
---
|
|
128
138
|
|
|
139
|
+
## Compatibility
|
|
140
|
+
|
|
141
|
+
Projects compatible with `pre-commit-crocodile` can use this badge to ease things for developers, both as an indicator and a documentation shortcut button :
|
|
142
|
+
|
|
143
|
+
> [](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
144
|
+
|
|
145
|
+
```markdown title="Badge in Markdown"
|
|
146
|
+
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
```html title="Badge in HTML"
|
|
150
|
+
<a href="https://radiandevcore.gitlab.io/tools/pre-commit-crocodile"><img src="https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab" alt="pre-commit-crocodile" style="max-width:100%;"></a>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
129
155
|
## Projects without configurations | [](https://github.com/pre-commit/pre-commit)
|
|
130
156
|
|
|
131
157
|
### Import configurations
|
|
@@ -168,6 +194,12 @@ pre-commit-crocodile --autoupdate
|
|
|
168
194
|
pre-commit-crocodile --disable
|
|
169
195
|
```
|
|
170
196
|
|
|
197
|
+
### Cleanup hooks
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
pre-commit-crocodile --clean
|
|
201
|
+
```
|
|
202
|
+
|
|
171
203
|
---
|
|
172
204
|
|
|
173
205
|
## Dependencies
|
|
@@ -185,11 +217,13 @@ pre-commit-crocodile --disable
|
|
|
185
217
|
|
|
186
218
|
- [.gitlab-ci.yml](https://docs.gitlab.com/ee/ci/yaml/): GitLab CI/CD Pipeline Configuration Reference
|
|
187
219
|
- [conventionalcommits](https://www.conventionalcommits.org/en/v1.0.0/): Conventional Commits specification for commit messages
|
|
188
|
-
- [gcil](https://
|
|
220
|
+
- [gcil](https://radiandevcore.gitlab.io/tools/gcil): Launch .gitlab-ci.yml jobs locally
|
|
189
221
|
- [git-cliff](https://github.com/orhun/git-cliff): CHANGELOG generator
|
|
190
222
|
- [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
|
|
223
|
+
- [mkdocs](https://www.mkdocs.org/): Project documentation with Markdown
|
|
224
|
+
- [mkdocs-material](https://squidfunk.github.io/mkdocs-material/): Material theme for mkdocs documentation
|
|
191
225
|
- [mypy](https://pypi.org/project/mypy/): Optional static typing for Python
|
|
192
|
-
- [pexpect-executor](https://
|
|
226
|
+
- [pexpect-executor](https://radiandevcore.gitlab.io/tools/pexpect-executor): Automate interactive CLI tools actions
|
|
193
227
|
- [PyPI](https://pypi.org/): The Python Package Index
|
|
194
228
|
- [termtosvg](https://pypi.org/project/termtosvg/): Record terminal sessions as SVG animations
|
|
195
229
|
- [twine](https://pypi.org/project/twine/): Utility for publishing on PyPI
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -32,7 +33,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
32
33
|
|
|
33
34
|
## Preview
|
|
34
35
|
|
|
35
|
-

|
|
36
37
|
|
|
37
38
|
---
|
|
38
39
|
|
|
@@ -43,7 +44,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
43
44
|
|
|
44
45
|
```yaml
|
|
45
46
|
usage: pre-commit-crocodile [-h] [--version] [--no-color] [--update-check] [--settings] [--set GROUP KEY VAL]
|
|
46
|
-
[-l | -i | -c | -e | -d | -a | -r] [--]
|
|
47
|
+
[-l | -i | -c | -e | -d | -a | -C | -r] [--config FOLDER | -D] [--stage STAGE] [--]
|
|
47
48
|
|
|
48
49
|
pre-commit-crocodile: Git hooks intended for developers using pre-commit
|
|
49
50
|
|
|
@@ -64,8 +65,15 @@ modes arguments:
|
|
|
64
65
|
-e, --enable # Enable pre-commit hooks
|
|
65
66
|
-d, --disable # Disable pre-commit hooks
|
|
66
67
|
-a, --autoupdate # Autoupdate pre-commit hooks
|
|
68
|
+
-C, --clean # Clean pre-commit cached hooks
|
|
67
69
|
-r, --run # Run pre-commit hooks
|
|
68
70
|
|
|
71
|
+
configurations arguments:
|
|
72
|
+
--config FOLDER # Use configurations from a specific folder
|
|
73
|
+
-D, --default # Use global default configurations instead of sources
|
|
74
|
+
--stage STAGE # Run a specific pre-commit stage with --run
|
|
75
|
+
# (use 'list' to list supported stages)
|
|
76
|
+
|
|
69
77
|
positional arguments:
|
|
70
78
|
-- # Positional arguments separator (recommended)
|
|
71
79
|
```
|
|
@@ -94,6 +102,22 @@ positional arguments:
|
|
|
94
102
|
|
|
95
103
|
---
|
|
96
104
|
|
|
105
|
+
## Compatibility
|
|
106
|
+
|
|
107
|
+
Projects compatible with `pre-commit-crocodile` can use this badge to ease things for developers, both as an indicator and a documentation shortcut button :
|
|
108
|
+
|
|
109
|
+
> [](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
110
|
+
|
|
111
|
+
```markdown title="Badge in Markdown"
|
|
112
|
+
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
```html title="Badge in HTML"
|
|
116
|
+
<a href="https://radiandevcore.gitlab.io/tools/pre-commit-crocodile"><img src="https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab" alt="pre-commit-crocodile" style="max-width:100%;"></a>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
97
121
|
## Projects without configurations | [](https://github.com/pre-commit/pre-commit)
|
|
98
122
|
|
|
99
123
|
### Import configurations
|
|
@@ -136,6 +160,12 @@ pre-commit-crocodile --autoupdate
|
|
|
136
160
|
pre-commit-crocodile --disable
|
|
137
161
|
```
|
|
138
162
|
|
|
163
|
+
### Cleanup hooks
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
pre-commit-crocodile --clean
|
|
167
|
+
```
|
|
168
|
+
|
|
139
169
|
---
|
|
140
170
|
|
|
141
171
|
## Dependencies
|
|
@@ -153,11 +183,13 @@ pre-commit-crocodile --disable
|
|
|
153
183
|
|
|
154
184
|
- [.gitlab-ci.yml](https://docs.gitlab.com/ee/ci/yaml/): GitLab CI/CD Pipeline Configuration Reference
|
|
155
185
|
- [conventionalcommits](https://www.conventionalcommits.org/en/v1.0.0/): Conventional Commits specification for commit messages
|
|
156
|
-
- [gcil](https://
|
|
186
|
+
- [gcil](https://radiandevcore.gitlab.io/tools/gcil): Launch .gitlab-ci.yml jobs locally
|
|
157
187
|
- [git-cliff](https://github.com/orhun/git-cliff): CHANGELOG generator
|
|
158
188
|
- [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
|
|
189
|
+
- [mkdocs](https://www.mkdocs.org/): Project documentation with Markdown
|
|
190
|
+
- [mkdocs-material](https://squidfunk.github.io/mkdocs-material/): Material theme for mkdocs documentation
|
|
159
191
|
- [mypy](https://pypi.org/project/mypy/): Optional static typing for Python
|
|
160
|
-
- [pexpect-executor](https://
|
|
192
|
+
- [pexpect-executor](https://radiandevcore.gitlab.io/tools/pexpect-executor): Automate interactive CLI tools actions
|
|
161
193
|
- [PyPI](https://pypi.org/): The Python Package Index
|
|
162
194
|
- [termtosvg](https://pypi.org/project/termtosvg/): Record terminal sessions as SVG animations
|
|
163
195
|
- [twine](https://pypi.org/project/twine/): Utility for publishing on PyPI
|
|
@@ -16,7 +16,7 @@ body = """
|
|
|
16
16
|
## [{{ version }}](<REPO>/commits/{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
|
|
17
17
|
{% endif %}\
|
|
18
18
|
{% else %}\
|
|
19
|
-
## [
|
|
19
|
+
## [Development](<REPO>/commits/main) ({{ commits | last | get(key='committer') | get(key='timestamp') | date(format="%Y-%m-%d") }})
|
|
20
20
|
{% endif %}\
|
|
21
21
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
22
22
|
### {{ group | striptags | trim | upper_first }}
|
|
@@ -2,8 +2,10 @@ ARG IMAGE_BASE=python:3-alpine
|
|
|
2
2
|
FROM $IMAGE_BASE
|
|
3
3
|
|
|
4
4
|
# Install dependencies
|
|
5
|
-
RUN apk add -q \
|
|
6
|
-
git
|
|
5
|
+
RUN apk add -q --no-cache \
|
|
6
|
+
git \
|
|
7
|
+
&& apk add -q --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/community \
|
|
8
|
+
git-cliff
|
|
7
9
|
|
|
8
10
|
# Install requirements
|
|
9
11
|
COPY --from='requirements' ./pages.txt /tmp/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|
|
@@ -8,7 +8,7 @@ docs_path=$(cd "$(dirname "${BASH_SOURCE:-${0}}")" && pwd -P)
|
|
|
8
8
|
root_path="${docs_path%/*}"
|
|
9
9
|
|
|
10
10
|
# Prepare cache
|
|
11
|
-
rm -f "${docs_path}/.cache
|
|
11
|
+
rm -f "${docs_path}/.cache/"*.md
|
|
12
12
|
mkdir -p "${docs_path}/.cache/"
|
|
13
13
|
cp -rfv "${docs_path}/"*.md "${docs_path}/.cache/"
|
|
14
14
|
|
|
@@ -51,7 +51,11 @@ sed -i "s#\(\[.*\]\)(.*/docs/#\1(assets/images/#g" "${docs_path}/.cache/index.md
|
|
|
51
51
|
|
|
52
52
|
# Export about/changelog
|
|
53
53
|
mkdir -p "${docs_path}/.cache/about/"
|
|
54
|
-
|
|
54
|
+
if ! type git-cliff >/dev/null 2>&1; then
|
|
55
|
+
alias git-cliff='./.tmp/git-cliff'
|
|
56
|
+
fi
|
|
57
|
+
git-cliff --no-exec --config "${root_path}/config/cliff.toml" --output "${docs_path}/.cache/about/changelog.md"
|
|
58
|
+
diff -u "${root_path}/CHANGELOG.md" "${docs_path}/.cache/about/changelog.md" || true
|
|
55
59
|
|
|
56
60
|
# Export about/license
|
|
57
61
|
{
|
|
@@ -62,6 +66,14 @@ cp -f "${root_path}/CHANGELOG.md" "${docs_path}/.cache/about/changelog.md"
|
|
|
62
66
|
cat "${root_path}/LICENSE"
|
|
63
67
|
} >"${docs_path}/.cache/about/license.md"
|
|
64
68
|
|
|
69
|
+
# Bind 'md_in_html' extension
|
|
70
|
+
sed -i \
|
|
71
|
+
-e 's/<\(details\)>/<\1 markdown>/g' \
|
|
72
|
+
-e 's/<\(div style="padding-left: 30px"\)>/<\1 markdown>/g' \
|
|
73
|
+
-e '/<div style="padding-left: 30px"/{ n; /<br/d; }' \
|
|
74
|
+
"${docs_path}/.cache/"*.md \
|
|
75
|
+
"${docs_path}/.cache/"*/*.md
|
|
76
|
+
|
|
65
77
|
# Show cache
|
|
66
78
|
echo ' '
|
|
67
79
|
ls -laR "${docs_path}/.cache/"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://sonarcloud.io/dashboard?id=RadianDevCore_pre-commit-crocodile)
|
|
11
11
|
[](https://github.com/pre-commit/pre-commit)
|
|
12
12
|
[](https://commitizen-tools.github.io/commitizen/)
|
|
13
|
+
[](https://radiandevcore.gitlab.io/tools/gcil)
|
|
13
14
|
[](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
|
|
14
15
|
|
|
15
16
|
Git hooks intended for developers using [pre-commit](https://pre-commit.com/) and [commitizen](https://commitizen-tools.github.io/commitizen/).
|