Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading