Index: DEPS |
diff --git a/DEPS b/DEPS |
index 9621e18b6c31b9a3db131970ab9d1ea94099325e..c7f092758fac7c928cb419006ca33439afbf058a 100644 |
--- a/DEPS |
+++ b/DEPS |
@@ -778,4 +778,15 @@ hooks = [ |
'--running-as-hook', |
], |
}, |
+ { |
+ # Ensure that we don't accidentally reference any .pyc files whose |
+ # corresponding .py files have already been deleted. |
+ 'name': 'remove_stale_pyc_files', |
+ 'pattern': 'src/tools/.*\\.py', |
+ 'action': [ |
+ 'python', |
+ 'src/tools/remove_stale_pyc_files.py', |
+ 'src/tools', |
+ ], |
+ }, |
] |