forked from LiveCarta/CommentAutomation
Initial
This commit is contained in:
50
.pre-commit-config.yaml
Normal file
50
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
minimum_pre_commit_version: 4.0.0
|
||||
fail_fast: false
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- id: check-merge-conflict
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: black
|
||||
name: black
|
||||
entry: uv run black --check --diff
|
||||
language: system
|
||||
types_or: [python]
|
||||
|
||||
- id: isort
|
||||
name: isort
|
||||
entry: uv run isort --check-only --diff
|
||||
language: system
|
||||
types_or: [python]
|
||||
|
||||
- id: ruff
|
||||
name: ruff
|
||||
entry: uv run ruff check
|
||||
language: system
|
||||
types_or: [python]
|
||||
|
||||
- id: bandit
|
||||
name: bandit
|
||||
entry: uv run bandit -q -r src
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
||||
- id: ty
|
||||
name: ty
|
||||
entry: uv run ty check
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
||||
- id: pytest
|
||||
name: pytest-with-coverage
|
||||
entry: uv run pytest -q
|
||||
language: system
|
||||
pass_filenames: false
|
||||
stages: [pre-push]
|
||||
Reference in New Issue
Block a user