From c9ebdcdda578ab50148d326df0f12d0d01b4c3c9 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 5 Oct 2025 23:12:38 -0400 Subject: [PATCH] fix: pre-commit --- .pre-commit-config.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60acfc6..74499e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,25 @@ minimum_pre_commit_version: "3.5.0" + repos: - repo: https://github.com/JohnnyMorganz/StyLua rev: v2.1.0 hooks: - id: stylua-github name: stylua (Lua formatter) - args: ["."] - additional_dependencies: [] + files: \.lua$ + pass_filenames: true + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.9 hooks: - id: ruff-format name: ruff (format) - files: ^(scrapers/|tests/scrapers/|.*\.py$) + files: \.py$ - id: ruff - name: ruff (lint) - args: ["--fix", "--select=I", "."] + name: ruff (lint imports) + args: ["--fix", "--select=I"] + files: \.py$ + - repo: local hooks: - id: mypy @@ -24,9 +28,11 @@ repos: language: system args: ["."] pass_filenames: false + - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.1.0 hooks: - id: prettier name: prettier (format markdown) - files: \.(md)$ + files: \.md$ +