diff options
author | 2024-08-01 20:14:21 +0200 | |
---|---|---|
committer | 2024-08-01 20:14:21 +0200 | |
commit | 35aeebc99547d621e6288ef8b9e0c91a1f1116b5 (patch) | |
tree | 833067dc347dc54e8c77698bea17ac09d393d845 | |
parent | Allow access to /etc/mime.types (diff) |
Add comment for why pre-commit needs gitconfig
-rw-r--r-- | poetry_restrict_plugin/plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py index 2aab1c9..c885795 100644 --- a/poetry_restrict_plugin/plugin.py +++ b/poetry_restrict_plugin/plugin.py @@ -88,6 +88,8 @@ class RestrictPlugin(Plugin): pre_commit_cache = os.path.expanduser("~/.cache/pre-commit") if os.path.exists(pre_commit_cache): ruleset.allow(pre_commit_cache) + # pre-commit runs git to figure out the diff to lint, which will + # be pretty noisy if we do not whitelist the gitconfig. ruleset.allow( *existing_paths( ( |