Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
matlab_airfoil_toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
matlab_airfoil_toolbox
Commits
22217a92
Verified
Commit
22217a92
authored
3 years ago
by
Thomas Lambert
Browse files
Options
Downloads
Patches
Plain Diff
ci: add miss_hit checks to CI
parent
4faf74fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5937
passed
3 years ago
Stage: static analysis
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+24
-0
24 additions, 0 deletions
.pre-commit-config.yaml
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
CONTRIBUTING.md
+17
-0
17 additions, 0 deletions
CONTRIBUTING.md
requirements.txt
+2
-0
2 additions, 0 deletions
requirements.txt
with
63 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
18
−
0
View file @
22217a92
---
# Using the official Python Docker image as default
image
:
python
# Columns of the pipeline
stages
:
-
static analysis
# Static code analysis job via MISS_HIT
static analysis
:
stage
:
static analysis
before_script
:
-
pip install miss_hit
script
:
-
mh_style . --fix
-
mh_metric . --ci
-
mh_lint .
allow_failure
:
false
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
0 → 100644
+
24
−
0
View file @
22217a92
---
repos
:
-
repo
:
local
hooks
:
-
id
:
mh_style
entry
:
mh_style
name
:
mh_style
args
:
[
--process-slx
,
--fix
]
files
:
^(.*\.(m|slx))$
language
:
python
additional_dependencies
:
[
miss_hit_core
]
-
id
:
mh_metric
name
:
mh_metric
entry
:
mh_metric
args
:
[
--ci
]
files
:
^(.*\.(m|slx))$
language
:
python
additional_dependencies
:
[
miss_hit_core
]
-
id
:
mh_lint
name
:
mh_lint
entry
:
mh_lint
files
:
^(.*\.(m|slx))$
language
:
python
additional_dependencies
:
[
miss_hit
]
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
2
−
0
View file @
22217a92
...
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
...
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
### Added
-
Start using MISS_HIT for style and code analysis.
-
Start using MISS_HIT for style and code analysis.
-
ci: Add MISS_HIT job in pipeline
-
ci: Add pre-commit hook for miss_hit
### Changed
### Changed
...
...
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
17
−
0
View file @
22217a92
...
@@ -140,6 +140,22 @@ errors.
...
@@ -140,6 +140,22 @@ errors.
mh_lint .
mh_lint .
```
```
A more convenient way to use MISS_HIT is to include it in a pre-commit hook.
This can be done with
[
pre-commit
][
pre-commit-site
]
. To install both
dependencies just run:
```
bash
pip3
install
-r
requirements.txt
```
The install the pre-commit hooks using:
```
bash
pre-commit
install
```
Now the three MISS_HIT checks will be run every time you make a commit.
#### Other
#### Other
Some other conventions can not be currently enforced by MISS_HIT. They should
Some other conventions can not be currently enforced by MISS_HIT. They should
...
@@ -172,5 +188,6 @@ The following naming convention is adopted:
...
@@ -172,5 +188,6 @@ The following naming convention is adopted:
5.
Ensure MISS_HIT is happy
5.
Ensure MISS_HIT is happy
6.
Submit your Merge Request.
6.
Submit your Merge Request.
[
pre-commit-site
]:
https://pre-commit.com/
[
miss_hit
]:
https://github.com/florianschanda/miss_hit
[
miss_hit
]:
https://github.com/florianschanda/miss_hit
[
miss_hit_cfg
]:
https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/blob/master/miss_hit.cfgj:w
[
miss_hit_cfg
]:
https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/blob/master/miss_hit.cfgj:w
This diff is collapsed.
Click to expand it.
requirements.txt
0 → 100644
+
2
−
0
View file @
22217a92
miss_hit
pre-commit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment