Skip to content

Commit 40161d4

Browse files
committed
Added *.pyc to clean targets
1 parent 989f592 commit 40161d4

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

find-project-root/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

latin-locales/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

non-latin-locales/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

project-markers/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

remove-json-keys/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

translate-messages/utils/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
msgs_path = Path(__file__).parent / 'data/messages.json'
99
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1010

11-
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info']:
11+
for target in ['dist', 'build', '*_cache', '__pycache__', '*.egg-info', '*.pyc']:
1212
for path in Path('.').rglob(target):
1313
if path.is_dir() : shutil.rmtree(path) ; log.info(f'{msgs.log_REMOVED} {path}/')
1414

0 commit comments

Comments
 (0)