mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -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
b09b716f1d
commit
1ee3ee6854
1
.flake8
1
.flake8
@ -160,7 +160,6 @@ exclude =
|
|||||||
components/wifi_provisioning/python/wifi_config_pb2.py,
|
components/wifi_provisioning/python/wifi_config_pb2.py,
|
||||||
components/wifi_provisioning/python/wifi_constants_pb2.py,
|
components/wifi_provisioning/python/wifi_constants_pb2.py,
|
||||||
components/esp_local_ctrl/python/esp_local_ctrl_pb2.py,
|
components/esp_local_ctrl/python/esp_local_ctrl_pb2.py,
|
||||||
examples/provisioning/legacy/custom_config/components/custom_provisioning/python/custom_config_pb2.py,
|
|
||||||
|
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
# Sphinx conf.py files use star imports to setup config variables
|
# Sphinx conf.py files use star imports to setup config variables
|
||||||
|
@ -12,12 +12,16 @@ repos:
|
|||||||
# 2 - any file matching *test*/*expected* (for host tests, if possible use this naming pattern always)
|
# 2 - any file matching *test*/*expected* (for host tests, if possible use this naming pattern always)
|
||||||
# 3 - any directory named 'testdata'
|
# 3 - any directory named 'testdata'
|
||||||
# 4 - IDF monitor test data
|
# 4 - IDF monitor test data
|
||||||
|
# 5 - protobuf auto-generated files
|
||||||
exclude: &whitespace_excludes |
|
exclude: &whitespace_excludes |
|
||||||
(?x)^(
|
(?x)^(
|
||||||
.+\.(md|rst|map|bin)|
|
.+\.(md|rst|map|bin)|
|
||||||
.+test.*\/.*expected.*|
|
.+test.*\/.*expected.*|
|
||||||
.+\/testdata\/.+|
|
.+\/testdata\/.+|
|
||||||
.+test_idf_monitor\/tests\/.+
|
.+test_idf_monitor\/tests\/.+|
|
||||||
|
.*_pb2.py|
|
||||||
|
.*.pb-c.h|
|
||||||
|
.*.pb-c.c
|
||||||
)$
|
)$
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: *whitespace_excludes
|
exclude: *whitespace_excludes
|
||||||
@ -35,6 +39,10 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
|
exclude: >
|
||||||
|
(?x)^(
|
||||||
|
.*_pb2.py
|
||||||
|
)$
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-executables
|
- id: check-executables
|
||||||
@ -98,6 +106,10 @@ repos:
|
|||||||
- 'mypy-extensions==0.4.3'
|
- 'mypy-extensions==0.4.3'
|
||||||
- 'types-setuptools==57.4.14'
|
- 'types-setuptools==57.4.14'
|
||||||
- 'types-PyYAML==0.1.9'
|
- 'types-PyYAML==0.1.9'
|
||||||
|
exclude: >
|
||||||
|
(?x)^(
|
||||||
|
.*_pb2.py
|
||||||
|
)$
|
||||||
language: python
|
language: python
|
||||||
types: [python]
|
types: [python]
|
||||||
- id: check-copyright
|
- id: check-copyright
|
||||||
|
@ -20,3 +20,11 @@ components/http_parser/*.h
|
|||||||
|
|
||||||
# FATFS upstream code
|
# FATFS upstream code
|
||||||
components/fatfs/src/**
|
components/fatfs/src/**
|
||||||
|
|
||||||
|
# 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/**
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
future
|
future
|
||||||
protobuf<4.0.0 # IDFCI-1278
|
|
||||||
cryptography
|
cryptography
|
||||||
|
protobuf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user