Skip to content

action on ubuntu-slim runner disables EXE001 #307

@ogauthe

Description

@ogauthe

Hi! I had a lot of headaches with a EXE001 rule that was failing locally but not on CI.

I finally found out that ubuntu-slim runner was the issue: I get the expect behavior on ubuntu-latest.

As mentioned in the doc, these runners are not within a VM but just a container. There is an open issue about EXE001 behavior not running on windows/WSL (see also astral-sh/ruff#7994). So my guess is that the os behind ubuntu-slim container actually runs windows (or is detected as such by ruff), which makes ruff disables EXE001.

You can have a look at ogauthe/my-ruff-issue#1 for a full example: the very same workflows passes on ubuntu-slim but fails on ubuntu-latest.

My question: is there a way to get the ruff-action to run EXE001 on ubuntu-slim?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions