Skip to content

test: pin generated-directory exclusion in inventory discovery - #14

Closed
v01dst wants to merge 1 commit into
SinghCod3r:mainfrom
v01dst:fix/3-generated-dir-exclusion
Closed

test: pin generated-directory exclusion in inventory discovery#14
v01dst wants to merge 1 commit into
SinghCod3r:mainfrom
v01dst:fix/3-generated-dir-exclusion

Conversation

@v01dst

@v01dst v01dst commented Sep 6, 2026

Copy link
Copy Markdown

Summary

Repository analysis should never traverse generated directories (.git, node_modules, .venv, caches, build, dist), and the behavior needed regression coverage per #3.

The os.walk pruning in discover_files already applies settings.exclude_patterns to dirnames before descending. This PR pins that contract with tests, per the acceptance criteria:

  • a fixture tree with generated directories alongside real sources asserts no discovered path touches any generated directory
  • legitimate source directories remain discoverable (src/, lib/)

Verified: pytest tests/unit/test_inventory.py — 2 passed.

Closes #3

Issue SinghCod3r#3 asks that generated directories (.git, node_modules, .venv,
caches, build, dist) be excluded from repository analysis and that the
behavior be covered by regression tests. The os.walk pruning in
discover_files already applies settings.exclude_patterns to dirnames,
but nothing pinned it.

Two tests: a fixture tree with generated directories alongside real
sources asserts no discovered path touches any generated directory,
and that legitimate sources remain discoverable.
@v01dst

v01dst commented Sep 7, 2026

Copy link
Copy Markdown
Author

Closing this. I was batch-generating PRs across repos while focused on my own project — that wasn't fair on reviewers' time, and I've stopped. Apologies for the noise.

@v01dst v01dst closed this Sep 7, 2026
@SinghCod3r

Copy link
Copy Markdown
Owner

@v01dst , would you like to work on this repo. ?

If yes then do let me know, as i need someone to make the architecture more better. So please tag me on any issue if you find that can be done. Also you can raise pr whether you think that area needs to be fixed. You just don't have to see the issues tab too. But tag me too so that I could get notified as well.

@v01dst

v01dst commented Sep 7, 2026

Copy link
Copy Markdown
Author

@SinghCod3r i will work on it as soon as possible , thanks for inviting me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude generated directories during repository analysis

2 participants