Skip to content

Inconsistent I001 behavior between macOS and Linux (same version 0.15.0) #23065

@GoldieKMG

Description

@GoldieKMG

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions