Add pre-commit hooks for markdown and yaml

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-02-11 16:15:09 -05:00 committed by Alice Huston
parent dd5ea317b6
commit 2b800f4a4f
4 changed files with 18 additions and 12 deletions

5
.mdl_style.rb Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env ruby
all
rule 'MD007', :indent => 4
rule 'MD013', :tables => false

1
.mdlrc Normal file
View File

@ -0,0 +1 @@
style '.mdl_style.rb'

View File

@ -11,7 +11,7 @@ Mac (althought that hasn't been tested).
Please see [our setup guide](./docs/setting-up.md) for more information on how Please see [our setup guide](./docs/setting-up.md) for more information on how
to onboard a new user or system. to onboard a new user or system.
## Interested? ## For Those Interested
Although we are not actively looking for new members to join in on this repo, Although we are not actively looking for new members to join in on this repo,
we are not strictly opposed. Please reach out to @ahuston-0 or @RichieCahill we are not strictly opposed. Please reach out to @ahuston-0 or @RichieCahill
@ -21,7 +21,7 @@ for further information.
- `keys/`: PGP public keys, for those who are using `SOPS` for secrets - `keys/`: PGP public keys, for those who are using `SOPS` for secrets
- `modules/`: Nix modules created by us for common services or overrides - `modules/`: Nix modules created by us for common services or overrides
(fail2ban, hydra, certain boot params, etc.) (fail2ban, hydra, certain boot params, etc.)
- `systems/`: config for common *server* components, as well as per-server configurations - `systems/`: config for common *server* components, as well as per-server configurations
- `users/`: this directory has two major subdirectories, both are critical - `users/`: this directory has two major subdirectories, both are critical
- `users/<user>`: includes configs for `home-manager`, `SOPS`, and `SSH` keys - `users/<user>`: includes configs for `home-manager`, `SOPS`, and `SSH` keys