-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(pre-commit): update pre-commit config to latest Espressif standard
- ci(pre-commit): remove Hadolint hook, no Dockerfile in the project now - ci(dependabot): add dependabot configuration - ci(changelog): update commitizen for czespressif plugin, new changelog - ci(pre-commit): add config for yamlfix, fixes failed pre-commit ci - ci(codeowners): add CODEOWNERS file, dependabot, clean GH workflows - ci: clean pyproject.toml, Justfile, update ref action.yml
- Loading branch information
1 parent
385fb14
commit 59b01fd
Showing
12 changed files
with
282 additions
and
179 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,26 @@ | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# More details are here: https://help.github.com/articles/about-codeowners/ | ||
|
||
# The '*' pattern is global owners. | ||
|
||
# Order is important. The last matching pattern has the most precedence. | ||
# The folders are ordered as follows: | ||
|
||
# In each subsection folders are ordered first by depth, then alphabetically. | ||
# This should make it easy to add new rules without breaking existing ones. | ||
|
||
# TIP: syntax formatting in VS Code; extension "vscode-codeowners" | ||
|
||
#------------------------------------------------------------------------------------------------------------------------ | ||
|
||
# Global rule: | ||
# * @espressif | ||
|
||
# Code owners for the entire repository | ||
/.github @espressif/ci | ||
|
||
|
||
.pre-commit-config.yaml @espressif/ci | ||
CONTRIBUTING.md @espressif/ci |
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,32 @@ | ||
--- | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "pip" | ||
versioning-strategy: increase-if-necessary | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
commit-message: | ||
prefix: "ci(dependabot-pip): " | ||
reviewers: ["espressif/ci"] | ||
|
||
- package-ecosystem: "npm" | ||
versioning-strategy: increase-if-necessary | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
commit-message: | ||
prefix: "ci(dependabot-npm): " | ||
reviewers: ["espressif/ci"] | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
commit-message: | ||
prefix: "ci(dependabot-actions): " | ||
reviewers: ["espressif/ci"] |
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
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,16 +1,24 @@ | ||
--- | ||
name: Check pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-pre-commit: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
python-version: '3.9' | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
SKIP: pip-compile | ||
SKIP: pip-compile,update-changelog |
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,25 +1,28 @@ | ||
name: Tests | ||
--- | ||
name: Tests codebase | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest pytest-cov | ||
pip install -r requirements.txt | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest pytest-cov | ||
pip install -r requirements.txt | ||
- name: Run pytest with coverage | ||
run: | | ||
python -m pytest | ||
- name: Run pytest with coverage | ||
run: |- | ||
python -m pytest |
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
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
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
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,27 @@ | ||
set quiet := true | ||
|
||
[private] | ||
default: | ||
just --choose --unsorted | ||
|
||
clean: | ||
rm -rf \ | ||
dist \ | ||
.pytest_cache \ | ||
.mypy_cache \ | ||
.coverage \ | ||
.coverage.* \ | ||
.ruff_cache \ | ||
*.egg-info \ | ||
: | ||
|
||
pidev: | ||
pip install -e '.[dev]' | ||
pip install --upgrade pip | ||
|
||
checkall: | ||
pre-commit run --all-files | ||
|
||
rebase: | ||
git fetch --all | ||
git rebase -i origin/v1 |
Oops, something went wrong.