-
Notifications
You must be signed in to change notification settings - Fork 272
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
ERROR: I am having ruff check issue when runnning tox
in WSL
#2649
Comments
tox
in WSL tox
in WSL
that is a little strange -- the file is not executable in git (you could argue it could as well be but currently it isn't). |
Yes, am reading official ruff page, found that my python version is 3.10, but after upgrading it to 3.11, as per ruff, it still shows error.
|
Oh yeah, if it's every file then this is a Windows thing: their filesystem does not have executable flag -- so in WSL every file (on a windows filesystem) is marked executable. That said, this should be worked around in ruff already... |
I think we don't quite understand why you are seeing the issue:
|
Wild guess: this is because we run ruff inside tox, and somehow this makes the wsl check confused. If you're interested, you could test installing ruff outside tox and seeing if the issue still appears:
|
@jku still same error :) Okay i got the issue. |
The thing is, I am using the This really annoying 😓, ruff should only check that from where directory got access. More or less that's ruff cons. IMO we should really document it with note for WSL users. WDYT? @jku |
I would usually rather avoid the failure than document it... often documenting workarounds is pointless since people won't find the documentation when they hit the issue.
looking at the sources that shouldn't affect things: https://github.com/TheLarkInn/is-wsl/blob/main/src/lib.rs, quite strange. Anyway, no need to spend a lot of time on this. If you'd like to document a workaround and have found a reasonable place to do it, a PR is welcome. Thanks for testing |
Description of issue or feature request:
I am having ruff check issue when runnning
tox
in WSL. It shows Linting error of shebang in executable file, see$ tox -e fix
This issue is specific to WSL only, working fine in Linux/Ubuntu.
I know this is not required to put shebang in executable files, But if we can fix or document it?
The text was updated successfully, but these errors were encountered: