pre-commit-crocodile 6.0.0__tar.gz → 6.2.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-6.0.0 → pre_commit_crocodile-6.2.0}/.gitlab-ci.yml +5 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.pre-commit-config.yaml +2 -2
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/CHANGELOG.md +42 -0
- {pre_commit_crocodile-6.0.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-6.2.0}/PKG-INFO +3 -3
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/README.md +2 -2
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/commits/Dockerfile +7 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0/pre_commit_crocodile.egg-info}/PKG-INFO +3 -3
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/assets/.pre-commit-config.yaml +1 -1
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/assets/commits.yml +28 -1
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/cli/entrypoint.py +33 -16
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/cli/main.py +5 -1
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/gcil.py +4 -3
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/git.py +36 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/precommit.py +22 -18
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/readme.py +1 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/check_commitizen_branch.py +4 -2
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/system/commands.py +9 -2
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/templates/commits.yml +28 -1
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.coveragerc +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.cz.yaml +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.gitattributes +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.gitignore +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.gitmodules +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.markdownlint.json +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.pre-commit-hooks.yaml +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.style.yapf +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.vscode/extensions.json +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/.vscode/settings.json +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/LICENSE +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/config/cliff.toml +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/build/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/codestyle/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/deploy/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/pages/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/preview/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/rehost/images.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/test-coverage-linux/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/test-coverage-windows/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/test-linux/Dockerfile +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/.pages.in +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/images/favicon.png +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/scripts/mkdocs-exporter.js +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/stylesheets/custom.css +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/stylesheets/pdf.scss +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/commitizen.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/commits.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/components.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/hooks.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/pre-commit.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/prepare.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/preview.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/preview.svg +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/robots.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/settings.md +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/template.svg +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/templates/covers/back.html.j2 +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/templates/covers/front.html.j2 +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/mkdocs.yml +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/mypy.ini +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/SOURCES.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/dependency_links.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/entry_points.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/requires.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/top_level.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/build.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/commits.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/coverage.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/deploy.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/docs.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/pages.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/quality.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/runtime.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/requirements/tests.txt +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/setup.cfg +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/setup.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/sonar-project.properties +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/__main__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/assets/.cz.yaml +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/assets/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/cli/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/argcomplete.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/commitizen.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/radiandevcore.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/features/templates.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/check_yaml_ruamel_pure.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/configurations.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/prepare_commit_message.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/package/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/package/bundle.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/package/settings.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/package/updates.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/package/version.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/prints/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/prints/boxes.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/prints/colors.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/system/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/system/platform.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/types/__init__.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/types/environments.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/types/strings.py +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/arguments/test.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/colors/test.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/macos/test.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/settings/test.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/versions/test.sh +0 -0
- {pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/tests/windows/test.sh +0 -0
|
@@ -19,6 +19,11 @@ include:
|
|
|
19
19
|
ref: main
|
|
20
20
|
inputs:
|
|
21
21
|
stage: development
|
|
22
|
+
- project: RadianDevCore/gitlab-ci/components
|
|
23
|
+
file: /templates/gitlab-protections.yml
|
|
24
|
+
ref: main
|
|
25
|
+
inputs:
|
|
26
|
+
stage: development
|
|
22
27
|
- project: RadianDevCore/gitlab-ci/components
|
|
23
28
|
file: /templates/registry.yml
|
|
24
29
|
ref: main
|
|
@@ -39,7 +39,7 @@ repos:
|
|
|
39
39
|
|
|
40
40
|
# Repository: pre-commit-hooks
|
|
41
41
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
42
|
-
rev:
|
|
42
|
+
rev: v6.0.0
|
|
43
43
|
hooks:
|
|
44
44
|
- id: check-added-large-files
|
|
45
45
|
args: ['--maxkb=500']
|
|
@@ -117,7 +117,7 @@ repos:
|
|
|
117
117
|
|
|
118
118
|
# Repository: gcil
|
|
119
119
|
- repo: https://gitlab.com/RadianDevCore/tools/gcil
|
|
120
|
-
rev:
|
|
120
|
+
rev: 13.0.0
|
|
121
121
|
hooks:
|
|
122
122
|
- id: run-gcil-push
|
|
123
123
|
name: Run GitLab CI job with gcil (codestyle)
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<a name="6.2.0"></a>
|
|
4
|
+
## [6.2.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/6.1.0...6.2.0) (2025-08-11)
|
|
5
|
+
|
|
6
|
+
### ✨ Features
|
|
7
|
+
|
|
8
|
+
- **entrypoint, features:** fix configure without 'git' repository ([6719a65](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/6719a653511b8d846d5604c495a36959e885a753))
|
|
9
|
+
- **main:** automatically imply '--configure' if '--commit' is used ([0105b4a](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/0105b4a5d35eae046f63371e1f71d90cb081026f))
|
|
10
|
+
- **pre-commit-config:** migrate to 'pre-commit-hooks' v6.0.0 ([f8b3d22](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f8b3d228c964a34b4fc3f9699662c1b253ddc5fe))
|
|
11
|
+
- **pre-commit-config:** migrate to 'gcil' 13.0.0 ([17f7069](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/17f70698f6d148dfd45fefc50c7e5bc7c3f7885c))
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **check_commitizen_branch:** ignore missing remote branches ([f6ba7b4](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f6ba7b4ffc4ccfabe0ae01388ab0006dffac7b76))
|
|
16
|
+
- **entrypoint:** register '.gitlab-ci.yml' file configurations ([655b243](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/655b24340bb1795d3c393d7d2a8a6704aa36f330))
|
|
17
|
+
- **entrypoint:** resolve handlings of empty 'README.md' file ([d877ba0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/d877ba0dbf361406fbd4fbafb3761df13dcf3762))
|
|
18
|
+
- **entrypoint, git:** resolve diff on untracked files with intend add ([a97c10d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/a97c10df7d6d65ff8933054432a116f59ec4ab08))
|
|
19
|
+
|
|
20
|
+
### 🚀 CI
|
|
21
|
+
|
|
22
|
+
- **commits:** implement 'skip' CI/CD input to exclude pre-commit hooks ([3235ab4](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/3235ab47cdf4a49632e50ebed21fb28380012d4f))
|
|
23
|
+
- **gitlab-ci:** implement GitLab tags protection jobs ([cf6f446](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/cf6f44662ed5a28dda9ef1c585dcdf776ca9c518))
|
|
24
|
+
|
|
25
|
+
### 📦 Build
|
|
26
|
+
|
|
27
|
+
- **commits:** install 'git-lfs' in the 'commits' image ([15c48e3](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/15c48e37293d3cda552b7d5f35dd67aa97a68149))
|
|
28
|
+
- **commits:** install 'bash' in the 'commits' image ([e76a933](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/e76a933e846d3284cf2272b74fb78512afba38ea))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<a name="6.1.0"></a>
|
|
32
|
+
## [6.1.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/6.0.0...6.1.0) (2025-07-29)
|
|
33
|
+
|
|
34
|
+
### 🚀 CI
|
|
35
|
+
|
|
36
|
+
- **commits:** validate 'commits' minimal image version ([abb3fbb](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/abb3fbb02fd019021f193d7cd7497ee0b91c54ef))
|
|
37
|
+
- **commits:** resolve '.git/hooks' user ownerships ([3a3601b](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/3a3601b25cf2e1eab8ab73ef45c3ee96006ab86c))
|
|
38
|
+
|
|
39
|
+
### 📦 Build
|
|
40
|
+
|
|
41
|
+
- **containers/commits:** install 'coreutils' for 'chown --reference' ([e71b38c](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/e71b38cb27d3655f362f86c02d196193cce2e4fd))
|
|
42
|
+
- **containers/commits:** create '/VERSION' version marker file ([ed76432](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/ed76432dda2dbccafc222d3701135dcae47d64fe))
|
|
43
|
+
|
|
44
|
+
|
|
3
45
|
<a name="6.0.0"></a>
|
|
4
46
|
## [6.0.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/5.1.0...6.0.0) (2025-07-21)
|
|
5
47
|
|
{pre_commit_crocodile-6.0.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-6.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre-commit-crocodile
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.2.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
|
|
@@ -90,7 +90,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
90
90
|
|
|
91
91
|
## Preview
|
|
92
92
|
|
|
93
|
-

|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
@@ -132,7 +132,7 @@ modes arguments:
|
|
|
132
132
|
configurations arguments:
|
|
133
133
|
--config FOLDER # Use configurations from a specific folder
|
|
134
134
|
-D, --default # Use global default configurations instead of sources
|
|
135
|
-
--commit # Commit configurations changes automatically
|
|
135
|
+
--commit # Commit configurations changes automatically (implies --configure)
|
|
136
136
|
--components # Import components from GitLab with 'include: component:'
|
|
137
137
|
--no-components # Import components templates locally instead of 'include: component:'
|
|
138
138
|
--offline # Use offline mode to disable configurations autoupdate
|
|
@@ -40,7 +40,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
40
40
|
|
|
41
41
|
## Preview
|
|
42
42
|
|
|
43
|
-

|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
@@ -82,7 +82,7 @@ modes arguments:
|
|
|
82
82
|
configurations arguments:
|
|
83
83
|
--config FOLDER # Use configurations from a specific folder
|
|
84
84
|
-D, --default # Use global default configurations instead of sources
|
|
85
|
-
--commit # Commit configurations changes automatically
|
|
85
|
+
--commit # Commit configurations changes automatically (implies --configure)
|
|
86
86
|
--components # Import components from GitLab with 'include: component:'
|
|
87
87
|
--no-components # Import components templates locally instead of 'include: component:'
|
|
88
88
|
--offline # Use offline mode to disable configurations autoupdate
|
|
@@ -3,8 +3,11 @@ FROM $IMAGE_BASE
|
|
|
3
3
|
|
|
4
4
|
# Install dependencies
|
|
5
5
|
RUN apk add -q --no-cache \
|
|
6
|
+
bash \
|
|
7
|
+
coreutils \
|
|
6
8
|
gcc \
|
|
7
9
|
git \
|
|
10
|
+
git-lfs \
|
|
8
11
|
libc-dev
|
|
9
12
|
|
|
10
13
|
# Install requirements
|
|
@@ -12,3 +15,7 @@ COPY --from='requirements' ./commits.txt /tmp/
|
|
|
12
15
|
RUN export PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
|
13
16
|
&& pip3 install -q -r /tmp/commits.txt --no-cache-dir --upgrade \
|
|
14
17
|
&& rm -f /tmp/commits.txt
|
|
18
|
+
|
|
19
|
+
# Create image version
|
|
20
|
+
ARG IMAGE_VERSION=5
|
|
21
|
+
RUN echo -n "${IMAGE_VERSION}" >/VERSION
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0/pre_commit_crocodile.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre-commit-crocodile
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.2.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
|
|
@@ -90,7 +90,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
|
|
|
90
90
|
|
|
91
91
|
## Preview
|
|
92
92
|
|
|
93
|
-

|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
@@ -132,7 +132,7 @@ modes arguments:
|
|
|
132
132
|
configurations arguments:
|
|
133
133
|
--config FOLDER # Use configurations from a specific folder
|
|
134
134
|
-D, --default # Use global default configurations instead of sources
|
|
135
|
-
--commit # Commit configurations changes automatically
|
|
135
|
+
--commit # Commit configurations changes automatically (implies --configure)
|
|
136
136
|
--components # Import components from GitLab with 'include: component:'
|
|
137
137
|
--no-components # Import components templates locally instead of 'include: component:'
|
|
138
138
|
--offline # Use offline mode to disable configurations autoupdate
|
|
@@ -9,6 +9,12 @@ spec:
|
|
|
9
9
|
image:
|
|
10
10
|
default: registry.gitlab.com/radiandevcore/tools/pre-commit-crocodile/pre-commit-crocodile:commits
|
|
11
11
|
description: 'Specify the commits image (Default: pre-commit-crocodile:commits public image)'
|
|
12
|
+
skip:
|
|
13
|
+
default: ''
|
|
14
|
+
description: 'Defines the commits jobs names to skip (Default: "")'
|
|
15
|
+
version_minimal:
|
|
16
|
+
default: 5
|
|
17
|
+
description: 'Defines the commits image minimal version (Default: 6)'
|
|
12
18
|
---
|
|
13
19
|
|
|
14
20
|
$[[ inputs.name ]]:
|
|
@@ -17,7 +23,20 @@ $[[ inputs.name ]]:
|
|
|
17
23
|
needs: []
|
|
18
24
|
variables:
|
|
19
25
|
GIT_SUBMODULE_STRATEGY: none
|
|
26
|
+
PRE_COMMIT_SKIP: $[[ inputs.skip ]]
|
|
27
|
+
VERSION_MINIMAL: $[[ inputs.version_minimal ]]
|
|
20
28
|
before_script:
|
|
29
|
+
# Validate image version
|
|
30
|
+
- |
|
|
31
|
+
version_image=$(cat /VERSION 2>/dev/null || echo '0')
|
|
32
|
+
if [ -z "${version_image}" ] || [ "${version_image}" -lt "${VERSION_MINIMAL}" ]; then
|
|
33
|
+
set +x
|
|
34
|
+
echo ' '
|
|
35
|
+
echo " [ERROR] Commits image is outdated and needs to be pulled (${version_image} < ${VERSION_MINIMAL})"
|
|
36
|
+
echo ' '
|
|
37
|
+
sleep 3
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
21
40
|
# Check system context
|
|
22
41
|
- git cz --config ./.cz.yaml version -r
|
|
23
42
|
# Show commits documentation
|
|
@@ -80,7 +99,12 @@ $[[ inputs.name ]]:
|
|
|
80
99
|
- |
|
|
81
100
|
set +x
|
|
82
101
|
echo ' '
|
|
83
|
-
skip=$(
|
|
102
|
+
skip=$(
|
|
103
|
+
{
|
|
104
|
+
grep 'id: run-gcil-' .pre-commit-config.yaml | sed 's/.* id: //g'
|
|
105
|
+
echo -n "${PRE_COMMIT_SKIP}" | tr ' ' '\n'
|
|
106
|
+
} | tr '\n' ',' | sed 's/,$//g' || true
|
|
107
|
+
)
|
|
84
108
|
set -x
|
|
85
109
|
pre-commit install --install-hooks
|
|
86
110
|
SKIP="${skip}" pre-commit run --all-files --show-diff-on-failure
|
|
@@ -93,5 +117,8 @@ $[[ inputs.name ]]:
|
|
|
93
117
|
echo ' '
|
|
94
118
|
false
|
|
95
119
|
fi
|
|
120
|
+
after_script:
|
|
121
|
+
# Resolve ownership
|
|
122
|
+
- chown --recursive --reference ./.gitlab-ci.yml ./.git/hooks || true
|
|
96
123
|
rules:
|
|
97
124
|
- when: always
|
|
@@ -216,7 +216,7 @@ class Entrypoint:
|
|
|
216
216
|
file.flush()
|
|
217
217
|
|
|
218
218
|
# Autoupdate pre-commit hooks
|
|
219
|
-
if not options.offline:
|
|
219
|
+
if not options.offline and Git.is_repository():
|
|
220
220
|
PreCommit.autoupdate()
|
|
221
221
|
|
|
222
222
|
# Configure useless excludes
|
|
@@ -242,7 +242,7 @@ class Entrypoint:
|
|
|
242
242
|
)
|
|
243
243
|
|
|
244
244
|
# Autoupdate pre-commit hooks
|
|
245
|
-
if not options.offline:
|
|
245
|
+
if not options.offline and Git.is_repository():
|
|
246
246
|
PreCommit.autoupdate()
|
|
247
247
|
|
|
248
248
|
# Configure sources
|
|
@@ -280,7 +280,7 @@ class Entrypoint:
|
|
|
280
280
|
sleep(0.5)
|
|
281
281
|
|
|
282
282
|
# Autoupdate pre-commit hooks
|
|
283
|
-
if not options.offline:
|
|
283
|
+
if not options.offline and Git.is_repository():
|
|
284
284
|
PreCommit.autoupdate()
|
|
285
285
|
|
|
286
286
|
# Configure useless excludes
|
|
@@ -302,7 +302,7 @@ class Entrypoint:
|
|
|
302
302
|
)
|
|
303
303
|
|
|
304
304
|
# Autoupdate pre-commit hooks
|
|
305
|
-
if not options.offline:
|
|
305
|
+
if not options.offline and Git.is_repository():
|
|
306
306
|
PreCommit.autoupdate()
|
|
307
307
|
|
|
308
308
|
# Export components templates
|
|
@@ -432,6 +432,9 @@ class Entrypoint:
|
|
|
432
432
|
]))
|
|
433
433
|
f.write(local_ci_data)
|
|
434
434
|
|
|
435
|
+
# Register configured file
|
|
436
|
+
configurations_files += [Gcil.FILE]
|
|
437
|
+
|
|
435
438
|
# Enable pre-commit hooks
|
|
436
439
|
if not options.enable:
|
|
437
440
|
options.enable = True
|
|
@@ -454,6 +457,16 @@ class Entrypoint:
|
|
|
454
457
|
# Acquire README contents
|
|
455
458
|
readme_lines: List[str] = Readme.read()
|
|
456
459
|
|
|
460
|
+
# Prepare empty README
|
|
461
|
+
if not readme_lines:
|
|
462
|
+
readme_lines = [f'# {Path.cwd().name}{Readme.EOL}']
|
|
463
|
+
|
|
464
|
+
# Prepare README without empty lines
|
|
465
|
+
if all(line.strip() for line in readme_lines):
|
|
466
|
+
if not readme_lines[-1].endswith(Readme.EOL):
|
|
467
|
+
readme_lines[-1] = f'{readme_lines[-1]}{Readme.EOL}'
|
|
468
|
+
readme_lines += ['']
|
|
469
|
+
|
|
457
470
|
# Validate badge in README
|
|
458
471
|
if not any(
|
|
459
472
|
line.startswith(f'[![{Bundle.NAME}]') for line in readme_lines):
|
|
@@ -516,17 +529,21 @@ class Entrypoint:
|
|
|
516
529
|
print(f'keeping original {Readme.FILE} documentation')
|
|
517
530
|
|
|
518
531
|
# Show sources status
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
532
|
+
if Git.is_repository():
|
|
533
|
+
print(' ')
|
|
534
|
+
print(f'{Colors.GREEN} ===['
|
|
535
|
+
f'{Colors.YELLOW} Sources status: '
|
|
536
|
+
f'{Colors.YELLOW_LIGHT}git status'
|
|
537
|
+
f'{Colors.GREEN} ]==='
|
|
538
|
+
f'{Colors.RESET}')
|
|
539
|
+
print(' ')
|
|
540
|
+
Git.status(untracked=True)
|
|
527
541
|
|
|
528
542
|
# Configure sources
|
|
529
|
-
if options.configure
|
|
543
|
+
if options.configure \
|
|
544
|
+
and Git.is_repository() \
|
|
545
|
+
and Git.intend(configurations_files) \
|
|
546
|
+
and Git.diff(configurations_files):
|
|
530
547
|
|
|
531
548
|
# Show commit hints
|
|
532
549
|
print(' ')
|
|
@@ -588,7 +605,7 @@ class Entrypoint:
|
|
|
588
605
|
sleep(3)
|
|
589
606
|
|
|
590
607
|
# Configure badges
|
|
591
|
-
elif options.badges and configurations_files:
|
|
608
|
+
elif options.badges and configurations_files and Git.is_repository():
|
|
592
609
|
|
|
593
610
|
# Show commit hints
|
|
594
611
|
command_add = [
|
|
@@ -633,7 +650,7 @@ class Entrypoint:
|
|
|
633
650
|
sleep(3)
|
|
634
651
|
|
|
635
652
|
# Enable hooks
|
|
636
|
-
if options.enable:
|
|
653
|
+
if options.enable and Git.is_repository():
|
|
637
654
|
|
|
638
655
|
# Detect Git remotes
|
|
639
656
|
git_remotes: List[str] = Git.remotes()
|
|
@@ -733,7 +750,7 @@ class Entrypoint:
|
|
|
733
750
|
)
|
|
734
751
|
|
|
735
752
|
# Run commitizen hooks
|
|
736
|
-
if Git.commit_exists('HEAD'):
|
|
753
|
+
if Git.is_repository() and Git.commit_exists('HEAD'):
|
|
737
754
|
print(' ')
|
|
738
755
|
print(f'{Colors.GREEN} ===['
|
|
739
756
|
f'{Colors.YELLOW} Run hooks: '
|
|
@@ -185,7 +185,7 @@ def main() -> None:
|
|
|
185
185
|
'--commit',
|
|
186
186
|
dest='commit',
|
|
187
187
|
action='store_true',
|
|
188
|
-
help='Commit configurations changes automatically',
|
|
188
|
+
help='Commit configurations changes automatically (implies --configure)',
|
|
189
189
|
)
|
|
190
190
|
subgroup = group.add_mutually_exclusive_group()
|
|
191
191
|
subgroup.add_argument(
|
|
@@ -285,6 +285,10 @@ def main() -> None:
|
|
|
285
285
|
updates.check(older=True)
|
|
286
286
|
sys_exit(0)
|
|
287
287
|
|
|
288
|
+
# Implicit modes
|
|
289
|
+
if options.commit and not options.configure:
|
|
290
|
+
options.configure = True
|
|
291
|
+
|
|
288
292
|
# Arguments modes
|
|
289
293
|
if options.autoupdate:
|
|
290
294
|
options.enable = True
|
|
@@ -6,6 +6,7 @@ from re import search
|
|
|
6
6
|
from typing import List
|
|
7
7
|
|
|
8
8
|
# Components
|
|
9
|
+
from ..features.git import Git
|
|
9
10
|
from ..features.precommit import PreCommit
|
|
10
11
|
from ..prints.colors import Colors
|
|
11
12
|
from ..system.commands import Commands
|
|
@@ -26,7 +27,7 @@ class Gcil:
|
|
|
26
27
|
HOOK_NAME: str = 'Run GitLab CI job with gcil'
|
|
27
28
|
HOOKS_LABEL: str = 'gcil'
|
|
28
29
|
HOOKS_URL: str = 'https://gitlab.com/RadianDevCore/tools/gcil'
|
|
29
|
-
HOOKS_VERSION_MINIMAL: str = '
|
|
30
|
+
HOOKS_VERSION_MINIMAL: str = '13.0.0'
|
|
30
31
|
MARKER_NODE: str = '.local:'
|
|
31
32
|
MARKER_VARIABLE: str = 'CI_LOCAL'
|
|
32
33
|
|
|
@@ -56,7 +57,7 @@ class Gcil:
|
|
|
56
57
|
print(' ')
|
|
57
58
|
print(f'{Colors.GREEN} ===['
|
|
58
59
|
f'{Colors.YELLOW} Configure sources: '
|
|
59
|
-
f'{Colors.YELLOW_LIGHT}
|
|
60
|
+
f'{Colors.YELLOW_LIGHT}{Gcil.HOOK_ID}'
|
|
60
61
|
f'{Colors.GREEN} ]==='
|
|
61
62
|
f'{Colors.RESET}')
|
|
62
63
|
print(' ')
|
|
@@ -106,7 +107,7 @@ class Gcil:
|
|
|
106
107
|
]))
|
|
107
108
|
|
|
108
109
|
# Autoupdate repository
|
|
109
|
-
if autoupdate:
|
|
110
|
+
if autoupdate and Git.is_repository():
|
|
110
111
|
print(f'updating {Gcil.HOOKS_LABEL} repository with pre-commit: ', end='')
|
|
111
112
|
Platform.flush()
|
|
112
113
|
PreCommit.autoupdate(Gcil.HOOKS_URL)
|
|
@@ -64,10 +64,42 @@ class Git:
|
|
|
64
64
|
if hook.is_file() and '.' not in hook.name
|
|
65
65
|
]
|
|
66
66
|
|
|
67
|
+
# Intend
|
|
68
|
+
@staticmethod
|
|
69
|
+
def intend(files: List[str]) -> bool:
|
|
70
|
+
|
|
71
|
+
# Intend to add files
|
|
72
|
+
return Commands.run(
|
|
73
|
+
Git.BINARY,
|
|
74
|
+
[
|
|
75
|
+
'add',
|
|
76
|
+
'--intent-to-add',
|
|
77
|
+
] + files,
|
|
78
|
+
check=False,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# Is repository
|
|
82
|
+
@staticmethod
|
|
83
|
+
def is_repository() -> bool:
|
|
84
|
+
|
|
85
|
+
# Check git repository
|
|
86
|
+
return Commands.run(
|
|
87
|
+
Git.BINARY,
|
|
88
|
+
[
|
|
89
|
+
'rev-parse',
|
|
90
|
+
'--is-inside-work-tree',
|
|
91
|
+
],
|
|
92
|
+
check=False,
|
|
93
|
+
)
|
|
94
|
+
|
|
67
95
|
# Remotes
|
|
68
96
|
@staticmethod
|
|
69
97
|
def remotes() -> List[str]:
|
|
70
98
|
|
|
99
|
+
# Detect git repository
|
|
100
|
+
if not Git.is_repository():
|
|
101
|
+
return []
|
|
102
|
+
|
|
71
103
|
# List git remotes
|
|
72
104
|
return [
|
|
73
105
|
remote.lstrip('*').strip()
|
|
@@ -124,6 +156,10 @@ class Git:
|
|
|
124
156
|
@staticmethod
|
|
125
157
|
def urls() -> List[str]:
|
|
126
158
|
|
|
159
|
+
# Detect git repository
|
|
160
|
+
if not Git.is_repository():
|
|
161
|
+
return []
|
|
162
|
+
|
|
127
163
|
# List git remotes URLs
|
|
128
164
|
return [
|
|
129
165
|
url.strip() for url in Commands.output(Git.BINARY, [
|
|
@@ -86,10 +86,11 @@ class PreCommit:
|
|
|
86
86
|
|
|
87
87
|
# Prestage pre-commit configuration
|
|
88
88
|
if not default or configuration_moved or configuration_tmp:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
if Git.is_repository():
|
|
90
|
+
Commands.run(Git.BINARY, [
|
|
91
|
+
'add',
|
|
92
|
+
PreCommit.CONFIGURATION_FILE,
|
|
93
|
+
])
|
|
93
94
|
|
|
94
95
|
# Configure pre-commit unused hooks
|
|
95
96
|
print(' ')
|
|
@@ -119,11 +120,12 @@ class PreCommit:
|
|
|
119
120
|
|
|
120
121
|
# Reset pre-commit configuration
|
|
121
122
|
if not default or configuration_moved or configuration_tmp:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
if Git.is_repository():
|
|
124
|
+
Commands.run(Git.BINARY, [
|
|
125
|
+
'reset',
|
|
126
|
+
'HEAD',
|
|
127
|
+
PreCommit.CONFIGURATION_FILE,
|
|
128
|
+
])
|
|
127
129
|
|
|
128
130
|
# Show unused hooks
|
|
129
131
|
print(f'detected unused hooks in configuration: {", ".join(hooks_unused) or "-"}')
|
|
@@ -225,10 +227,11 @@ class PreCommit:
|
|
|
225
227
|
|
|
226
228
|
# Prestage pre-commit configuration
|
|
227
229
|
if not default or configuration_moved or configuration_tmp:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
if Git.is_repository():
|
|
231
|
+
Commands.run(Git.BINARY, [
|
|
232
|
+
'add',
|
|
233
|
+
PreCommit.CONFIGURATION_FILE,
|
|
234
|
+
])
|
|
232
235
|
|
|
233
236
|
# Configure pre-commit unused hooks
|
|
234
237
|
print(' ')
|
|
@@ -262,11 +265,12 @@ class PreCommit:
|
|
|
262
265
|
|
|
263
266
|
# Reset pre-commit configuration
|
|
264
267
|
if not default or configuration_moved or configuration_tmp:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
if Git.is_repository():
|
|
269
|
+
Commands.run(Git.BINARY, [
|
|
270
|
+
'reset',
|
|
271
|
+
'HEAD',
|
|
272
|
+
PreCommit.CONFIGURATION_FILE,
|
|
273
|
+
])
|
|
270
274
|
|
|
271
275
|
# Show unused hooks
|
|
272
276
|
print(f'detected unused hooks in configuration: {", ".join(hooks_unused) or "-"}')
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/check_commitizen_branch.py
RENAMED
|
@@ -70,8 +70,10 @@ def main() -> None:
|
|
|
70
70
|
|
|
71
71
|
# Update Git remote
|
|
72
72
|
if result == 23:
|
|
73
|
-
git_update_remote_head(remote)
|
|
74
|
-
|
|
73
|
+
if git_update_remote_head(remote):
|
|
74
|
+
result = commitizen_branch(remote)
|
|
75
|
+
else:
|
|
76
|
+
result = 0
|
|
75
77
|
|
|
76
78
|
# Result
|
|
77
79
|
sys_exit(result)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from shutil import which
|
|
6
6
|
import subprocess
|
|
7
|
-
from typing import List
|
|
7
|
+
from typing import List, Optional
|
|
8
8
|
|
|
9
9
|
# Commands
|
|
10
10
|
class Commands:
|
|
@@ -93,6 +93,10 @@ class Commands:
|
|
|
93
93
|
@staticmethod
|
|
94
94
|
def run(binary: str, arguments: List[str], check: bool = True) -> bool:
|
|
95
95
|
|
|
96
|
+
# Variables
|
|
97
|
+
stderr: Optional[int] = None if check else subprocess.DEVNULL
|
|
98
|
+
stdout: Optional[int] = None if check else subprocess.DEVNULL
|
|
99
|
+
|
|
96
100
|
# Run system command
|
|
97
101
|
try:
|
|
98
102
|
process = subprocess.run(
|
|
@@ -100,8 +104,11 @@ class Commands:
|
|
|
100
104
|
cwd=None,
|
|
101
105
|
check=check,
|
|
102
106
|
shell=False,
|
|
107
|
+
stderr=stderr,
|
|
108
|
+
stdout=stdout,
|
|
103
109
|
)
|
|
104
110
|
return process.returncode == 0
|
|
105
111
|
except subprocess.CalledProcessError as e:
|
|
106
|
-
|
|
112
|
+
if check:
|
|
113
|
+
print(f"Error executing command: {e}")
|
|
107
114
|
return False
|
|
@@ -9,6 +9,12 @@ spec:
|
|
|
9
9
|
image:
|
|
10
10
|
default: registry.gitlab.com/radiandevcore/tools/pre-commit-crocodile/pre-commit-crocodile:commits
|
|
11
11
|
description: 'Specify the commits image (Default: pre-commit-crocodile:commits public image)'
|
|
12
|
+
skip:
|
|
13
|
+
default: ''
|
|
14
|
+
description: 'Defines the commits jobs names to skip (Default: "")'
|
|
15
|
+
version_minimal:
|
|
16
|
+
default: 5
|
|
17
|
+
description: 'Defines the commits image minimal version (Default: 6)'
|
|
12
18
|
---
|
|
13
19
|
|
|
14
20
|
$[[ inputs.name ]]:
|
|
@@ -17,7 +23,20 @@ $[[ inputs.name ]]:
|
|
|
17
23
|
needs: []
|
|
18
24
|
variables:
|
|
19
25
|
GIT_SUBMODULE_STRATEGY: none
|
|
26
|
+
PRE_COMMIT_SKIP: $[[ inputs.skip ]]
|
|
27
|
+
VERSION_MINIMAL: $[[ inputs.version_minimal ]]
|
|
20
28
|
before_script:
|
|
29
|
+
# Validate image version
|
|
30
|
+
- |
|
|
31
|
+
version_image=$(cat /VERSION 2>/dev/null || echo '0')
|
|
32
|
+
if [ -z "${version_image}" ] || [ "${version_image}" -lt "${VERSION_MINIMAL}" ]; then
|
|
33
|
+
set +x
|
|
34
|
+
echo ' '
|
|
35
|
+
echo " [ERROR] Commits image is outdated and needs to be pulled (${version_image} < ${VERSION_MINIMAL})"
|
|
36
|
+
echo ' '
|
|
37
|
+
sleep 3
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
21
40
|
# Check system context
|
|
22
41
|
- git cz --config ./.cz.yaml version -r
|
|
23
42
|
# Show commits documentation
|
|
@@ -80,7 +99,12 @@ $[[ inputs.name ]]:
|
|
|
80
99
|
- |
|
|
81
100
|
set +x
|
|
82
101
|
echo ' '
|
|
83
|
-
skip=$(
|
|
102
|
+
skip=$(
|
|
103
|
+
{
|
|
104
|
+
grep 'id: run-gcil-' .pre-commit-config.yaml | sed 's/.* id: //g'
|
|
105
|
+
echo -n "${PRE_COMMIT_SKIP}" | tr ' ' '\n'
|
|
106
|
+
} | tr '\n' ',' | sed 's/,$//g' || true
|
|
107
|
+
)
|
|
84
108
|
set -x
|
|
85
109
|
pre-commit install --install-hooks
|
|
86
110
|
SKIP="${skip}" pre-commit run --all-files --show-diff-on-failure
|
|
@@ -93,5 +117,8 @@ $[[ inputs.name ]]:
|
|
|
93
117
|
echo ' '
|
|
94
118
|
false
|
|
95
119
|
fi
|
|
120
|
+
after_script:
|
|
121
|
+
# Resolve ownership
|
|
122
|
+
- chown --recursive --reference ./.gitlab-ci.yml ./.git/hooks || true
|
|
96
123
|
rules:
|
|
97
124
|
- when: always
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/containers/test-coverage-linux/Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/scripts/mkdocs-exporter.js
RENAMED
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/assets/stylesheets/custom.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/templates/covers/back.html.j2
RENAMED
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/docs/templates/covers/front.html.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/pre_commit_crocodile.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/check_yaml_ruamel_pure.py
RENAMED
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-6.0.0 → pre_commit_crocodile-6.2.0}/src/hooks/prepare_commit_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|