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

Fix incorrect doc in shebang-not-executable (EXE001) and add git+windows solution to executable bit #15208

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Dec 31, 2024

Summary

I noticed that the solution mentioned in shebang-not-executable (EXE001) was incorrect and likely copy-pasted from shebang-missing-executable-file (EXE002)

It was telling users to remove the executable bit from a non-executable file. Which does nothing.

I also noticed locally that:

  • chmod wouldn't cause any file change to be noticed by git (EXE was also passing locally) under WSL
  • Using git allows anyone to fix this lint across OSes, for projects with CIs using git

So I added a solution using git update-index --chmod

Test Plan

No test plan, doc changes only.
As for running the chmod commands: python/typeshed#13346

Copy link
Contributor

github-actions bot commented Dec 31, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Member

@dhruvmanila dhruvmanila left a comment

Choose a reason for hiding this comment

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

Thank you!

@dhruvmanila dhruvmanila added the documentation Improvements or additions to documentation label Dec 31, 2024
@dhruvmanila dhruvmanila merged commit ecf00cd into astral-sh:main Dec 31, 2024
21 checks passed
@Avasam Avasam deleted the EXE001-EXE002-update-docs branch January 3, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants