commit 9bb8e6ff2f97e25441e9a1b7cb3185b4f9b5abb1 parent ba61bd2b272dee17b496e4f06601063888691446 Author: Damian Myrda <damian@prime8.dev> Date: Wed, 18 Feb 2026 14:48:09 -0600 add pre-commit configuration Diffstat:
| A | .pre-commit-config.yaml | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -0,0 +1,26 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-json + - id: check-toml + - id: check-merge-conflict + - id: check-added-large-files + args: ['--maxkb=1000'] + - id: debug-statements + - id: check-docstring-first + + - repo: https://github.com/psf/black + rev: 24.1.1 + hooks: + - id: black + language_version: python3 + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.2.1 + hooks: + - id: ruff + args: [--fix, --exit-non-zero-on-fix]