Skip to content

Commit b83d188

Browse files
Setup dependabot to keep python 3rd parties dependencies up to date (such as platform.io)
1 parent 38c6961 commit b83d188

8 files changed

Lines changed: 166 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ updates:
1212
- package-ecosystem: "pip"
1313
directory: "/"
1414
schedule:
15-
interval: "daily"
15+
interval: "daily"

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ jobs:
3636
3737
- name: Compile firmware
3838
run: |
39-
make build
39+
make build
40+
41+
- name: Perform pre-commit checks
42+
# ensure files are correctly formatted, Markdown, yaml, end of file etc.
43+
run: |
44+
make pre-commit

.markdownlint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Default state for all rules
2+
default: true
3+
4+
# MD013/line-length - Line length
5+
MD013:
6+
line_length: 120
7+
tables: false

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0 # v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- repo: https://github.com/python-jsonschema/check-jsonschema
9+
rev: 0.30.0 # 0.22.0
10+
hooks:
11+
- id: check-github-workflows
12+
- repo: https://github.com/gruntwork-io/pre-commit
13+
rev: v0.1.24 # v0.1.20
14+
hooks:
15+
- id: shellcheck
16+
- repo: https://github.com/igorshubovych/markdownlint-cli
17+
rev: v0.43.0 # v0.39.0
18+
hooks:
19+
- id: markdownlint

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ monitor:
2727
install:
2828
@echo "Installing dependencies..."
2929
pipenv install --ignore-pipfile
30+
31+
pre-commit:
32+
@echo "Run pre-commit checks..."
33+
pipenv run pre-commit run --all-files

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name = "pypi"
55

66
[packages]
77
platformio = "*"
8+
pre-commit = "*"
89

910
[dev-packages]
1011

Pipfile.lock

Lines changed: 124 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# NSPanelManager - NSPanel Firmware
2+
3+
This project contains the custom firmware to allow compatible NSPanel
4+
to communicate with [NSPanelManager](https://nspanelmanager.com).

0 commit comments

Comments
 (0)