Skip to content

Confusion with src and running in different directories #15538

Closed Answered by dhruvmanila
joecox asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for taking the time to create a minimal reproducible example repository, that helps in understanding the issue quickly.

The reason this is happening is because of the --config option which if provided will try to resolve the path using the current working directory and make the current working directory as the project root. This means that both b and requests are considered as third party as seen using the --verbose flag:

$ ruff check --no-cache --diff --config=backend/pyproject.toml -v .
[2025-01-17][10:43:33][ruff::resolve][DEBUG] Using user-specified configuration file at: backend/pyproject.toml
...
[2025-01-17][10:43:33][ruff_linter::rules::isort::categorize][DEBUG] Categori…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joecox
Comment options

Answer selected by joecox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants