glato / emerge

Emerge is a browser-based interactive codebase and dependency visualization tool for many different programming languages. It supports some basic code quality and graph metrics and provides a simple and intuitive way to explore and analyze a codebase by using graph structures.
MIT License
783 stars 46 forks source link

Improved ability to exclude dependencies #27

Closed and3rson closed 1 year ago

and3rson commented 1 year ago

Is your feature request related to a problem? Please describe. It's ~hard~ not possible to exclude built-in Python modules with short names like os, re, etc using ignore_dependencies_containing without implicitly excluding other dependencies. For example, position (contains "os") and create_user (contains "re") will be unwittingly excluded as well.

Describe the solution you'd like It would be nice to either allow regular or glob-style expressions in ignore_dependencies_containing or add a new parameter, such as ignore_dependencies_matching.

Optional: Describe alternatives you've considered No alternatives for this as far as I'm aware.

Optional: Additional context I'm new to emerge, so please let me know in case I missed anything or if this is actually possible ouf of the box.

glato commented 1 year ago

Hi @and3rson Thanks for your feedback and the proposed enhancement. It should be relatively easy to include your proposed config parameter ignore_dependencies_matching. I will implement this soon and release a new version. Thanks for your support and the useful suggestion 👍 .

and3rson commented 1 year ago

@glato Awesome! I actually did the same in my local version, I can submit a PR for this if you want.

glato commented 1 year ago

@and3rson That would be fantastic 🚀.

glato commented 1 year ago

@and3rson great, thank you very much 👍 .