forked from MrMarans/AnythingLLM_File-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (45 loc) · 1.76 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (45 loc) · 1.76 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
49
50
51
repos:
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [mccabe==0.7.0]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace # Entfernt Leerzeichen am Zeilenende
- id: end-of-file-fixer # Stellt sicher, dass Dateien mit einer Newline enden
- id: check-yaml # Validiert YAML-Dateien
- id: check-json # Validiert JSON-Dateien
- id: check-added-large-files # Verhindert das Committen großer Dateien
args: ['--maxkb=500']
- id: check-merge-conflict # Prüft auf Merge-Konflikt-Markierungen
- id: debug-statements # Findet vergessene Debugging-Statements (z.B. pdb, ipdb)
- id: check-case-conflict # Prüft auf Dateien, die in case-insensitiven Systemen kollidieren würden
- repo: https://github.com/pycqa/bandit
rev: 1.7.7
hooks:
- id: bandit # Sicherheits-Linter für Python-Code
args: ['-ll'] # Low Level für detailliertere Überprüfung
exclude: '^tests/'
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort # Sortiert Python Imports
args: ['--profile', 'black'] # Kompatibilität mit Black
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade # Upgrade Python-Syntax für neuere Versionen
args: [--py312-plus] # Nutzt Python 3.12+ Features