Move Python installation to Layer 2 alongside system essentials. Modern Ubuntu/Debian deeply integrate Python for package post-installation scripts. Installing Python early prevents segfaults in python3-cryptography and dependency chain failures when software-properties-common is configured. Consolidates duplicate Python installations and reduces layer complexity.
36 lines
901 B
YAML
36 lines
901 B
YAML
default_install_hook_types:
|
|
- pre-commit
|
|
- commit-msg
|
|
default_stages:
|
|
- pre-commit
|
|
- manual
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: fix-byte-order-marker
|
|
- id: check-case-conflict
|
|
- id: check-symlinks
|
|
- id: destroyed-symlinks
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
- id: check-merge-conflict
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: conventional-pre-commit
|
|
stages: [commit-msg]
|
|
args: ["--strict", "--force-scope", "--verbose"]
|
|
|
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
rev: v0.18.1
|
|
hooks:
|
|
- id: markdownlint-cli2
|
|
args: ["--fix"]
|