From a540f787848dff0b4a6cb254b0224aea4d4309b6 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 2 Jan 2025 13:34:05 -0500 Subject: [PATCH] Enable Ruff EXE (flake8-executable) (#13346) --- pyproject.toml | 1 + scripts/stubsabot.py | 0 scripts/sync_protobuf/google_protobuf.py | 1 + scripts/sync_protobuf/s2clientprotocol.py | 1 + scripts/sync_protobuf/tensorflow.py | 1 + stubs/chevron/chevron/__init__.pyi | 0 stubs/chevron/chevron/main.pyi | 0 stubs/chevron/chevron/metadata.pyi | 0 stubs/chevron/chevron/renderer.pyi | 0 stubs/chevron/chevron/tokenizer.pyi | 0 tests/get_external_stub_requirements.py | 0 tests/get_stubtest_system_requirements.py | 0 12 files changed, 4 insertions(+) mode change 100644 => 100755 scripts/stubsabot.py mode change 100644 => 100755 scripts/sync_protobuf/google_protobuf.py mode change 100644 => 100755 scripts/sync_protobuf/s2clientprotocol.py mode change 100644 => 100755 scripts/sync_protobuf/tensorflow.py mode change 100755 => 100644 stubs/chevron/chevron/__init__.pyi mode change 100755 => 100644 stubs/chevron/chevron/main.pyi mode change 100755 => 100644 stubs/chevron/chevron/metadata.pyi mode change 100755 => 100644 stubs/chevron/chevron/renderer.pyi mode change 100755 => 100644 stubs/chevron/chevron/tokenizer.pyi mode change 100644 => 100755 tests/get_external_stub_requirements.py mode change 100644 => 100755 tests/get_stubtest_system_requirements.py diff --git a/pyproject.toml b/pyproject.toml index 4561dfda1..8100e982f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ external = ["F821", "NQA", "Y"] select = [ "ARG", # flake8-unused-arguments "B", # flake8-bugbear + "EXE", # flake8-executable "FA", # flake8-future-annotations "I", # isort "N", # pep8-naming diff --git a/scripts/stubsabot.py b/scripts/stubsabot.py old mode 100644 new mode 100755 diff --git a/scripts/sync_protobuf/google_protobuf.py b/scripts/sync_protobuf/google_protobuf.py old mode 100644 new mode 100755 index 1abab24c5..cddfe8d27 --- a/scripts/sync_protobuf/google_protobuf.py +++ b/scripts/sync_protobuf/google_protobuf.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Generates the protobuf stubs for the given protobuf version using mypy-protobuf. Generally, new minor versions are a good time to update the stubs. diff --git a/scripts/sync_protobuf/s2clientprotocol.py b/scripts/sync_protobuf/s2clientprotocol.py old mode 100644 new mode 100755 index 365eb0309..57372a455 --- a/scripts/sync_protobuf/s2clientprotocol.py +++ b/scripts/sync_protobuf/s2clientprotocol.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Generates the protobuf stubs for the given s2clientprotocol version using mypy-protobuf. Generally, new minor versions are a good time to update the stubs. diff --git a/scripts/sync_protobuf/tensorflow.py b/scripts/sync_protobuf/tensorflow.py old mode 100644 new mode 100755 index e4af06503..04325b2e4 --- a/scripts/sync_protobuf/tensorflow.py +++ b/scripts/sync_protobuf/tensorflow.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 """ Generates the protobuf stubs for the given tensorflow version using mypy-protobuf. Generally, new minor versions are a good time to update the stubs. diff --git a/stubs/chevron/chevron/__init__.pyi b/stubs/chevron/chevron/__init__.pyi old mode 100755 new mode 100644 diff --git a/stubs/chevron/chevron/main.pyi b/stubs/chevron/chevron/main.pyi old mode 100755 new mode 100644 diff --git a/stubs/chevron/chevron/metadata.pyi b/stubs/chevron/chevron/metadata.pyi old mode 100755 new mode 100644 diff --git a/stubs/chevron/chevron/renderer.pyi b/stubs/chevron/chevron/renderer.pyi old mode 100755 new mode 100644 diff --git a/stubs/chevron/chevron/tokenizer.pyi b/stubs/chevron/chevron/tokenizer.pyi old mode 100755 new mode 100644 diff --git a/tests/get_external_stub_requirements.py b/tests/get_external_stub_requirements.py old mode 100644 new mode 100755 diff --git a/tests/get_stubtest_system_requirements.py b/tests/get_stubtest_system_requirements.py old mode 100644 new mode 100755