-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (45 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (45 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
default_language_version:
python: python3.12
repos:
# Ruff for linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
hooks:
- id: ruff
args: [--fix]
language_version: python3.12
- id: ruff-format
language_version: python3.12
# Python imports sorting
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
args: [--profile=black]
language_version: python3.12
# YAML formatting (using yamlfix instead of prettier)
- repo: https://github.com/lyz-code/yamlfix
rev: 1.19.1
hooks:
- id: yamlfix
# General checks and security
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
language_version: python3.12
- id: detect-private-key
- id: check-docstring-first
language_version: python3.12
- id: check-ast
language_version: python3.12
- id: requirements-txt-fixer