added pre-commit, direnv with shell.nix

This commit is contained in:
Erik Grobecker 2024-12-21 12:19:20 +01:00
parent 45eff3b7df
commit ebd3ec3048
Signed by: Erik
GPG key ID: 80D020D0ABBD3FB2
4 changed files with 14 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

5
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,5 @@
repos:
- repo: https://github.com/markdownlint/markdownlint
rev: v0.13.0
hooks:
- id: markdownlint_docker

7
shell.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
pre-commit
];
}