From ebd3ec3048bf4c16862b40f8360d15d911475fc3 Mon Sep 17 00:00:00 2001 From: Erik Grobecker Date: Sat, 21 Dec 2024 12:19:20 +0100 Subject: [PATCH] added pre-commit, direnv with shell.nix --- .envrc | 1 + .gitignore | 1 + .pre-commit-config.yaml | 5 +++++ shell.nix | 7 +++++++ 4 files changed, 14 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..65326bb --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff51edf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.direnv \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d29fcf4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/markdownlint/markdownlint + rev: v0.13.0 + hooks: + - id: markdownlint_docker diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..81224b6 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import {} }: + + pkgs.mkShell { + packages = with pkgs; [ + pre-commit + ]; +}