pre-commit-crocodile 2.0.2__tar.gz → 3.0.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.
Files changed (93) hide show
  1. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.cz.yaml +3 -3
  2. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.gitlab-ci.yml +10 -4
  3. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.pre-commit-config.yaml +35 -29
  4. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/CHANGELOG.md +82 -0
  5. {pre_commit_crocodile-2.0.2/pre_commit_crocodile.egg-info → pre_commit_crocodile-3.0.0}/PKG-INFO +34 -3
  6. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/README.md +31 -2
  7. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/components.md +6 -0
  8. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/hooks.md +10 -12
  9. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/prepare.sh +1 -1
  10. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0/pre_commit_crocodile.egg-info}/PKG-INFO +34 -3
  11. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/pre_commit_crocodile.egg-info/SOURCES.txt +6 -0
  12. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/pre_commit_crocodile.egg-info/requires.txt +2 -0
  13. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/quality.txt +1 -0
  14. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/runtime.txt +2 -0
  15. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/assets/.cz.yaml +3 -3
  16. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/assets/.pre-commit-config.yaml +4 -1
  17. pre_commit_crocodile-3.0.0/src/cli/entrypoint.py +375 -0
  18. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/cli/main.py +27 -5
  19. pre_commit_crocodile-3.0.0/src/features/argcomplete.py +39 -0
  20. pre_commit_crocodile-3.0.0/src/features/commitizen.py +128 -0
  21. pre_commit_crocodile-3.0.0/src/features/git.py +73 -0
  22. pre_commit_crocodile-3.0.0/src/features/precommit.py +214 -0
  23. pre_commit_crocodile-3.0.0/src/features/readme.py +46 -0
  24. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/hooks/configurations.py +3 -0
  25. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/hooks/prepare_commit_message.py +51 -4
  26. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/package/bundle.py +2 -0
  27. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/package/updates.py +2 -2
  28. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/system/platform.py +20 -0
  29. pre_commit_crocodile-3.0.0/src/types/__init__.py +0 -0
  30. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/templates/commits.yml +1 -1
  31. pre_commit_crocodile-2.0.2/src/cli/entrypoint.py +0 -414
  32. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.coveragerc +0 -0
  33. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.gitattributes +0 -0
  34. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.gitignore +0 -0
  35. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.markdownlint.json +0 -0
  36. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.pre-commit-hooks.yaml +0 -0
  37. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.style.yapf +0 -0
  38. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.vscode/extensions.json +0 -0
  39. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/.vscode/settings.json +0 -0
  40. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/LICENSE +0 -0
  41. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/config/cliff.toml +0 -0
  42. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/codestyle/Dockerfile +0 -0
  43. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/commits/Dockerfile +0 -0
  44. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/deploy/Dockerfile +0 -0
  45. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/pages/Dockerfile +0 -0
  46. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/preview/Dockerfile +0 -0
  47. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/test-coverage-linux/Dockerfile +0 -0
  48. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/test-coverage-windows/Dockerfile +0 -0
  49. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/containers/test-linux/Dockerfile +0 -0
  50. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/commitizen.md +0 -0
  51. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/commits.md +0 -0
  52. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/pre-commit.md +0 -0
  53. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/preview.py +0 -0
  54. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/preview.svg +0 -0
  55. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/settings.md +0 -0
  56. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/docs/template.svg +0 -0
  57. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/mkdocs.yml +0 -0
  58. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/mypy.ini +0 -0
  59. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/pre_commit_crocodile.egg-info/dependency_links.txt +0 -0
  60. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/pre_commit_crocodile.egg-info/entry_points.txt +0 -0
  61. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/pre_commit_crocodile.egg-info/top_level.txt +0 -0
  62. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/build.txt +0 -0
  63. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/commits.txt +0 -0
  64. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/coverage.txt +0 -0
  65. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/deploy.txt +0 -0
  66. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/docs.txt +0 -0
  67. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/pages.txt +0 -0
  68. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/requirements/tests.txt +0 -0
  69. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/setup.cfg +0 -0
  70. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/setup.py +0 -0
  71. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/sonar-project.properties +0 -0
  72. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/__init__.py +0 -0
  73. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/__main__.py +0 -0
  74. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/assets/__init__.py +0 -0
  75. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/cli/__init__.py +0 -0
  76. {pre_commit_crocodile-2.0.2/src/hooks → pre_commit_crocodile-3.0.0/src/features}/__init__.py +0 -0
  77. {pre_commit_crocodile-2.0.2/src/package → pre_commit_crocodile-3.0.0/src/hooks}/__init__.py +0 -0
  78. {pre_commit_crocodile-2.0.2/src/prints → pre_commit_crocodile-3.0.0/src/package}/__init__.py +0 -0
  79. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/package/settings.py +0 -0
  80. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/package/version.py +0 -0
  81. {pre_commit_crocodile-2.0.2/src/system → pre_commit_crocodile-3.0.0/src/prints}/__init__.py +0 -0
  82. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/prints/boxes.py +0 -0
  83. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/prints/colors.py +0 -0
  84. {pre_commit_crocodile-2.0.2/src/types → pre_commit_crocodile-3.0.0/src/system}/__init__.py +0 -0
  85. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/system/commands.py +0 -0
  86. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/types/environments.py +0 -0
  87. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/src/types/strings.py +0 -0
  88. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/tests/arguments/test.sh +0 -0
  89. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/tests/colors/test.sh +0 -0
  90. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/tests/macos/test.sh +0 -0
  91. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/tests/settings/test.sh +0 -0
  92. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.0}/tests/versions/test.sh +0 -0
  93. {pre_commit_crocodile-2.0.2 → pre_commit_crocodile-3.0.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: 'lambda text: commitizen.cz.utils.required_validator(text, msg="! Error: Scope is required")'
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: 'lambda text: commitizen.cz.utils.required_validator(text.strip(".").strip(), msg="! Error: Title is required")'
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: 'commitizen.cz.utils.multiple_line_breaker'
147
+ filter: 'multiple_line_breaker'
148
148
  - type: input
149
149
  name: footer
150
150
  message: 'Footer information and references (Empty to skip) :'
@@ -250,13 +250,16 @@ serve:
250
250
  echo -n "${!}" >./docs/.cache/.serve.pid
251
251
  sleep 2
252
252
  # Generate documentation
253
- - network_ip=$(hostname -I | cut -d' ' -f1)
254
- - mkdocs serve --dev-addr "${network_ip}:8001" --clean --config-file ./mkdocs.yml --verbose
255
- # Release documentation
253
+ - |
254
+ network_ip=$(hostname -I | cut -d' ' -f1)
255
+ mkdocs serve --dev-addr "${network_ip}:8001" --clean --config-file ./mkdocs.yml --verbose || true
256
256
  after_script:
257
+ # Cleanup documentation
257
258
  - cat ./docs/.cache/.serve.pid | xargs -r kill >/dev/null 2>&1 || true
259
+ - rm -rf ./docs/.cache
258
260
  rules:
259
261
  - if: $CI_LOCAL
262
+ allow_failure: true
260
263
 
261
264
  # =============================================================================
262
265
  # Stage: prepare
@@ -268,7 +271,10 @@ codestyle:
268
271
  script:
269
272
  - yapf -i ./docs/*.py ./src/*.py ./src/*/*.py ./setup.py
270
273
  - echo '' && git diff --name-status
271
- - git diff --quiet
274
+ - |
275
+ if [ -z "${CI_LOCAL:-}" ] || [ ! -z "${PRE_COMMIT}" ]; then
276
+ git diff --quiet
277
+ fi
272
278
  rules:
273
279
  - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
274
280
  changes:
@@ -1,18 +1,22 @@
1
1
  # pre-commit configurations
2
2
  default_install_hook_types:
3
- - prepare-commit-msg
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
13
15
  exclude: >
14
16
  (?x)(
17
+ \.patch$|
15
18
  \.svg$|
19
+ eicar\..*$|
16
20
  CHANGELOG.md$|
17
21
  COPYING.*$|
18
22
  LICENSE.*$|
@@ -43,13 +47,21 @@ repos:
43
47
  - id: check-yaml
44
48
  args: ['--unsafe']
45
49
  - id: destroyed-symlinks
46
- - id: detect-private-key
50
+ stages: [commit, push, manual] # Issue: https://github.com/pre-commit/pre-commit-hooks/pull/1085
51
+ # - id: detect-private-key
47
52
  - id: double-quote-string-fixer
48
53
  - id: end-of-file-fixer
49
54
  - id: mixed-line-ending
50
55
  - id: trailing-whitespace
51
56
  args: ['--markdown-linebreak-ext=md']
52
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
+
53
65
  # Repository: commitizen
54
66
  - repo: https://github.com/commitizen-tools/commitizen
55
67
  rev: v3.29.0
@@ -66,37 +78,31 @@ repos:
66
78
  hooks:
67
79
  - id: prepare-commit-message
68
80
  name: Prepare commit message automatically
81
+ entry: python ./src/hooks/prepare_commit_message.py
82
+ language: python
69
83
  description: Automatically prepare the commit message for manual edition
84
+ args: []
70
85
  stages:
71
86
  - prepare-commit-msg
72
- entry: python ./src/hooks/prepare_commit_message.py
73
- args: []
74
- language: python
87
+ additional_dependencies:
88
+ - PyYAML>=6.0
75
89
 
76
- # Repository: local-gcil
77
- - repo: local
90
+ # Repository: gcil
91
+ - repo: https://gitlab.com/RadianDevCore/tools/gcil
92
+ rev: 9db7ca21
78
93
  hooks:
79
- - id: local-gcil-codestyle
80
- name: check codestyle job with gcil
94
+ - id: run-gcil-push
95
+ name: Run GitLab CI job with gcil (codestyle)
81
96
  description: Automatically run GitLab CI job with gcil (codestyle)
82
- stages:
83
- - pre-push
84
- entry: gcil
85
- args: ['codestyle']
86
- language: system
87
- - id: local-gcil-lint
88
- name: check lint job with gcil
97
+ args:
98
+ - 'codestyle'
99
+ - id: run-gcil-push
100
+ name: Run GitLab CI job with gcil (lint)
89
101
  description: Automatically run GitLab CI job with gcil (lint)
90
- stages:
91
- - pre-push
92
- entry: gcil
93
- args: ['lint']
94
- language: system
95
- - id: local-gcil-typings
96
- name: check typings job with gcil
102
+ args:
103
+ - 'lint'
104
+ - id: run-gcil-push
105
+ name: Run GitLab CI job with gcil (typings)
97
106
  description: Automatically run GitLab CI job with gcil (typings)
98
- stages:
99
- - pre-push
100
- entry: gcil
101
- args: ['typings']
102
- language: system
107
+ args:
108
+ - 'typings'
@@ -1,5 +1,87 @@
1
1
  # Changelog
2
2
 
3
+ <a name="3.0.0"></a>
4
+ ## [3.0.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/2.1.0...3.0.0) (2024-08-25)
5
+
6
+ ### ✨ Features
7
+
8
+ - **cli:** implement '--config FOLDER' and '--default' configurations ([081fd94](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/081fd94afd0d89ef2ac3ca23c68858c53df1216d))
9
+ - **cli:** implement '--clean' to run 'pre-commit clean' cache cleanups ([b971337](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/b9713370b85e610aa724c2f45322c50dc461227d))
10
+ - **entrypoint:** configure unused hooks upon '--default' use ([a271c43](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/a271c431988f116a57f5fa375eb1bf8cf4dbbc89))
11
+ - **entrypoint:** inject badge in 'README.md' upon '--configure' ([739774d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/739774d6b44f7cd5ce3b45738758215e74152f69))
12
+ - **entrypoint:** add 'README.md' to '--configure' commmands hint ([8d7ddcc](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8d7ddccf2b530ad02c92a0a29b0894f37e8154df))
13
+ - **entrypoint:** migrate to commitizen '3.29.0+adriandc.20240825' ([9c6f378](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9c6f37849e17f3ccd2baf302789045ed16424e86))
14
+ - **entrypoint:** allow newer commitizen versions usage ([138ef35](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/138ef3533a03ceb0b5a6a7a7568795efd717e975))
15
+ - **entrypoint, features:** refactor into static features classes ([9b85378](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9b85378eb831690fe83550dbea5b9575e1f04fa7))
16
+ - **🚨 BREAKING CHANGE 🚨 |** **main:** avoid running '--run' features upon '--enable' ([1c9134d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1c9134d152c69fbe34192461f62f1522e32bac21))
17
+ - **prepare_commit_message:** inject signoff if commitizen 'always_signoff' ([f402004](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f402004cde6c84a6bc8857fd6cd6ddcd0618d0a0))
18
+ - **updates:** migrate from deprecated 'pkg_resources' to 'packaging' ([1205341](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1205341bc1b7d7f96dfb8830b32c8853a96a31de))
19
+
20
+ ### 🐛 Bug Fixes
21
+
22
+ - **entrypoint:** resolve unused hooks issues with '--default' ([9dc8309](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9dc8309dc8c2ff819d7ffe8fc0f7b46f1e52e438))
23
+ - **entrypoint:** remove 'README.md' debugging log in '--configure' ([71ceb42](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/71ceb42808eaabf64998a79624a3be0a7995e29c))
24
+ - **precommit:** resolve '--default' use with existing configuration ([7543149](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/7543149382f5280b074a24b1dbd403821810e36e))
25
+ - **templates:** migrate to 'run-gcil-*' skipped hooks names ([63df3c3](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/63df3c36819540f119f82c1a37e7848078580e13))
26
+
27
+ ### 📚 Documentation
28
+
29
+ - **readme:** add badge compatibility and syntax documentation ([9de0ad9](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9de0ad97fdadf6cccd958b425ab5aafda1c02b38))
30
+ - **readme:** add 'mkdocs' and 'mkdocs-material' references ([f9eac20](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/f9eac20e5db2c7b383462930c9b1ca194da07af7))
31
+ - **requirements:** install 'types-PyYAML>=6.0.12.2' as quality dependency ([4d09100](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/4d0910084d1392467dbca5298c01bcab7befaec8))
32
+
33
+ ### ⚙️ Cleanups
34
+
35
+ - **commitizen:** migrate to new 'filter' syntax (commitizen#1207) ([4342bea](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/4342bea56efb8e9c45bcaa7372770cc0c240ae44))
36
+ - **entrypoint:** constantify '{PACKAGE_REVISION}' template string ([8a77371](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8a77371e9f476293941e27748817b4a858cb6e9a))
37
+ - **pre-commit:** add 'python-check-blanket-type-ignore' and 'python-no-eval' ([31738fe](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/31738fe68508926ed433190d870d7aea4c9464a5))
38
+ - **pre-commit:** simplify and unify 'local-gcil' hooks syntax ([001b11d](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/001b11d840056d2a0a30faabac2e246f450163dd))
39
+ - **pre-commit:** add 'additional_dependencies' for missing YAML ([9c80622](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/9c806225083194d7d4e21de7b49fcefe38b53bfd))
40
+ - **pre-commit:** improve syntax for 'args' arguments ([0d7e947](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/0d7e9476f5bf41c56ca699c4339a74900fa073c8))
41
+ - **pre-commit:** migrate to 'run-gcil-*' template 'gcil' hooks ([8e0f5cf](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/8e0f5cfcee7db56b2dff830401e97ce8b6a70f86))
42
+ - **pre-commit:** update against 'run-gcil-push' hook template ([cb69d0b](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/cb69d0bbe2b1ca9f0338e005ec1447577355f856))
43
+ - **pre-commit:** add missing 'commit-msg' stage for commitizen ([a27b9dd](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/a27b9dd23b33a0fbd99164a386d01485cc5b51c0))
44
+
45
+ ### 📦 Build
46
+
47
+ - **requirements:** add 'PyYAML>=6.0' as runtime dependency ([2fe8d58](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/2fe8d58e586daa760d8d062368cdfe33028cddc4))
48
+
49
+
50
+ <a name="2.1.0"></a>
51
+ ## [2.1.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/2.0.2...2.1.0) (2024-08-24)
52
+
53
+ ### ✨ Features
54
+
55
+ - **entrypoint:** use 'pre-commit install --allow-missing-config' ([d41b2f3](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/d41b2f39d024ba14dde024ae021649b991631a0d))
56
+ - **entrypoint:** use 'pre-commit run --all-files' parameter syntax ([956cb33](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/956cb333028e61d2e1e14b5971d233f4882d069a))
57
+ - **pre-commit:** exclude '.patch' Git patch files from hooks ([e865955](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/e865955cc09781725dc0aa88314506b951ce3350))
58
+ - **pre-commit:** disable 'detect-private-key' by default ([5ef6060](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/5ef6060fba92d46fde84530ccb08a271d50d2c94))
59
+ - **pre-commit-config:** exclude 'eicar.*' Anti Malware Testfile ([6dbdb7c](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/6dbdb7c5c7727788ffd9974e8dc0dee8c9c0c467))
60
+
61
+ ### 🐛 Bug Fixes
62
+
63
+ - **pre-commit:** fix 'destroyed-symlinks' v4.6.0 missing stages ([5377b8f](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/5377b8fc5349301a8c10cb24edf3e6d511626ddb))
64
+ - **templates/commits:** avoid failing without 'local-gcil-*' hooks ([1d9dc15](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1d9dc15b5fa3310251b35ab5f7f24398b2cfff93))
65
+
66
+ ### 📚 Documentation
67
+
68
+ - **components:** add GitLab CI/CD Catalog for components URL ([47068c6](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/47068c6bce3758119db692ff74d0de9370ae199c))
69
+ - **hooks:** fix hooks 'repo:' URL for '.pre-commit-config.yaml' ([b7c059e](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/b7c059ef2a72d307c629231606e836ade5564ec5))
70
+ - **hooks:** improve hook '.pre-commit-config.yaml' documentation ([7a3c283](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/7a3c283ffb7c60bcdb9f9909c8b9194755982cfe))
71
+ - **prepare:** fix 'Commit type' list faulty indentation issue ([42f49cb](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/42f49cb494c206752723df29996012ca4935e742))
72
+
73
+ ### ⚙️ Cleanups
74
+
75
+ - **pre-commit:** fail 'gcil' jobs if 'PRE_COMMIT' is defined ([1fcb35c](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/1fcb35c0224b31a0641f138c784ca59a53da75b5))
76
+
77
+ ### 🚀 CI
78
+
79
+ - **gitlab-ci:** improve 'serve' job syntax for YAML rendering ([aa41a7e](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/aa41a7e3544e40ede01733a83a9b9b936a8747e0))
80
+ - **gitlab-ci:** cleanup cache upon 'serve' job end ([4574326](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/45743265d47b41929cebda731b444857feba9e14))
81
+ - **gitlab-ci:** ignore 'serve' job failure due to 'Ctrl+C' end ([c8718b5](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/c8718b5257069ab7e5410bea086aecece90a39a3))
82
+ - **gitlab-ci:** avoid failures of 'codestyle' upon local launches ([6660428](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/666042865a99dd49fd092abc13e06f3de039b887))
83
+
84
+
3
85
  <a name="2.0.2"></a>
4
86
  ## [2.0.2](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/2.0.1...2.0.2) (2024-08-22)
5
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pre-commit-crocodile
3
- Version: 2.0.2
3
+ Version: 3.0.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
 
@@ -64,7 +66,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
64
66
 
65
67
  ## Preview
66
68
 
67
- ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/2.0.2/docs/preview.svg)
69
+ ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/3.0.0/docs/preview.svg)
68
70
 
69
71
  ---
70
72
 
@@ -75,7 +77,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
75
77
 
76
78
  ```yaml
77
79
  usage: pre-commit-crocodile [-h] [--version] [--no-color] [--update-check] [--settings] [--set GROUP KEY VAL]
78
- [-l | -i | -c | -e | -d | -a | -r] [--]
80
+ [-l | -i | -c | -e | -d | -a | -C | -r] [--config FOLDER | --default] [--]
79
81
 
80
82
  pre-commit-crocodile: Git hooks intended for developers using pre-commit
81
83
 
@@ -96,8 +98,13 @@ modes arguments:
96
98
  -e, --enable # Enable pre-commit hooks
97
99
  -d, --disable # Disable pre-commit hooks
98
100
  -a, --autoupdate # Autoupdate pre-commit hooks
101
+ -C, --clean # Clean pre-commit cached hooks
99
102
  -r, --run # Run pre-commit hooks
100
103
 
104
+ configurations arguments:
105
+ --config FOLDER # Use configurations from a specific folder
106
+ --default # Use global default configurations instead of sources
107
+
101
108
  positional arguments:
102
109
  -- # Positional arguments separator (recommended)
103
110
  ```
@@ -126,6 +133,22 @@ positional arguments:
126
133
 
127
134
  ---
128
135
 
136
+ ## Compatibility
137
+
138
+ Projects compatible with `pre-commit-crocodile` can use this badge to ease things for developers, both as an indicator and a documentation shortcut button :
139
+
140
+ > [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
141
+
142
+ ```markdown title="Badge in Markdown"
143
+ [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
144
+ ```
145
+
146
+ ```html title="Badge in HTML"
147
+ <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>
148
+ ```
149
+
150
+ ---
151
+
129
152
  ## Projects without configurations | [![pre-commit](https://img.shields.io/badge/pre--commit-missing-gold)](https://github.com/pre-commit/pre-commit)
130
153
 
131
154
  ### Import configurations
@@ -168,6 +191,12 @@ pre-commit-crocodile --autoupdate
168
191
  pre-commit-crocodile --disable
169
192
  ```
170
193
 
194
+ ### Cleanup hooks
195
+
196
+ ```bash
197
+ pre-commit-crocodile --clean
198
+ ```
199
+
171
200
  ---
172
201
 
173
202
  ## Dependencies
@@ -188,6 +217,8 @@ pre-commit-crocodile --disable
188
217
  - [gcil](https://pypi.org/project/gitlabci-local/): Launch .gitlab-ci.yml jobs locally
189
218
  - [git-cliff](https://github.com/orhun/git-cliff): CHANGELOG generator
190
219
  - [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
220
+ - [mkdocs](https://www.mkdocs.org/): Project documentation with Markdown
221
+ - [mkdocs-material](https://squidfunk.github.io/mkdocs-material/): Material theme for mkdocs documentation
191
222
  - [mypy](https://pypi.org/project/mypy/): Optional static typing for Python
192
223
  - [pexpect-executor](https://pypi.org/project/pexpect-executor/): Automate interactive CLI tools actions
193
224
  - [PyPI](https://pypi.org/): The Python Package Index
@@ -32,7 +32,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
32
32
 
33
33
  ## Preview
34
34
 
35
- ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/2.0.2/docs/preview.svg)
35
+ ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/3.0.0/docs/preview.svg)
36
36
 
37
37
  ---
38
38
 
@@ -43,7 +43,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
43
43
 
44
44
  ```yaml
45
45
  usage: pre-commit-crocodile [-h] [--version] [--no-color] [--update-check] [--settings] [--set GROUP KEY VAL]
46
- [-l | -i | -c | -e | -d | -a | -r] [--]
46
+ [-l | -i | -c | -e | -d | -a | -C | -r] [--config FOLDER | --default] [--]
47
47
 
48
48
  pre-commit-crocodile: Git hooks intended for developers using pre-commit
49
49
 
@@ -64,8 +64,13 @@ modes arguments:
64
64
  -e, --enable # Enable pre-commit hooks
65
65
  -d, --disable # Disable pre-commit hooks
66
66
  -a, --autoupdate # Autoupdate pre-commit hooks
67
+ -C, --clean # Clean pre-commit cached hooks
67
68
  -r, --run # Run pre-commit hooks
68
69
 
70
+ configurations arguments:
71
+ --config FOLDER # Use configurations from a specific folder
72
+ --default # Use global default configurations instead of sources
73
+
69
74
  positional arguments:
70
75
  -- # Positional arguments separator (recommended)
71
76
  ```
@@ -94,6 +99,22 @@ positional arguments:
94
99
 
95
100
  ---
96
101
 
102
+ ## Compatibility
103
+
104
+ Projects compatible with `pre-commit-crocodile` can use this badge to ease things for developers, both as an indicator and a documentation shortcut button :
105
+
106
+ > [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
107
+
108
+ ```markdown title="Badge in Markdown"
109
+ [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
110
+ ```
111
+
112
+ ```html title="Badge in HTML"
113
+ <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>
114
+ ```
115
+
116
+ ---
117
+
97
118
  ## Projects without configurations | [![pre-commit](https://img.shields.io/badge/pre--commit-missing-gold)](https://github.com/pre-commit/pre-commit)
98
119
 
99
120
  ### Import configurations
@@ -136,6 +157,12 @@ pre-commit-crocodile --autoupdate
136
157
  pre-commit-crocodile --disable
137
158
  ```
138
159
 
160
+ ### Cleanup hooks
161
+
162
+ ```bash
163
+ pre-commit-crocodile --clean
164
+ ```
165
+
139
166
  ---
140
167
 
141
168
  ## Dependencies
@@ -156,6 +183,8 @@ pre-commit-crocodile --disable
156
183
  - [gcil](https://pypi.org/project/gitlabci-local/): Launch .gitlab-ci.yml jobs locally
157
184
  - [git-cliff](https://github.com/orhun/git-cliff): CHANGELOG generator
158
185
  - [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
186
+ - [mkdocs](https://www.mkdocs.org/): Project documentation with Markdown
187
+ - [mkdocs-material](https://squidfunk.github.io/mkdocs-material/): Material theme for mkdocs documentation
159
188
  - [mypy](https://pypi.org/project/mypy/): Optional static typing for Python
160
189
  - [pexpect-executor](https://pypi.org/project/pexpect-executor/): Automate interactive CLI tools actions
161
190
  - [PyPI](https://pypi.org/): The Python Package Index
@@ -16,6 +16,12 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
16
16
 
17
17
  ---
18
18
 
19
+ ## CI/CD components
20
+
21
+ **GitLab CI/CD Catalog:** <https://gitlab.com/explore/catalog/RadianDevCore/tools/pre-commit-crocodile>
22
+
23
+ ---
24
+
19
25
  ### `commits` - GitLab CI job to validate newly pushed commits
20
26
 
21
27
  **Validate commits added on a branch or for a merge request :**
@@ -34,7 +34,7 @@ minimum_pre_commit_version: 3.8.0
34
34
  repos:
35
35
 
36
36
  # Repository: pre-commit-crocodile
37
- - repo: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile.git
37
+ - repo: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile
38
38
  rev: X.Y.Z # Adapt to latest release tag
39
39
  hooks:
40
40
  - id: ...
@@ -44,22 +44,20 @@ repos:
44
44
 
45
45
  ### `prepare-commit-message` - Prepare commit message automatically
46
46
 
47
+ ```yaml title="Sources / .pre-commit-config.yaml"
48
+ # Repository: pre-commit-crocodile
49
+ - repo: ...
50
+ ...
51
+ hooks:
52
+ - id: prepare-commit-message
53
+ ```
54
+
47
55
  **Automatically prepare the commit message based on changed sources before manual edition :**
48
56
 
49
57
  - **Launched automatically by Git** upon `prepare-commit-msg` stage using `pre-commit`
50
- - Parse `Changes to be committed:` **to automatically prepare a `type(scope): ...` helpful template**
58
+ - Parse `Changes to be committed:` **to automatically prepare a `type(scope): ...` title**
51
59
  - Commit messages implementation derived from **[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specifications**
52
60
  - **Automatically detect and prepare templates like `ci(gitlab-ci):`, `docs(readme):`, `build(makefile):` or `docs(changelog):`**
53
61
  - **Automatically evaluate sources specific scopes, for example files or folders under `src/`, or recipe folders in Yocto `recipes-.../` sources**
54
62
  - Message body is automatically inserted to help developers document their commits or link to a related issue
55
63
  - Commits with sign-off messages automatically receive a `---` separator for readability on GitLab
56
-
57
- **Changes to `.pre-commit-config.yaml` :**
58
-
59
- ```yaml
60
- # Repository: pre-commit-crocodile
61
- - repo: ...
62
- ...
63
- hooks:
64
- - id: prepare-commit-message
65
- ```
@@ -38,7 +38,7 @@ sed -i "s#\(\[.*\]\)(.*/docs/#\1(assets/images/#g" "${docs_path}/.cache/index.md
38
38
  -e 's/\(conventional commits\|semantic versioning\)/**\1**/g' \
39
39
  -e "s/ '\([A-Za-z0-9:!]\{1,\}\)' / **\`\1\`** /g" \
40
40
  -e 's/^\([^#]\{1,\}\)$/\1 /g' \
41
- -e '/^[^#\[<]\{1\}[^`]\{1,\}/s/^/\&nbsp;\&nbsp;\&nbsp;\&nbsp; /g'
41
+ -e '/^[^#\[<-]\{1\}[^`]\{1,\}/s/^/\&nbsp;\&nbsp;\&nbsp;\&nbsp; /g'
42
42
  echo ''
43
43
  echo '---'
44
44
  echo ''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pre-commit-crocodile
3
- Version: 2.0.2
3
+ Version: 3.0.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
 
@@ -64,7 +66,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
64
66
 
65
67
  ## Preview
66
68
 
67
- ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/2.0.2/docs/preview.svg)
69
+ ![preview.svg](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/raw/3.0.0/docs/preview.svg)
68
70
 
69
71
  ---
70
72
 
@@ -75,7 +77,7 @@ Git hooks intended for developers using [pre-commit](https://pre-commit.com/) an
75
77
 
76
78
  ```yaml
77
79
  usage: pre-commit-crocodile [-h] [--version] [--no-color] [--update-check] [--settings] [--set GROUP KEY VAL]
78
- [-l | -i | -c | -e | -d | -a | -r] [--]
80
+ [-l | -i | -c | -e | -d | -a | -C | -r] [--config FOLDER | --default] [--]
79
81
 
80
82
  pre-commit-crocodile: Git hooks intended for developers using pre-commit
81
83
 
@@ -96,8 +98,13 @@ modes arguments:
96
98
  -e, --enable # Enable pre-commit hooks
97
99
  -d, --disable # Disable pre-commit hooks
98
100
  -a, --autoupdate # Autoupdate pre-commit hooks
101
+ -C, --clean # Clean pre-commit cached hooks
99
102
  -r, --run # Run pre-commit hooks
100
103
 
104
+ configurations arguments:
105
+ --config FOLDER # Use configurations from a specific folder
106
+ --default # Use global default configurations instead of sources
107
+
101
108
  positional arguments:
102
109
  -- # Positional arguments separator (recommended)
103
110
  ```
@@ -126,6 +133,22 @@ positional arguments:
126
133
 
127
134
  ---
128
135
 
136
+ ## Compatibility
137
+
138
+ Projects compatible with `pre-commit-crocodile` can use this badge to ease things for developers, both as an indicator and a documentation shortcut button :
139
+
140
+ > [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
141
+
142
+ ```markdown title="Badge in Markdown"
143
+ [![pre-commit-crocodile](https://img.shields.io/badge/pre--commit--crocodile-enabled-brightgreen?logo=gitlab)](https://radiandevcore.gitlab.io/tools/pre-commit-crocodile)
144
+ ```
145
+
146
+ ```html title="Badge in HTML"
147
+ <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>
148
+ ```
149
+
150
+ ---
151
+
129
152
  ## Projects without configurations | [![pre-commit](https://img.shields.io/badge/pre--commit-missing-gold)](https://github.com/pre-commit/pre-commit)
130
153
 
131
154
  ### Import configurations
@@ -168,6 +191,12 @@ pre-commit-crocodile --autoupdate
168
191
  pre-commit-crocodile --disable
169
192
  ```
170
193
 
194
+ ### Cleanup hooks
195
+
196
+ ```bash
197
+ pre-commit-crocodile --clean
198
+ ```
199
+
171
200
  ---
172
201
 
173
202
  ## Dependencies
@@ -188,6 +217,8 @@ pre-commit-crocodile --disable
188
217
  - [gcil](https://pypi.org/project/gitlabci-local/): Launch .gitlab-ci.yml jobs locally
189
218
  - [git-cliff](https://github.com/orhun/git-cliff): CHANGELOG generator
190
219
  - [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
220
+ - [mkdocs](https://www.mkdocs.org/): Project documentation with Markdown
221
+ - [mkdocs-material](https://squidfunk.github.io/mkdocs-material/): Material theme for mkdocs documentation
191
222
  - [mypy](https://pypi.org/project/mypy/): Optional static typing for Python
192
223
  - [pexpect-executor](https://pypi.org/project/pexpect-executor/): Automate interactive CLI tools actions
193
224
  - [PyPI](https://pypi.org/): The Python Package Index
@@ -58,6 +58,12 @@ src/assets/__init__.py
58
58
  src/cli/__init__.py
59
59
  src/cli/entrypoint.py
60
60
  src/cli/main.py
61
+ src/features/__init__.py
62
+ src/features/argcomplete.py
63
+ src/features/commitizen.py
64
+ src/features/git.py
65
+ src/features/precommit.py
66
+ src/features/readme.py
61
67
  src/hooks/__init__.py
62
68
  src/hooks/configurations.py
63
69
  src/hooks/prepare_commit_message.py
@@ -1,3 +1,5 @@
1
1
  colored>=1.4.2
2
+ packaging>=24.0
3
+ PyYAML>=6.0
2
4
  setuptools>=45.1.0
3
5
  update_checker>=0.18.0
@@ -2,5 +2,6 @@ git+https://github.com/AdrianDC/commitizen.git@prerelease # == 3.29.0.AdrianDC.2
2
2
  mypy>=0.971
3
3
  pre-commit>=3.8.0
4
4
  pylint>=2.6.0
5
+ types-PyYAML>=6.0.12.2
5
6
  types-setuptools>=65.3.0
6
7
  yapf>=0.29.0
@@ -1,3 +1,5 @@
1
1
  colored>=1.4.2
2
+ packaging>=24.0
3
+ PyYAML>=6.0
2
4
  setuptools>=45.1.0
3
5
  update_checker>=0.18.0
@@ -133,18 +133,18 @@ commitizen:
133
133
  - type: input
134
134
  name: scope
135
135
  message: 'Scope of the change :'
136
- filter: 'lambda text: commitizen.cz.utils.required_validator(text, msg="! Error: Scope is required")'
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: 'lambda text: commitizen.cz.utils.required_validator(text.strip(".").strip(), msg="! Error: Title is required")'
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: 'commitizen.cz.utils.multiple_line_breaker'
147
+ filter: 'multiple_line_breaker'
148
148
  - type: input
149
149
  name: footer
150
150
  message: 'Footer information and references (Empty to skip) :'