Skip to content

Commit bd0d9fd

Browse files
committed
uipdate infra
1 parent fb66614 commit bd0d9fd

File tree

9 files changed

+89
-18
lines changed

9 files changed

+89
-18
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto

.gitignore

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,51 @@
11
*DS_Store
22

3-
*.m~
4-
*octave-workspace
5-
63
# exclude content of logfiles folders
74
*/logfiles/*
85
*/*/*/logfiles/*
96
*.tsv
107
*.mat
8+
9+
## virtual env
10+
env/*
11+
venv/*
12+
13+
## visual studio code
14+
.vscode
15+
16+
17+
## MATLAB / OCTAVE gitignore template
18+
19+
# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
20+
21+
# Windows default autosave extension
22+
*.asv
23+
24+
# OSX / *nix default autosave extension
25+
*.m~
26+
27+
# Compiled MEX binaries (all platforms)
28+
*.mex*
29+
30+
# Packaged app and toolbox files
31+
*.mlappinstall
32+
*.mltbx
33+
34+
# Generated helpsearch folders
35+
helpsearch*/
36+
37+
# Simulink code generation folders
38+
slprj/
39+
sccprj/
40+
41+
# Matlab code generation folders
42+
codegen/
43+
44+
# Simulink autosave extension
45+
*.autosave
46+
47+
# Simulink cache files
48+
*.slxc
49+
50+
# Octave session info
51+
octave-workspace

.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: v4.0.1
32+
hooks:
33+
- id: trailing-whitespace
34+
- id: end-of-file-fixer
35+
- id: check-yaml
36+
- id: check-added-large-files

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

miss_hit.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
line_length: 100
22
regex_function_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
3+
regex_script_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
4+
regex_parameter_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
35
suppress_rule: "copyright_notice"
46
exclude_dir: "lib"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
miss_hit==0.9.29
2+
pre-commit

subfun/miss_hit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
regex_parameter_name: "[a-zA-Z0-9_]+"

tests/miss_hit.cfg

Lines changed: 1 addition & 0 deletions
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: "((test_[a-z]+)|[a-z]+)(([A-Z]){1}[A-Za-z]+)*"
4+
regex_parameter_name: "test_suite|((test_[a-z]+)|[a-z]+)(([A-Z]){1}[A-Za-z]+)*"
45
suppress_rule: "copyright_notice"
56

67
# metrics limit for the code quality (https://florianschanda.github.io/miss_hit/metrics.html)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.1
1+
v0.2.1

0 commit comments

Comments
 (0)