Skip to content

.graphifyignore always assumes that graphify is run in that folder #303

Closed

Description

@seltzdesign

If you have a large repo you might just copy your .gitignore file to be the .graphifyignore file. That way its in the project root. But if you now start graphify and it tells you to only run on a subfolder, the .graphifyignore is now useless, because it sets a new root folder for itself and assumes everything in .graphifyignore is now relative to the subfolder. That way it doesn't match any of the folders you set in there.

It should instead resolve the paths so they are once again relative to the new root it has set itself.

Activity

  1. safishamsi commented on Apr 13, 2026

    @safishamsi
    Member

    Fixed in v0.4.11. _load_graphifyignore now tracks which directory each pattern came from. _is_ignored tries matching against paths relative to both the scan root and the anchor directory where the .graphifyignore was found — so patterns from a parent directory fire correctly when graphify is run on a subfolder.

    pip install --upgrade graphifyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions