-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clenup GH Actions, Consistently use the same indentation (4 Spaces), …
…Apply Black Code Formatting and include into GH Actions, Apply flake8 to utils and jkbms (and include in GH Actions)
- Loading branch information
Philip Puetsch
committed
Jan 2, 2023
1 parent
3685d15
commit f434402
Showing
26 changed files
with
2,562 additions
and
2,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = | ||
./etc/dbus-serialbattery/ant.py, | ||
./etc/dbus-serialbattery/battery.py, | ||
./etc/dbus-serialbattery/battery_template.py, | ||
./etc/dbus-serialbattery/daly.py, | ||
./etc/dbus-serialbattery/dbus-serialbattery.py, | ||
./etc/dbus-serialbattery/dbushelper.py, | ||
./etc/dbus-serialbattery/ecs.py, | ||
./etc/dbus-serialbattery/lifepower.py, | ||
./etc/dbus-serialbattery/lltjbd.py, | ||
./etc/dbus-serialbattery/minimalmodbus.py, | ||
./etc/dbus-serialbattery/mnb.py, | ||
./etc/dbus-serialbattery/renogy.py, | ||
./etc/dbus-serialbattery/revov.py, | ||
./etc/dbus-serialbattery/sinowealth.py, | ||
./etc/dbus-serialbattery/test_max17853.py, | ||
./etc/dbus-serialbattery/util_max17853.py, | ||
venv | ||
extend-ignore: | ||
# E203 whitespace fefore ':' conflicts with black code formatting. Will be ignored in flake8 | ||
E203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "CodeChecks" | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
CodeQL: | ||
name: Analyze Using GitHub CodeQL | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: python | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
lint: | ||
name: Check Code Formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute black lint check | ||
uses: psf/black@stable | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
service sbattery dbus-serialbattery | ||
service sbattery dbus-serialbattery | ||
alias default gps:vedirect:sbattery | ||
alias rs485 cgwacs:fzsonick:imt:modbus:sbattery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.