Skip to content

[Documentation]: Inconsistent ruff behavior on Linux #580

Closed
@python357-1

Description

@python357-1

Description

In CONTRIBUTING.md, the following instructions are included for how to run ruff locally:

Lint code by moving into the /tagstudio directory with cd tagstudio and running ruff --config ../pyproject.toml.

When running this on my machine on commit 2767daf, I get the following output (just using grep to make the output shorter):

image

However, this commit just ran through CI and only had 1 error. If I instead move one directory up and run ruff check --config pyproject.toml, I get the correct output:

image

Solution
This is probably just a bug in ruff. For the meantime, though, it probably wouldn't be a bad idea to include something about this in CONTRIBUTING.md for linux users.

Versions

  • Linux 6.11.3

  • Ruff 0.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as intendedType: DocumentationAdditions/changes to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions