-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ruff format --check Fails on Ubuntu #15391
Comments
Can you share a reproducible example? i.e. host the file somewhere? |
… Remove it before it fixed * ref: astral-sh/ruff#15391
… Remove it before it fixed * ref: astral-sh/ruff#15391
@zanieb unfortunately, I can't. However, I have been able to reproduce the problem locally on my Mac, and it's totally bizarre. When I run this script: #!/bin/bash
set -e
source venv/bin/activate
ruff format --check . I get this:
If I remove or delete the activation beforehand, the format check passes #!/bin/bash
set -e
ruff format --check .
|
When you activate the environment are you getting a different version of Ruff? e.g., |
I am working on macOS, and I use GitHub Actions. I run this in the pipeline:
ruff format --check .
It passes on Mac, but fails in Ubuntu. This is what I get:
Three files in particular are not formatted the same way. The rest are fine,. I would guess that this a line ending issue, but I've tried changing git attributes etc. and nothing seemed to make any difference. I've tried hard refreshing these files and also I tried running this on Ubuntu before running the formatting check:
Nothing seems to make any difference.
I couldn't see any specific config for line endings in the documentation here.
The text was updated successfully, but these errors were encountered: