Skip to content

Commit 0f0070b

Browse files
committed
ci: use pre-commit.ci service for linting
1 parent 1c82219 commit 0f0070b

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.github/workflows/test_esptool.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,3 @@ jobs:
6666
run: |
6767
./ci/download_flasher_stubs.py
6868
git diff --exit-code
69-
70-
lint_esptool:
71-
runs-on: ubuntu-22.04
72-
steps:
73-
- name: Checkout
74-
uses: actions/checkout@master
75-
76-
- name: Set up Python 3.10
77-
uses: actions/setup-python@master
78-
with:
79-
python-version: "3.10"
80-
81-
- name: Run pre-commit hooks
82-
run: |
83-
pip install --extra-index-url https://dl.espressif.com/pypi -e .[dev]
84-
pre-commit run --all-files

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
ci:
2+
autofix_commit_msg: |
3+
Apply automatic fixes from pre-commit hooks
4+
autofix_prs: true
5+
autoupdate_commit_msg: 'ci: Bump pre-commit hooks'
6+
autoupdate_schedule: quarterly
7+
18
repos:
29
- repo: https://github.com/astral-sh/ruff-pre-commit
310
rev: v0.9.6
@@ -31,5 +38,6 @@ repos:
3138
stages: [commit-msg]
3239
args:
3340
- --allow-breaking
41+
3442
default_stages: [pre-commit]
3543
default_install_hook_types: [pre-commit, commit-msg]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
A Python-based, open-source, platform-independent serial utility for flashing, provisioning, and interacting with Espressif SoCs.
44

55
[![Test esptool](https://github.com/espressif/esptool/actions/workflows/test_esptool.yml/badge.svg?branch=master)](https://github.com/espressif/esptool/actions/workflows/test_esptool.yml) [![Build esptool](https://github.com/espressif/esptool/actions/workflows/build_esptool.yml/badge.svg?branch=master)](https://github.com/espressif/esptool/actions/workflows/build_esptool.yml)
6+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/espressif/esptool/master.svg)](https://results.pre-commit.ci/latest/github/espressif/esptool/master)
67

78
## Documentation
89

0 commit comments

Comments
 (0)