mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
protobuf: Fix v4.21.0 (python) compatibility issue
- Added auto-generated protobuf files (proto-c and python to pre-commit hook ignore lists
This commit is contained in:
parent
0b05f1708d
commit
9549f0026f
@ -12,12 +12,16 @@ repos:
|
||||
# 2 - any file matching *test*/*expected* (for host tests, if possible use this naming pattern always)
|
||||
# 3 - any directory named 'testdata'
|
||||
# 4 - IDF monitor test data
|
||||
# 5 - protobuf auto-generated files
|
||||
exclude: &whitespace_excludes |
|
||||
(?x)^(
|
||||
.+\.(md|rst|map|bin)|
|
||||
.+test.*\/.*expected.*|
|
||||
.+\/testdata\/.+|
|
||||
.+test_idf_monitor\/tests\/.+
|
||||
.+test_idf_monitor\/tests\/.+|
|
||||
.*_pb2.py|
|
||||
.*.pb-c.h|
|
||||
.*.pb-c.c
|
||||
)$
|
||||
- id: end-of-file-fixer
|
||||
exclude: *whitespace_excludes
|
||||
@ -35,6 +39,11 @@ repos:
|
||||
hooks:
|
||||
- id: isort
|
||||
name: isort (python)
|
||||
exclude: >
|
||||
(?x)^(
|
||||
.*_pb2.py
|
||||
)$
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-executables
|
||||
@ -95,6 +104,10 @@ repos:
|
||||
additional_dependencies:
|
||||
- 'mypy==0.800'
|
||||
- 'mypy-extensions==0.4.3'
|
||||
exclude: >
|
||||
(?x)^(
|
||||
.*_pb2.py
|
||||
)$
|
||||
language: python
|
||||
types: [python]
|
||||
- id: check-tools-files-patterns
|
||||
|
@ -13,3 +13,11 @@ components/freertos/include/freertos/*.h
|
||||
# wpa_supplicant upstream code
|
||||
components/wpa_supplicant/src/**
|
||||
components/wpa_supplicant/include/**
|
||||
|
||||
# Protobuf auto-generated files
|
||||
components/esp_local_ctrl/proto-c/**
|
||||
components/esp_local_ctrl/python/**
|
||||
components/protocomm/proto-c/**
|
||||
components/protocomm/python/**
|
||||
components/wifi_provisioning/proto-c/**
|
||||
components/wifi_provisioning/python/**
|
||||
|
Loading…
Reference in New Issue
Block a user