Summary
Environment
- ruff version: 0.15.0
- macOS: passes
ruff check .
- Linux (AWS CodeBuild): fails with I001
ruff.toml
exclude = ["migrations", "venv", "pycache", ".git"]
line-length = 120
[format]
quote-style = "single"
[lint]
select = ["E", "W", "F", "I"]
ignore = []
[lint.isort]
force-single-line = true
Code that passes on macOS but fails on Linux
import env
from common import print_message
Linux ruff wants (blank line between import and from)
import env
from common import print_message
Expected
Same code should pass or fail on both platforms with identical ruff version and config.
Version
0.15.0