Skip to content

Commit 193346b

Browse files
Merge pull request #883 from WillCodeForCats/super-linter
Migrate to super-linter
2 parents d23e902 + 2f70744 commit 193346b

File tree

23 files changed

+151
-124
lines changed

23 files changed

+151
-124
lines changed

.github/ISSUE_TEMPLATE/change_request.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
name: Change Request
33
about: Request an update or change for the integration.
4-
title: ''
5-
labels: ''
6-
assignees: ''
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
8+
89
<!-- IF YOU DO NOT FILL OUT THIS TEMPLATE YOUR ISSUE WILL BE CLOSED -->
910
<!-- If you delete the template the issue will be closed and you will be asked to resubmit using the template. -->
1011

@@ -22,8 +23,9 @@ A clear and concise description of what the feature should be.
2223
A clear and concise description of the proposed new or updated behavior.
2324

2425
**Home Assistant (please complete the following information):**
25-
- Home Assistant Core Version:
26-
- solaredge-modbus-multi Version:
26+
27+
- Home Assistant Core Version:
28+
- solaredge-modbus-multi Version:
2729

2830
**Additional context**
2931
Add any other context about the request here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
name: Feature Request
33
about: Request a new feature for the integration.
4-
title: ''
5-
labels: ''
6-
assignees: ''
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
8+
89
<!-- IF YOU DO NOT FILL OUT THIS TEMPLATE YOUR ISSUE WILL BE CLOSED -->
910
<!-- If you delete the template the issue will be closed and you will be asked to resubmit using the template. -->
1011

@@ -22,8 +23,9 @@ A clear and concise description of what the feature should be.
2223
If applicable, add screenshots or edits of the proposed feature that help describe it.
2324

2425
**Home Assistant (please complete the following information):**
25-
- Home Assistant Core Version:
26-
- solaredge-modbus-multi Version:
26+
27+
- Home Assistant Core Version:
28+
- solaredge-modbus-multi Version:
2729

2830
**Additional context**
2931
Add any other context about the request here.

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ updates:
1313
groups:
1414
python-packages:
1515
patterns:
16-
- "*"
16+
- "*"

.github/workflows/codeql-analysis.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ main ]
16+
branches: [main]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ main ]
19+
branches: [main]
2020
schedule:
21-
- cron: '31 7 * * 1'
22-
21+
- cron: "31 7 * * 1"
22+
permissions: read-all
2323
jobs:
2424
analyze:
2525
name: Analyze
@@ -32,41 +32,40 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'python' ]
35+
language: ["python"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v4
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
4251

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
5454

55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v3
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v3
6059

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6362

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6665

67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
7069

71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v3
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v3

.github/workflows/hacs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: HACS Action
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
8+
branches:
9+
- main
610
schedule:
711
- cron: "0 0 * * *"
8-
12+
permissions: read-all
913
jobs:
1014
hacs:
1115
name: HACS Action

.github/workflows/hassfest.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ name: Validate with Hassfest
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
8+
branches:
9+
- main
610
schedule:
7-
- cron: '0 0 * * *'
8-
11+
- cron: "0 0 * * *"
12+
permissions: read-all
913
jobs:
1014
validate:
1115
runs-on: "ubuntu-latest"
1216
steps:
13-
- uses: "actions/checkout@v4"
14-
- uses: "home-assistant/actions/hassfest@master"
17+
- uses: "actions/checkout@v4"
18+
- uses: "home-assistant/actions/hassfest@master"

.github/workflows/jsoncheck.yml

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

.github/workflows/linter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Lint Code Base
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
permissions: read-all
9+
jobs:
10+
build:
11+
name: Lint Code Base
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: read
16+
statuses: write
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Lint Code Base
23+
uses: github/super-linter@v7
24+
env:
25+
VALIDATE_JSCPD: false
26+
VALIDATE_PYTHON_MYPY: false
27+
VALIDATE_PYTHON_PYLINT: false
28+
DEFAULT_BRANCH: main
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/python-quality.yaml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
solaredge-modbus-multi.bbprojectd
3+
/megalinter-reports

0 commit comments

Comments
 (0)