Skip to content

Bug: peek scan doesn't respect nested .gitignore files in subdirectories #102

Description

@hariomlohardev

Description

Dogfooding bug — scanner.py loads .gitignore only at root via pathspec, but nested .gitignore in src/foo/.gitignore is ignored. git check-ignore would respect it.

Files

  • peek/peek/scanner.py_load_ignore_spec should walk subdirectories
  • peek/tests/test_scanner.py — add test_nested_gitignore

Acceptance

  • src/foo/.gitignore with *.pyc is respected when scanning src/foo/bar.py
  • pytest -q passes

Time

~45 min — real bug, great for first PR that touches scanner

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions