From e393eaa2d1b4e76c1e7c4f1bc14a8463cf83968a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 21 Mar 2024 10:58:17 -0700 Subject: [PATCH] github: exclude *_pb2.py from autopep8 --- .github/workflows/lint.yaml | 3 +-- src/dailyai/pipeline/protobufs/frames_pb2.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b8280d070..6c02d8e60 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,7 +10,6 @@ on: - "**" paths-ignore: - "docs/**" - - "*_pb2.py" concurrency: group: build-lint-${{ github.event.pull_request.number || github.ref }} @@ -27,7 +26,7 @@ jobs: id: autopep8 uses: peter-evans/autopep8@v2 with: - args: --exit-code -r -d -a -a src/ + args: --exit-code -r -d --exclude "*_pb2.py" -a -a src/ - name: Fail if autopep8 requires changes if: steps.autopep8.outputs.exit-code == 2 run: exit 1 diff --git a/src/dailyai/pipeline/protobufs/frames_pb2.py b/src/dailyai/pipeline/protobufs/frames_pb2.py index 7ce638172..b923f8fe3 100644 --- a/src/dailyai/pipeline/protobufs/frames_pb2.py +++ b/src/dailyai/pipeline/protobufs/frames_pb2.py @@ -17,7 +17,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frames_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: +if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _globals['_TEXTFRAME']._serialized_start = 31 _globals['_TEXTFRAME']._serialized_end = 56