From d02d663251343650ff2bf7f2c0ae90a90c4ffc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 4 Oct 2025 00:16:38 +0200 Subject: [PATCH] chore: add stylua and pre-commit hook --- .pre-commit-config.yaml | 6 ++++++ .stylua.toml | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 .stylua.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..f128d86 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/JohnnyMorganz/StyLua + rev: v2.3.0 + hooks: + - id: stylua-system + args: [--check, --respect-ignores] diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..ad33486 --- /dev/null +++ b/.stylua.toml @@ -0,0 +1,3 @@ +column_width = 88 +indent_type = "Spaces" +collapse_simple_statement = "Always"