diff options
| -rw-r--r-- | poetry_restrict_plugin/plugin.py | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py index 4077a46..fb4d509 100644 --- a/poetry_restrict_plugin/plugin.py +++ b/poetry_restrict_plugin/plugin.py @@ -85,6 +85,10 @@ class RestrictPlugin(Plugin):          pre_commit_cache = os.path.expanduser("~/.cache/pre-commit")          if os.path.exists(pre_commit_cache):              ruleset.allow(pre_commit_cache) +            ruleset.allow( +                *existing_paths((".gitconfig", os.path.expanduser("~/.config/git/config"))), +                rules=FSAccess.READ_FILE, +            )          # Allow manipulation of files in our projects, e.g. for linters.          # We might need to check this more thoroughly. For instance, configuring custom  |