Skip to content

Commit 3c5c211

Browse files
committed
further lint config
1 parent 3f1b4eb commit 3c5c211

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
repos:
2+
3+
- repo: local
4+
5+
hooks:
6+
7+
- id: mh_style
8+
name: mh_style
9+
entry: mh_style
10+
args: [--process-slx, --fix]
11+
files: ^(.*\.(m|slx))$
12+
language: python
13+
additional_dependencies: [miss_hit_core]
14+
15+
- id: mh_metric
16+
name: mh_metric
17+
entry: mh_metric
18+
args: [--ci]
19+
files: ^(.*\.(m|slx))$
20+
language: python
21+
additional_dependencies: [miss_hit_core]
22+
23+
- id: mh_lint
24+
name: mh_lint
25+
entry: mh_lint
26+
files: ^(.*\.(m|slx))$
27+
language: python
28+
additional_dependencies: [miss_hit]
29+
30+
- repo: https://github.com/pre-commit/pre-commit-hooks
31+
rev: v2.0.0
32+
hooks:
33+
- id: trailing-whitespace
34+
- id: end-of-file-fixer
35+
- id: check-yaml
36+
- id: check-added-large-files

miss_hit.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# style guide (https://florianschanda.github.io/miss_hit/style_checker.html)
22
line_length: 100
33
regex_function_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
4+
regex_script_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
45
exclude_dir: "lib"
56
copyright_entity: "Mohamed Rezk"
67
copyright_entity: "Agah Karakuzu"
@@ -10,4 +11,4 @@ copyright_entity: "CPP visual motion localizer developpers"
1011
metric "cnest": limit 4
1112
metric "file_length": limit 500
1213
metric "cyc": limit 15
13-
metric "parameters": limit 5
14+
metric "parameters": limit 7

0 commit comments

Comments
 (0)