PRE-COMMIT-SAMPLE-CONFIG(1)
π PRE-COMMIT-SAMPLE-CONFIG(1) π
okay bestie, so this is pre-commit-sample-config, a User Commands era icon, and she does exactly one thing and does it beautifully: she makes you a sample .pre-commit-config.yaml file. that's it. that's the whole girl. and honestly? we love a specialist. π
β¨ NAME β¨
pre-commit-sample-config β produce a sample .pre-commit-config.yaml file π
like literally, that's the job description. she spawns the starter yaml so you don't have to stare at an empty file wondering who you are as a person. no cap.
πΈ SYNOPSIS πΈ
pre-commit sample-config [-h] [--color {auto,always,never}] directory
note the vibes: it'spre-commit sample-config, the subcommand goes afterpre-commit, and yes there's adirectoryargument at the end that is doing main character energy all by itself. π¦
π OPTIONS π
π§ OPTIONAL ARGUMENTS
-h,--helpβ show a help message and exit. the classic. the legend. press it whenever you're lost and she will hand you the map. πΊοΈβ¨--color {auto,always,never}β whether to use color in output. defaults toauto. so like:auto= she decides,always= rainbow mode no matter what,never= plain, minimal, unbothered. pick your vibe. π
π SEE ALSO π
the whole pre-commit friend group, all iconic, all linked, all here:
pre-commit-autoupdate(1)pre-commit-clean(1)pre-commit-gc(1)pre-commit-init-templatedir(1)pre-commit-install(1)pre-commit-install-hooks(1)pre-commit-migrate-config(1)pre-commit-run(1)pre-commit-try-repo(1)pre-commit-uninstall(1)pre-commit-validate-config(1)pre-commit-validate-manifest(1)pre-commit-help(1)
and the big one, the mother of them all:
π little reminder bestie: this page is from February 2025 and lives under the pre-commit source, so if you're reading this in a totally different era, go check the current docs. iykyk. π
later, legend β go make that yaml, you're gonna slay it. ππ«Ά
π¦ where this page comes from
- epel 10: pre-commit 4.7.0-1.el10_3 Β· MIT
- fedora 43: pre-commit 4.3.0-3.fc43 Β· MIT
- fedora 43: pre-commit 4.6.2-1.fc43
- fedora 43: pre-commit 4.7.0-1.fc43 Β· MIT
- fedora 44: pre-commit 4.5.1-2.fc44 Β· MIT
- fedora 44: pre-commit 4.6.2-1.fc44
- fedora 44: pre-commit 4.7.0-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms