-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (46 loc) · 1.64 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (46 loc) · 1.64 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
repos:
# --------------------------------------------------------------------------
# General file hygiene
# --------------------------------------------------------------------------
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
exclude: firebase_options\.dart$
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-merge-conflict
- id: detect-private-key
# --------------------------------------------------------------------------
# Python — formatting
# --------------------------------------------------------------------------
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
files: ^backend/
language_version: python3
# --------------------------------------------------------------------------
# Python — linting
# --------------------------------------------------------------------------
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
files: ^backend/
args:
- --max-line-length=120
- --select=E9,F63,F7,F82
# --------------------------------------------------------------------------
# Secrets detection
# --------------------------------------------------------------------------
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [--baseline, .secrets.baseline]
exclude: \.env\.example$|pubspec\.lock$