pre-commit-crocodile 8.2.0__tar.gz → 8.3.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-8.2.0 → pre_commit_crocodile-8.3.0}/.gitlab-ci.yml +17 -17
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.pre-commit-config.yaml +7 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/CHANGELOG.md +43 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/LICENSE +1 -1
- {pre_commit_crocodile-8.2.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-8.3.0}/PKG-INFO +4 -4
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/README.md +1 -1
- pre_commit_crocodile-8.3.0/containers/rehost/images.txt +6 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/hooks.md +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/mkdocs.yml +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0/pre_commit_crocodile.egg-info}/PKG-INFO +4 -4
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/SOURCES.txt +2 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/requires.txt +1 -1
- pre_commit_crocodile-8.3.0/pre_commit_crocodile.egg-info/scm_file_list.json +104 -0
- pre_commit_crocodile-8.3.0/pre_commit_crocodile.egg-info/scm_version.json +8 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/commits.txt +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/runtime.txt +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/setup.py +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/sonar-project.properties +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/assets/.pre-commit-config.template.yaml +7 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/assets/commits.yml +2 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/cli/entrypoint.py +4 -7
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/precommit.py +27 -9
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/prek.py +2 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/package/settings.py +2 -2
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/package/updates.py +7 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/system/commands.py +11 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/types/environments.py +1 -1
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/templates/commits.yml +2 -0
- pre_commit_crocodile-8.2.0/containers/rehost/images.txt +0 -6
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.coveragerc +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.cz.yaml +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.gitattributes +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.gitignore +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.gitmodules +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.markdownlint.json +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.pre-commit-hooks.yaml +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.style.yapf +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.vscode/extensions.json +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/.vscode/settings.json +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/config/cliff.toml +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/build/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/codestyle/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/commits/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/deploy/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/pages/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/preview/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/test-coverage-linux/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/test-coverage-windows/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/containers/test-linux/Dockerfile +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/.pages.in +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/assets/images/favicon.png +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/assets/scripts/mkdocs-exporter.js +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/assets/stylesheets/custom.css +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/assets/stylesheets/pdf.scss +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/commitizen.md +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/commits.md +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/components.md +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/pre-commit.md +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/prepare.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/preview.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/preview.svg +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/robots.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/settings.md +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/template.svg +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/templates/covers/back.html.j2 +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/templates/covers/front.html.j2 +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/mypy.ini +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/dependency_links.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/entry_points.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/top_level.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/build.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/coverage.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/deploy.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/docs.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/pages.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/quality.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/requirements/tests.txt +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/setup.cfg +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/__main__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/assets/.cz.yaml +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/assets/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/cli/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/cli/main.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/argcomplete.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/commitizen.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/gcil.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/git.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/radiandevcore.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/readme.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/features/templates.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/check_commitizen_branch.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/check_yaml_ruamel_pure.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/configurations.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/prepare_commit_message.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/package/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/package/bundle.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/package/version.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/prints/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/prints/boxes.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/prints/colors.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/system/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/system/platform.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/types/__init__.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/types/strings.py +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/arguments/test.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/colors/test.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/macos/test.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/settings/test.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/versions/test.sh +0 -0
- {pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/tests/windows/test.sh +0 -0
|
@@ -198,7 +198,7 @@ registry:build:
|
|
|
198
198
|
extends:
|
|
199
199
|
- .registry:container
|
|
200
200
|
variables:
|
|
201
|
-
BASEIMAGE_NAME: python:3.
|
|
201
|
+
BASEIMAGE_NAME: python:3.14-alpine
|
|
202
202
|
CONTAINER_FOLDER: build
|
|
203
203
|
CONTAINER_IMAGE_TAG: build
|
|
204
204
|
rules:
|
|
@@ -213,7 +213,7 @@ registry:codestyle:
|
|
|
213
213
|
extends:
|
|
214
214
|
- .registry:container
|
|
215
215
|
variables:
|
|
216
|
-
BASEIMAGE_NAME: python:3.
|
|
216
|
+
BASEIMAGE_NAME: python:3.14-alpine
|
|
217
217
|
CONTAINER_FOLDER: codestyle
|
|
218
218
|
CONTAINER_IMAGE_TAG: codestyle
|
|
219
219
|
rules:
|
|
@@ -229,7 +229,7 @@ registry:commits:
|
|
|
229
229
|
extends:
|
|
230
230
|
- .registry:container
|
|
231
231
|
variables:
|
|
232
|
-
BASEIMAGE_NAME: python:3.
|
|
232
|
+
BASEIMAGE_NAME: python:3.14-alpine
|
|
233
233
|
CONTAINER_FOLDER: commits
|
|
234
234
|
CONTAINER_IMAGE_TAG: commits
|
|
235
235
|
rules:
|
|
@@ -243,7 +243,7 @@ registry:deploy:
|
|
|
243
243
|
extends:
|
|
244
244
|
- .registry:container
|
|
245
245
|
variables:
|
|
246
|
-
BASEIMAGE_NAME: python:3.
|
|
246
|
+
BASEIMAGE_NAME: python:3.14-alpine
|
|
247
247
|
CONTAINER_FOLDER: deploy
|
|
248
248
|
CONTAINER_IMAGE_TAG: deploy
|
|
249
249
|
rules:
|
|
@@ -257,7 +257,7 @@ registry:pages:
|
|
|
257
257
|
extends:
|
|
258
258
|
- .registry:container
|
|
259
259
|
variables:
|
|
260
|
-
BASEIMAGE_NAME: python:3.
|
|
260
|
+
BASEIMAGE_NAME: python:3.14-slim
|
|
261
261
|
CONTAINER_FOLDER: pages
|
|
262
262
|
CONTAINER_IMAGE_TAG: pages
|
|
263
263
|
rules:
|
|
@@ -272,7 +272,7 @@ registry:preview:
|
|
|
272
272
|
extends:
|
|
273
273
|
- .registry:container
|
|
274
274
|
variables:
|
|
275
|
-
BASEIMAGE_NAME: python:3.
|
|
275
|
+
BASEIMAGE_NAME: python:3.14-alpine
|
|
276
276
|
CONTAINER_FOLDER: preview
|
|
277
277
|
CONTAINER_IMAGE_TAG: preview
|
|
278
278
|
rules:
|
|
@@ -287,7 +287,7 @@ registry:test-coverage-linux:
|
|
|
287
287
|
extends:
|
|
288
288
|
- .registry:container
|
|
289
289
|
variables:
|
|
290
|
-
BASEIMAGE_NAME: python:3.
|
|
290
|
+
BASEIMAGE_NAME: python:3.14
|
|
291
291
|
CONTAINER_FOLDER: test-coverage-linux
|
|
292
292
|
CONTAINER_IMAGE_TAG: test-coverage-linux
|
|
293
293
|
rules:
|
|
@@ -319,7 +319,7 @@ registry:test-oldest:
|
|
|
319
319
|
extends:
|
|
320
320
|
- .registry:container
|
|
321
321
|
variables:
|
|
322
|
-
BASEIMAGE_NAME: python:3.
|
|
322
|
+
BASEIMAGE_NAME: python:3.10
|
|
323
323
|
CONTAINER_FOLDER: test-linux
|
|
324
324
|
CONTAINER_IMAGE_TAG: test-oldest
|
|
325
325
|
rules:
|
|
@@ -333,7 +333,7 @@ registry:test-latest:
|
|
|
333
333
|
extends:
|
|
334
334
|
- .registry:container
|
|
335
335
|
variables:
|
|
336
|
-
BASEIMAGE_NAME: python:3.
|
|
336
|
+
BASEIMAGE_NAME: python:3.14
|
|
337
337
|
CONTAINER_FOLDER: test-linux
|
|
338
338
|
CONTAINER_IMAGE_TAG: test-latest
|
|
339
339
|
rules:
|
|
@@ -472,13 +472,13 @@ coverage:windows:
|
|
|
472
472
|
COVERAGE_XML: ${CI_PROJECT_DIR}/coverage-reports/coverage-windows.xml
|
|
473
473
|
SUITE: 'colors\|versions\|windows'
|
|
474
474
|
|
|
475
|
-
py3.
|
|
475
|
+
py3.10:
|
|
476
476
|
extends:
|
|
477
477
|
- .test:template
|
|
478
478
|
- .test:rules
|
|
479
479
|
image: registry.gitlab.com/radiandevcore/tools/pre-commit-crocodile/pre-commit-crocodile:test-oldest
|
|
480
480
|
|
|
481
|
-
py3.
|
|
481
|
+
py3.14:
|
|
482
482
|
extends:
|
|
483
483
|
- .test:template
|
|
484
484
|
- .test:rules
|
|
@@ -530,9 +530,9 @@ deploy:release:
|
|
|
530
530
|
artifacts: false
|
|
531
531
|
- job: coverage:windows
|
|
532
532
|
artifacts: false
|
|
533
|
-
- job: py3.
|
|
533
|
+
- job: py3.10
|
|
534
534
|
artifacts: false
|
|
535
|
-
- job: py3.
|
|
535
|
+
- job: py3.14
|
|
536
536
|
artifacts: false
|
|
537
537
|
|
|
538
538
|
deploy:trial:
|
|
@@ -545,9 +545,9 @@ deploy:trial:
|
|
|
545
545
|
artifacts: false
|
|
546
546
|
- job: coverage:windows
|
|
547
547
|
artifacts: false
|
|
548
|
-
- job: py3.
|
|
548
|
+
- job: py3.10
|
|
549
549
|
artifacts: false
|
|
550
|
-
- job: py3.
|
|
550
|
+
- job: py3.14
|
|
551
551
|
artifacts: false
|
|
552
552
|
|
|
553
553
|
.pages:rules:
|
|
@@ -572,10 +572,10 @@ pages:
|
|
|
572
572
|
- job: build
|
|
573
573
|
artifacts: false
|
|
574
574
|
optional: true
|
|
575
|
-
- job: py3.
|
|
575
|
+
- job: py3.10
|
|
576
576
|
artifacts: false
|
|
577
577
|
optional: true
|
|
578
|
-
- job: py3.
|
|
578
|
+
- job: py3.14
|
|
579
579
|
artifacts: false
|
|
580
580
|
optional: true
|
|
581
581
|
- job: quality:coverage
|
|
@@ -10,7 +10,7 @@ default_stages:
|
|
|
10
10
|
- pre-push
|
|
11
11
|
- prepare-commit-msg
|
|
12
12
|
minimum_pre_commit_version: 3.8.0
|
|
13
|
-
minimum_prek_version: 0.
|
|
13
|
+
minimum_prek_version: 0.4.14
|
|
14
14
|
|
|
15
15
|
# pre-commit exclusions
|
|
16
16
|
exclude: >
|
|
@@ -44,6 +44,12 @@ repos:
|
|
|
44
44
|
hooks:
|
|
45
45
|
- id: check-added-large-files
|
|
46
46
|
args: ['--maxkb=500']
|
|
47
|
+
exclude: >
|
|
48
|
+
(?x)(
|
|
49
|
+
package-lock\.json$|
|
|
50
|
+
pnpm-lock\.yaml$|
|
|
51
|
+
yarn\.lock$
|
|
52
|
+
)
|
|
47
53
|
- id: check-case-conflict
|
|
48
54
|
exclude: >
|
|
49
55
|
(?x)(
|
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<a name="8.3.0"></a>
|
|
4
|
+
## [8.3.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/8.2.1...8.3.0) (2026-08-21)
|
|
5
|
+
|
|
6
|
+
### ✨ Features
|
|
7
|
+
|
|
8
|
+
- **pre-commit-config:** migrate to 'prek' 0.4.14 ([e93f19a](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/e93f19af2ceb1a99c76c815aad21526cc492a69d))
|
|
9
|
+
- **precommit:** implement support for 'prek' installed with 'mise' ([da02b00](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/da02b008108fa4d79c4848b932f831a9e3cf8488))
|
|
10
|
+
|
|
11
|
+
### 🐛 Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **🚨 BREAKING CHANGE 🚨 |** **updates, requirements:** migrate to 'update_checker' 1.0.0 API ([2c09921](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/2c099219342a71c4f22c29cef54676b2093fe88b))
|
|
14
|
+
|
|
15
|
+
### 📚 Documentation
|
|
16
|
+
|
|
17
|
+
- **license, mkdocs:** raise copyright year to 2026 ([7b67179](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/7b67179dc0517a313bb3f4f263de65c4c42fba4c))
|
|
18
|
+
|
|
19
|
+
### 🎨 Styling
|
|
20
|
+
|
|
21
|
+
- **environments:** resolve dictionary values iterator (python:S7512) ([d52501f](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/d52501f2b74bc413bd9237bcc552a97433b8f5f3))
|
|
22
|
+
- **src:** migrate to '|' types unions (python:S6546) ([e5220a8](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/e5220a82d8b4535bfb61a3ce9548e6eb7ede6080))
|
|
23
|
+
|
|
24
|
+
### ⚙️ Cleanups
|
|
25
|
+
|
|
26
|
+
- **updates:** enforce 'typings' [arg-type] error on 'date' ([6d29635](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/6d29635861f854f68763f9394c42fa806a81a4dd))
|
|
27
|
+
|
|
28
|
+
### 📦 Build
|
|
29
|
+
|
|
30
|
+
- **🚨 BREAKING CHANGE 🚨 |** **gitlab-ci, setup:** raise oldest Python from 3.9 to 3.10 ([ae8567c](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/ae8567cc42c17f911021284c3fdcb326ec46a466))
|
|
31
|
+
- **🚨 BREAKING CHANGE 🚨 |** **gitlab-ci, setup:** raise latest Python from 3.13 to 3.14 ([377f742](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/377f742869b933bd27c588a02a8581862c9df4bc))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<a name="8.2.1"></a>
|
|
35
|
+
## [8.2.1](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/8.2.0...8.2.1) (2025-12-27)
|
|
36
|
+
|
|
37
|
+
### ✨ Features
|
|
38
|
+
|
|
39
|
+
- **pre-commit:** exclude NPM lock files from large files checks ([91e6652](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/91e66524b0f4bbfcbf152bdee96e1310e469b31e))
|
|
40
|
+
|
|
41
|
+
### 🚀 CI
|
|
42
|
+
|
|
43
|
+
- **commits:** skip job when running on schedule ([36173d3](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commit/36173d384e8af2871889849c5a9f26f77b3f87f8))
|
|
44
|
+
|
|
45
|
+
|
|
3
46
|
<a name="8.2.0"></a>
|
|
4
47
|
## [8.2.0](https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile/compare/8.1.0...8.2.0) (2025-09-19)
|
|
5
48
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2024-
|
|
189
|
+
Copyright 2024-2026 Adrian DC
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
{pre_commit_crocodile-8.2.0/pre_commit_crocodile.egg-info → pre_commit_crocodile-8.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pre-commit-crocodile
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.3.0
|
|
4
4
|
Summary: Git hooks manager intended for developers using pre-commit, prek and commitizen
|
|
5
5
|
Home-page: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile
|
|
6
6
|
Author: Adrian DC
|
|
@@ -17,11 +17,11 @@ Classifier: Intended Audience :: Developers
|
|
|
17
17
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
25
|
Classifier: Topic :: Software Development
|
|
26
26
|
Classifier: Topic :: Utilities
|
|
27
27
|
Requires-Python: >=3,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*
|
|
@@ -33,7 +33,7 @@ Requires-Dist: packaging>=24.0
|
|
|
33
33
|
Requires-Dist: PyYAML>=6.0
|
|
34
34
|
Requires-Dist: ruamel.yaml>=0.18.6
|
|
35
35
|
Requires-Dist: setuptools>=45.1.0
|
|
36
|
-
Requires-Dist: update_checker>=0.
|
|
36
|
+
Requires-Dist: update_checker>=1.0.0
|
|
37
37
|
Dynamic: author
|
|
38
38
|
Dynamic: author-email
|
|
39
39
|
Dynamic: classifier
|
|
@@ -98,7 +98,7 @@ Git hooks manager intended for developers using [pre-commit](https://pre-commit.
|
|
|
98
98
|
|
|
99
99
|
## Preview
|
|
100
100
|
|
|
101
|
-

|
|
102
102
|
|
|
103
103
|
---
|
|
104
104
|
|
|
@@ -48,7 +48,7 @@ Git hooks manager intended for developers using [pre-commit](https://pre-commit.
|
|
|
48
48
|
|
|
49
49
|
## Preview
|
|
50
50
|
|
|
51
|
-

|
|
52
52
|
|
|
53
53
|
---
|
|
54
54
|
|
|
@@ -19,7 +19,7 @@ site_name: pre-commit-crocodile
|
|
|
19
19
|
site_url: https://radiandevcore.gitlab.io/tools/pre-commit-crocodile
|
|
20
20
|
|
|
21
21
|
# Project copyright
|
|
22
|
-
copyright: Copyright © 2024-
|
|
22
|
+
copyright: Copyright © 2024-2026 - <a href="https://gitlab.com/AdrianDC">Adrian DC</a>
|
|
23
23
|
|
|
24
24
|
# Excluded sources
|
|
25
25
|
exclude_docs: |
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.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: 8.
|
|
3
|
+
Version: 8.3.0
|
|
4
4
|
Summary: Git hooks manager intended for developers using pre-commit, prek and commitizen
|
|
5
5
|
Home-page: https://gitlab.com/RadianDevCore/tools/pre-commit-crocodile
|
|
6
6
|
Author: Adrian DC
|
|
@@ -17,11 +17,11 @@ Classifier: Intended Audience :: Developers
|
|
|
17
17
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
25
|
Classifier: Topic :: Software Development
|
|
26
26
|
Classifier: Topic :: Utilities
|
|
27
27
|
Requires-Python: >=3,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*
|
|
@@ -33,7 +33,7 @@ Requires-Dist: packaging>=24.0
|
|
|
33
33
|
Requires-Dist: PyYAML>=6.0
|
|
34
34
|
Requires-Dist: ruamel.yaml>=0.18.6
|
|
35
35
|
Requires-Dist: setuptools>=45.1.0
|
|
36
|
-
Requires-Dist: update_checker>=0.
|
|
36
|
+
Requires-Dist: update_checker>=1.0.0
|
|
37
37
|
Dynamic: author
|
|
38
38
|
Dynamic: author-email
|
|
39
39
|
Dynamic: classifier
|
|
@@ -98,7 +98,7 @@ Git hooks manager intended for developers using [pre-commit](https://pre-commit.
|
|
|
98
98
|
|
|
99
99
|
## Preview
|
|
100
100
|
|
|
101
|
-

|
|
102
102
|
|
|
103
103
|
---
|
|
104
104
|
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/pre_commit_crocodile.egg-info/SOURCES.txt
RENAMED
|
@@ -51,6 +51,8 @@ pre_commit_crocodile.egg-info/SOURCES.txt
|
|
|
51
51
|
pre_commit_crocodile.egg-info/dependency_links.txt
|
|
52
52
|
pre_commit_crocodile.egg-info/entry_points.txt
|
|
53
53
|
pre_commit_crocodile.egg-info/requires.txt
|
|
54
|
+
pre_commit_crocodile.egg-info/scm_file_list.json
|
|
55
|
+
pre_commit_crocodile.egg-info/scm_version.json
|
|
54
56
|
pre_commit_crocodile.egg-info/top_level.txt
|
|
55
57
|
requirements/build.txt
|
|
56
58
|
requirements/commits.txt
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".coveragerc",
|
|
4
|
+
".cz.yaml",
|
|
5
|
+
".gitattributes",
|
|
6
|
+
".gitignore",
|
|
7
|
+
".gitlab-ci.yml",
|
|
8
|
+
".gitmodules",
|
|
9
|
+
".markdownlint.json",
|
|
10
|
+
".pre-commit-config.yaml",
|
|
11
|
+
".pre-commit-hooks.yaml",
|
|
12
|
+
".style.yapf",
|
|
13
|
+
".vscode/extensions.json",
|
|
14
|
+
".vscode/settings.json",
|
|
15
|
+
"CHANGELOG.md",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.md",
|
|
18
|
+
"config/cliff.toml",
|
|
19
|
+
"containers/build/Dockerfile",
|
|
20
|
+
"containers/codestyle/Dockerfile",
|
|
21
|
+
"containers/commits/Dockerfile",
|
|
22
|
+
"containers/deploy/Dockerfile",
|
|
23
|
+
"containers/pages/Dockerfile",
|
|
24
|
+
"containers/preview/Dockerfile",
|
|
25
|
+
"containers/rehost/images.txt",
|
|
26
|
+
"containers/test-coverage-linux/Dockerfile",
|
|
27
|
+
"containers/test-coverage-windows/Dockerfile",
|
|
28
|
+
"containers/test-linux/Dockerfile",
|
|
29
|
+
"docs/.pages.in",
|
|
30
|
+
"docs/assets/images/favicon.png",
|
|
31
|
+
"docs/assets/scripts/mkdocs-exporter.js",
|
|
32
|
+
"docs/assets/stylesheets/custom.css",
|
|
33
|
+
"docs/assets/stylesheets/pdf.scss",
|
|
34
|
+
"docs/commitizen.md",
|
|
35
|
+
"docs/commits.md",
|
|
36
|
+
"docs/components.md",
|
|
37
|
+
"docs/hooks.md",
|
|
38
|
+
"docs/pre-commit.md",
|
|
39
|
+
"docs/prepare.sh",
|
|
40
|
+
"docs/preview.py",
|
|
41
|
+
"docs/preview.svg",
|
|
42
|
+
"docs/robots.txt",
|
|
43
|
+
"docs/settings.md",
|
|
44
|
+
"docs/template.svg",
|
|
45
|
+
"docs/templates/covers/back.html.j2",
|
|
46
|
+
"docs/templates/covers/front.html.j2",
|
|
47
|
+
"mkdocs.yml",
|
|
48
|
+
"mypy.ini",
|
|
49
|
+
"requirements/build.txt",
|
|
50
|
+
"requirements/commits.txt",
|
|
51
|
+
"requirements/coverage.txt",
|
|
52
|
+
"requirements/deploy.txt",
|
|
53
|
+
"requirements/docs.txt",
|
|
54
|
+
"requirements/pages.txt",
|
|
55
|
+
"requirements/quality.txt",
|
|
56
|
+
"requirements/runtime.txt",
|
|
57
|
+
"requirements/tests.txt",
|
|
58
|
+
"setup.py",
|
|
59
|
+
"sonar-project.properties",
|
|
60
|
+
"src/__init__.py",
|
|
61
|
+
"src/__main__.py",
|
|
62
|
+
"src/assets/.pre-commit-config.template.yaml",
|
|
63
|
+
"src/assets/__init__.py",
|
|
64
|
+
"src/cli/__init__.py",
|
|
65
|
+
"src/cli/entrypoint.py",
|
|
66
|
+
"src/cli/main.py",
|
|
67
|
+
"src/features/__init__.py",
|
|
68
|
+
"src/features/argcomplete.py",
|
|
69
|
+
"src/features/commitizen.py",
|
|
70
|
+
"src/features/gcil.py",
|
|
71
|
+
"src/features/git.py",
|
|
72
|
+
"src/features/precommit.py",
|
|
73
|
+
"src/features/prek.py",
|
|
74
|
+
"src/features/radiandevcore.py",
|
|
75
|
+
"src/features/readme.py",
|
|
76
|
+
"src/features/templates.py",
|
|
77
|
+
"src/hooks/__init__.py",
|
|
78
|
+
"src/hooks/check_commitizen_branch.py",
|
|
79
|
+
"src/hooks/check_yaml_ruamel_pure.py",
|
|
80
|
+
"src/hooks/configurations.py",
|
|
81
|
+
"src/hooks/prepare_commit_message.py",
|
|
82
|
+
"src/package/__init__.py",
|
|
83
|
+
"src/package/bundle.py",
|
|
84
|
+
"src/package/settings.py",
|
|
85
|
+
"src/package/updates.py",
|
|
86
|
+
"src/package/version.py",
|
|
87
|
+
"src/prints/__init__.py",
|
|
88
|
+
"src/prints/boxes.py",
|
|
89
|
+
"src/prints/colors.py",
|
|
90
|
+
"src/system/__init__.py",
|
|
91
|
+
"src/system/commands.py",
|
|
92
|
+
"src/system/platform.py",
|
|
93
|
+
"src/types/__init__.py",
|
|
94
|
+
"src/types/environments.py",
|
|
95
|
+
"src/types/strings.py",
|
|
96
|
+
"templates/commits.yml",
|
|
97
|
+
"tests/arguments/test.sh",
|
|
98
|
+
"tests/colors/test.sh",
|
|
99
|
+
"tests/macos/test.sh",
|
|
100
|
+
"tests/settings/test.sh",
|
|
101
|
+
"tests/versions/test.sh",
|
|
102
|
+
"tests/windows/test.sh"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
@@ -87,11 +87,11 @@ setup(
|
|
|
87
87
|
'License :: OSI Approved :: Apache Software License',
|
|
88
88
|
'Operating System :: OS Independent',
|
|
89
89
|
'Programming Language :: Python :: 3',
|
|
90
|
-
'Programming Language :: Python :: 3.9',
|
|
91
90
|
'Programming Language :: Python :: 3.10',
|
|
92
91
|
'Programming Language :: Python :: 3.11',
|
|
93
92
|
'Programming Language :: Python :: 3.12',
|
|
94
93
|
'Programming Language :: Python :: 3.13',
|
|
94
|
+
'Programming Language :: Python :: 3.14',
|
|
95
95
|
'Topic :: Software Development',
|
|
96
96
|
'Topic :: Utilities',
|
|
97
97
|
],
|
|
@@ -15,7 +15,7 @@ sonar.sources=src
|
|
|
15
15
|
#sonar.sourceEncoding=UTF-8
|
|
16
16
|
|
|
17
17
|
# Python versions
|
|
18
|
-
sonar.python.version=3.
|
|
18
|
+
sonar.python.version=3.10, 3.11, 3.12, 3.13, 3.14
|
|
19
19
|
|
|
20
20
|
# Patterns used to exclude some files from coverage report.
|
|
21
21
|
sonar.coverage.exclusions=docs/**/*,setup.py
|
|
@@ -10,7 +10,7 @@ default_stages:
|
|
|
10
10
|
- pre-push
|
|
11
11
|
- prepare-commit-msg
|
|
12
12
|
minimum_pre_commit_version: 3.8.0
|
|
13
|
-
minimum_prek_version: 0.
|
|
13
|
+
minimum_prek_version: 0.4.14
|
|
14
14
|
|
|
15
15
|
# pre-commit exclusions
|
|
16
16
|
exclude: >
|
|
@@ -44,6 +44,12 @@ repos:
|
|
|
44
44
|
hooks:
|
|
45
45
|
- id: check-added-large-files
|
|
46
46
|
args: ['--maxkb=500']
|
|
47
|
+
exclude: >
|
|
48
|
+
(?x)(
|
|
49
|
+
package-lock\.json$|
|
|
50
|
+
pnpm-lock\.yaml$|
|
|
51
|
+
yarn\.lock$
|
|
52
|
+
)
|
|
47
53
|
- id: check-case-conflict
|
|
48
54
|
exclude: >
|
|
49
55
|
(?x)(
|
|
@@ -5,9 +5,9 @@ from argparse import Namespace
|
|
|
5
5
|
from enum import Enum
|
|
6
6
|
from importlib.resources import files as resources_files
|
|
7
7
|
from pathlib import Path
|
|
8
|
-
from tempfile import _TemporaryFileWrapper, NamedTemporaryFile
|
|
8
|
+
from tempfile import _TemporaryFileWrapper as TempFile, NamedTemporaryFile
|
|
9
9
|
from time import sleep
|
|
10
|
-
from typing import List
|
|
10
|
+
from typing import List
|
|
11
11
|
|
|
12
12
|
# Components
|
|
13
13
|
from ..features.argcomplete import Argcomplete
|
|
@@ -35,9 +35,6 @@ class Entrypoint:
|
|
|
35
35
|
'CRITICAL',
|
|
36
36
|
])
|
|
37
37
|
|
|
38
|
-
# TempFile type
|
|
39
|
-
TempFile = Union[_TemporaryFileWrapper] # type: ignore[type-arg]
|
|
40
|
-
|
|
41
38
|
# CLI, pylint: disable=too-many-boolean-expressions,too-many-branches,too-many-locals
|
|
42
39
|
@staticmethod
|
|
43
40
|
def cli(options: Namespace, ) -> Result:
|
|
@@ -181,11 +178,11 @@ class Entrypoint:
|
|
|
181
178
|
elif options.default:
|
|
182
179
|
|
|
183
180
|
# Bind configurations files, pylint: disable=consider-using-with
|
|
184
|
-
commitizen_configuration:
|
|
181
|
+
commitizen_configuration: TempFile = NamedTemporaryFile( # type: ignore[type-arg]
|
|
185
182
|
delete_on_close=True,
|
|
186
183
|
suffix=Commitizen.CONFIGURATION_EXTENSION,
|
|
187
184
|
)
|
|
188
|
-
precommit_configuration:
|
|
185
|
+
precommit_configuration: TempFile = NamedTemporaryFile( # type: ignore[type-arg]
|
|
189
186
|
delete_on_close=True,
|
|
190
187
|
suffix=PreCommit.CONFIGURATION_EXTENSION,
|
|
191
188
|
)
|
|
@@ -31,14 +31,16 @@ class PreCommit:
|
|
|
31
31
|
|
|
32
32
|
# Defaults
|
|
33
33
|
DEFAULT_BINARY: str = 'pre-commit'
|
|
34
|
-
|
|
34
|
+
DEFAULT_PACKAGES_MISE: str = 'pre-commit'
|
|
35
|
+
DEFAULT_PACKAGES_PIPX: List[str] = [
|
|
35
36
|
'pre-commit',
|
|
36
37
|
]
|
|
37
38
|
DEFAULT_TITLE: str = 'pre-commit'
|
|
38
39
|
|
|
39
40
|
# Variables
|
|
40
41
|
BINARY: str = ''
|
|
41
|
-
|
|
42
|
+
PACKAGES_MISE: str = ''
|
|
43
|
+
PACKAGES_PIPX: List[str] = []
|
|
42
44
|
TITLE: str = ''
|
|
43
45
|
|
|
44
46
|
# Internals
|
|
@@ -54,13 +56,15 @@ class PreCommit:
|
|
|
54
56
|
# Configure pre-commit engine
|
|
55
57
|
if settings.get('engines', 'pre_commit') == PreCommit.ENGINE:
|
|
56
58
|
PreCommit.BINARY = PreCommit.DEFAULT_BINARY
|
|
57
|
-
PreCommit.
|
|
59
|
+
PreCommit.PACKAGES_MISE = PreCommit.DEFAULT_PACKAGES_MISE
|
|
60
|
+
PreCommit.PACKAGES_PIPX = PreCommit.DEFAULT_PACKAGES_PIPX
|
|
58
61
|
PreCommit.TITLE = PreCommit.DEFAULT_TITLE
|
|
59
62
|
|
|
60
63
|
# Configure Prek engine
|
|
61
64
|
else:
|
|
62
65
|
PreCommit.BINARY = Prek.DEFAULT_BINARY
|
|
63
|
-
PreCommit.
|
|
66
|
+
PreCommit.PACKAGES_MISE = Prek.DEFAULT_PACKAGES_MISE
|
|
67
|
+
PreCommit.PACKAGES_PIPX = Prek.DEFAULT_PACKAGES_PIPX
|
|
64
68
|
PreCommit.TITLE = Prek.DEFAULT_TITLE
|
|
65
69
|
|
|
66
70
|
# Autoupdate
|
|
@@ -371,17 +375,31 @@ class PreCommit:
|
|
|
371
375
|
# Variables
|
|
372
376
|
result: bool = True
|
|
373
377
|
|
|
374
|
-
#
|
|
378
|
+
# Install packages (mise)
|
|
379
|
+
if Commands.exists('mise') and Commands.mise(
|
|
380
|
+
[
|
|
381
|
+
'which',
|
|
382
|
+
PreCommit.PACKAGES_MISE,
|
|
383
|
+
],
|
|
384
|
+
check=False,
|
|
385
|
+
):
|
|
386
|
+
Commands.mise([
|
|
387
|
+
'upgrade',
|
|
388
|
+
PreCommit.PACKAGES_MISE,
|
|
389
|
+
])
|
|
390
|
+
return result
|
|
391
|
+
|
|
392
|
+
# Uninstall existing packages (pipx), pylint: disable=duplicate-code
|
|
375
393
|
if Commands.exists(PreCommit.BINARY):
|
|
376
|
-
for package in PreCommit.
|
|
394
|
+
for package in PreCommit.PACKAGES_PIPX:
|
|
377
395
|
Commands.pip([
|
|
378
396
|
'uninstall',
|
|
379
397
|
package,
|
|
380
398
|
])
|
|
381
399
|
print(' ')
|
|
382
400
|
|
|
383
|
-
# Install
|
|
384
|
-
for package in PreCommit.
|
|
401
|
+
# Install packages (pipx)
|
|
402
|
+
for package in PreCommit.PACKAGES_PIPX:
|
|
385
403
|
|
|
386
404
|
# Check package installation
|
|
387
405
|
if not Commands.pip([
|
|
@@ -391,7 +409,7 @@ class PreCommit:
|
|
|
391
409
|
result = False
|
|
392
410
|
|
|
393
411
|
# Isolate package installation
|
|
394
|
-
if package != PreCommit.
|
|
412
|
+
if package != PreCommit.PACKAGES_PIPX[-1]:
|
|
395
413
|
print(' ')
|
|
396
414
|
|
|
397
415
|
# Result
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
from configparser import ConfigParser
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from sys import stdout
|
|
7
|
-
from typing import Optional
|
|
7
|
+
from typing import Optional
|
|
8
8
|
|
|
9
9
|
# Components
|
|
10
10
|
from ..prints.colors import Colors
|
|
@@ -14,7 +14,7 @@ from ..system.platform import Platform
|
|
|
14
14
|
class Settings:
|
|
15
15
|
|
|
16
16
|
# Types
|
|
17
|
-
Value =
|
|
17
|
+
Value = int | str
|
|
18
18
|
|
|
19
19
|
# Constants
|
|
20
20
|
SETTINGS_FILE: str = 'settings.ini'
|
|
@@ -91,7 +91,10 @@ class Updates:
|
|
|
91
91
|
from update_checker import UpdateChecker
|
|
92
92
|
|
|
93
93
|
# Check for updates
|
|
94
|
-
check = UpdateChecker(bypass_cache=True).check(
|
|
94
|
+
check = UpdateChecker(bypass_cache=True).check(
|
|
95
|
+
package_name=self.__name,
|
|
96
|
+
package_version=version,
|
|
97
|
+
)
|
|
95
98
|
if check: # pragma: no cover
|
|
96
99
|
|
|
97
100
|
# Show updates message
|
|
@@ -194,12 +197,14 @@ class Updates:
|
|
|
194
197
|
|
|
195
198
|
# Updated version message
|
|
196
199
|
elif same:
|
|
200
|
+
assert date is not None
|
|
197
201
|
box.add(
|
|
198
202
|
f'{version_prefix} {Colors.BOLD}was released {pretty_date(date)}{Colors.BOLD}!'
|
|
199
203
|
)
|
|
200
204
|
|
|
201
205
|
# Older version message
|
|
202
206
|
elif older:
|
|
207
|
+
assert date is not None
|
|
203
208
|
box.add(
|
|
204
209
|
f'{version_prefix} {Colors.BOLD}newer than {Colors.RED}{available}' \
|
|
205
210
|
f' {Colors.BOLD}from {pretty_date(date)}{Colors.BOLD}!'
|
|
@@ -207,6 +212,7 @@ class Updates:
|
|
|
207
212
|
|
|
208
213
|
# Newer version message
|
|
209
214
|
else:
|
|
215
|
+
assert date is not None
|
|
210
216
|
box.add(
|
|
211
217
|
f'{version_prefix} {Colors.BOLD}updated {pretty_date(date)}' \
|
|
212
218
|
f' to {Colors.GREEN}{available}{Colors.BOLD}!'
|
|
@@ -56,6 +56,17 @@ class Commands:
|
|
|
56
56
|
# Fallback
|
|
57
57
|
return False # pragma: no cover
|
|
58
58
|
|
|
59
|
+
# Mise
|
|
60
|
+
@staticmethod
|
|
61
|
+
def mise(arguments: List[str], check: bool = True) -> bool:
|
|
62
|
+
|
|
63
|
+
# Run mise
|
|
64
|
+
return Commands.run(
|
|
65
|
+
'mise',
|
|
66
|
+
arguments,
|
|
67
|
+
check,
|
|
68
|
+
)
|
|
69
|
+
|
|
59
70
|
# Output
|
|
60
71
|
@staticmethod
|
|
61
72
|
def output(binary: str, arguments: List[str]) -> str:
|
|
@@ -71,7 +71,7 @@ class Environments:
|
|
|
71
71
|
lines += [f'{self.__group}:']
|
|
72
72
|
|
|
73
73
|
# Append variables
|
|
74
|
-
for
|
|
74
|
+
for variable in self.__variables.values():
|
|
75
75
|
line = f' {variable.name: <{help_position - 2}}'
|
|
76
76
|
line += f'{variable.description}'
|
|
77
77
|
if variable.fallback:
|
|
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-8.2.0 → pre_commit_crocodile-8.3.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-8.2.0 → pre_commit_crocodile-8.3.0}/docs/assets/scripts/mkdocs-exporter.js
RENAMED
|
File without changes
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.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
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/templates/covers/back.html.j2
RENAMED
|
File without changes
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/docs/templates/covers/front.html.j2
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/check_commitizen_branch.py
RENAMED
|
File without changes
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.0}/src/hooks/check_yaml_ruamel_pure.py
RENAMED
|
File without changes
|
|
File without changes
|
{pre_commit_crocodile-8.2.0 → pre_commit_crocodile-8.3.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
|