-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (44 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (44 loc) · 1.26 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
# Pre-commit hooks configuration
# See https://pre-commit.com for more information
repos:
# Black - Python code formatter
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
language_version: python3.11
args: [--line-length=100]
# Pylint - Python code linter
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--fail-under=9.0", # Require 90% score (9.0/10)
"--disable=broad-exception-caught,too-few-public-methods",
]
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
# Gitleaks - block commits containing secrets (uses .gitleaks.toml in repo root)
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.1
hooks:
- id: gitleaks