Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Ruff EXE (flake8-executable) #13346

Merged
merged 2 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
"PGH", # pygrep-hooks
Expand Down
Empty file modified scripts/stubsabot.py
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions scripts/sync_protobuf/google_protobuf.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions scripts/sync_protobuf/s2clientprotocol.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions scripts/sync_protobuf/tensorflow.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Empty file modified stubs/chevron/chevron/__init__.pyi
100755 → 100644
Copy link
Member

@AlexWaygood AlexWaygood Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change here that the stub file was previously marked as executable for some reason, and now it (correctly) no longer is, because the lint rule picked up that it didn't have a shebang?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly !

Empty file.
Empty file modified stubs/chevron/chevron/main.pyi
100755 → 100644
Empty file.
Empty file modified stubs/chevron/chevron/metadata.pyi
100755 → 100644
Empty file.
Empty file modified stubs/chevron/chevron/renderer.pyi
100755 → 100644
Empty file.
Empty file modified stubs/chevron/chevron/tokenizer.pyi
100755 → 100644
Empty file.
Empty file modified tests/get_external_stub_requirements.py
100644 → 100755
Empty file.
Empty file modified tests/get_stubtest_system_requirements.py
100644 → 100755
Empty file.
Loading