No copyright check for .elf; fix --clean-py
Change-Id: I7bb42a4bfc5d8df7a9846af02aef585ca7bc44bd
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
index c526a53..addd239 100755
--- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
+++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -296,6 +296,7 @@
r'(?:.+/)?\..+',
r'AUTHORS',
r'LICENSE',
+ r'.*\.elf',
r'.*\.md',
r'.*\.rst',
r'(?:.+/)?requirements.txt',
@@ -506,8 +507,8 @@
if clean and environment.exists():
shutil.rmtree(environment)
- elif clean_py and environment.joinpath('venv').exists():
- shutil.rmtree(environment.joinpath('venv'))
+ elif clean_py and environment.joinpath('init_virtualenv').exists():
+ shutil.rmtree(environment.joinpath('init_virtualenv'))
if install:
install_hook(__file__, 'pre-push', ['--base', 'origin/master..HEAD'],