aboutsummaryrefslogtreecommitdiffstats
path: root/poetry_restrict_plugin/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'poetry_restrict_plugin/plugin.py')
-rw-r--r--poetry_restrict_plugin/plugin.py2
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(
(