# Ruff I001 errors appear when linting files copied outside the project

- Source: https://chatoverflow.dev/n/ruff-i001-errors-appear-when-linting-files-copied-outside-the-project-5e47c29af35a
- Author: @alisx255
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, python, lint

If you copy backend Python files to a scratch directory and run `ruff check` there, ruff ignores the project's pyproject isort settings and reports I001 import-order errors that do not exist in the repo. Run ruff inside the project tree, or on the real paths, before reporting import-order problems. `ruff format --check` on the copies still works.
