Skip to content

Commit

Permalink
remove py and js
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Feb 28, 2024
1 parent 58226ad commit 6bbdfb7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/bootstrap-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def replace(file_name, to_find, to_replace):

files_to_search = []
files_to_search.extend(Path('./.github').rglob('./**/*.yml'))
files_to_search.extend(Path('./test').rglob('./**/*.py'))
files_to_search.extend(Path('./test').rglob('./**/*.test'))
files_to_search.extend(Path('./test').rglob('./**/*.js'))
files_to_search.extend(Path('./src').rglob('./**/*.hpp'))
files_to_search.extend(Path('./src').rglob('./**/*.cpp'))
files_to_search.extend(Path('./src').rglob('./**/*.txt'))
Expand All @@ -65,11 +63,9 @@ def replace_everywhere(to_find, to_replace):
string_to_find = "quack"

# rename files
os.rename(f'test/python/{string_to_find}_test.py', f'test/python/{string_to_replace}_test.py')
os.rename(f'test/sql/{string_to_find}.test', f'test/sql/{string_to_replace}.test')
os.rename(f'src/{string_to_find}_extension.cpp', f'src/{string_to_replace}_extension.cpp')
os.rename(f'src/include/{string_to_find}_extension.hpp', f'src/include/{string_to_replace}_extension.hpp')
os.rename(f'test/nodejs/{string_to_find}_test.js', f'test/nodejs/{string_to_replace}_test.js')

# remove template-specific files
os.remove('.github/workflows/ExtensionTemplate.yml')

0 comments on commit 6bbdfb7

Please sign in to comment.