mirror of
https://github.com/espressif/esptool.git
synced 2025-10-14 02:43:11 +08:00
ci: use pre-commit.ci service for linting
This commit is contained in:
16
.github/workflows/test_esptool.yml
vendored
16
.github/workflows/test_esptool.yml
vendored
@@ -66,19 +66,3 @@ jobs:
|
||||
run: |
|
||||
./ci/download_flasher_stubs.py
|
||||
git diff --exit-code
|
||||
|
||||
lint_esptool:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@master
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Run pre-commit hooks
|
||||
run: |
|
||||
pip install --extra-index-url https://dl.espressif.com/pypi -e .[dev]
|
||||
pre-commit run --all-files
|
||||
|
@@ -1,3 +1,10 @@
|
||||
ci:
|
||||
autofix_commit_msg: |
|
||||
Apply automatic fixes from pre-commit hooks
|
||||
autofix_prs: true
|
||||
autoupdate_commit_msg: 'ci: Bump pre-commit hooks'
|
||||
autoupdate_schedule: quarterly
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.9.6
|
||||
@@ -31,5 +38,6 @@ repos:
|
||||
stages: [commit-msg]
|
||||
args:
|
||||
- --allow-breaking
|
||||
|
||||
default_stages: [pre-commit]
|
||||
default_install_hook_types: [pre-commit, commit-msg]
|
||||
|
@@ -3,6 +3,7 @@
|
||||
A Python-based, open-source, platform-independent serial utility for flashing, provisioning, and interacting with Espressif SoCs.
|
||||
|
||||
[](https://github.com/espressif/esptool/actions/workflows/test_esptool.yml) [](https://github.com/espressif/esptool/actions/workflows/build_esptool.yml)
|
||||
[](https://results.pre-commit.ci/latest/github/espressif/esptool/master)
|
||||
|
||||
## Documentation
|
||||
|
||||
|
Reference in New Issue
Block a user