-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
75 lines (69 loc) · 1.77 KB
/
.pre-commit-config.yaml
File metadata and controls
75 lines (69 loc) · 1.77 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Pre-commit hooks configuration for REChain
# Install with: pip install pre-commit
# Then: pre-commit install
repos:
# General hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
# Dart/Flutter formatting and linting
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
files: \.(py)$
exclude: ^(android|ios|web|linux|macos|windows)/
# For Dart files, use flutter format (requires Flutter SDK)
# Note: This assumes flutter is in PATH
- repo: local
hooks:
- id: flutter-format
name: Flutter Format
entry: flutter format --line-length 80
language: system
files: \.dart$
pass_filenames: false
- repo: local
hooks:
- id: flutter-analyze
name: Flutter Analyze
entry: flutter analyze
language: system
files: \.dart$
pass_filenames: false
# For Markdown
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-frontmatter
- mdformat-footnote
# Exclude certain files or directories
exclude: |
(?x)(
^android/.*$|
^ios/.*$|
^web/.*$|
^linux/.*$|
^macos/.*$|
^windows/.*$|
^aurora/.*$|
^REChainPWAForAuroraOS/.*$|
^com.rechain.online/.*$|
^coverage/.*$|
^fastlane/.*$|
^fdroid/.*$|
^packages/.*$|
^screenshots/.*$|
^test_driver/.*$|
^assets/vodozemac/.*$|
^lib_patchedforbridges/.*$
)