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
Time
~45 min — real bug, great for first PR that touches scanner
Description
Dogfooding bug —
scanner.pyloads.gitignoreonly at root viapathspec, but nested.gitignoreinsrc/foo/.gitignoreis ignored.git check-ignorewould respect it.Files
peek/peek/scanner.py—_load_ignore_specshould walk subdirectoriespeek/tests/test_scanner.py— addtest_nested_gitignoreAcceptance
src/foo/.gitignorewith*.pycis respected when scanningsrc/foo/bar.pypytest -qpassesTime
~45 min — real bug, great for first PR that touches scanner