From 77ef75557b465b660a8777ce8337fa324e2732c2 Mon Sep 17 00:00:00 2001 From: vyuroshchin Date: Thu, 20 Aug 2026 14:15:53 +0300 Subject: [PATCH] chore: add pre-commit hooks --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ Makefile | 2 ++ 2 files changed, 25 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b40175c99..578ef30d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,3 +13,26 @@ repos: entry: uv run ruff format language: system types_or: [python, pyi] + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: check-ast + - id: check-case-conflict + - id: check-json + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: check-illegal-windows-names + - id: check-symlinks + - id: check-added-large-files + args: ['--maxkb=500'] + - id: debug-statements + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: pretty-format-json + args: ['--autofix', '--indent=2'] + - id: trailing-whitespace + - id: name-tests-test + args: ['--pytest-test-first'] diff --git a/Makefile b/Makefile index 4ed823f49..9464d1635 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ check: check-lint check-format check-lint: uv run ruff check . uv run mypy appium + uv run pre-commit validate-config + uv run pre-commit validate-manifest .PHONY: check-format check-format: