Skip to content

Inconsistent EXE001 behavior #7994

@Scrat94

Description

@Scrat94

Hello,

Steps to reproduce:

  1. Have file main.py
  2. On the first line: #!/usr/bin/env python3
  3. Run ruff locally on windows
  4. Run ruff on Linux in GitLab CI runner

Current behavior:

  • Locally on windows no finding/error occurs
  • On GitLab Runner (Linux) the following error shows up: main.py:1:1: EXE001 Shebang is present but file is not executable

Expected behavior:

  • Same result on local (windows) as well as on GitLab CI (Linux)

Is my understanding correct, or is this the intended behavior? Much thanks in advance!

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