Skip to content

Commit

Permalink
Add gitignore, ignore pycache
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jul 6, 2021
1 parent 83b98c8 commit d76addc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core/dbt/include/starter_project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

target/
dbt_modules/
logs/
4 changes: 2 additions & 2 deletions core/dbt/task/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
SLACK_URL = 'https://community.getdbt.com/'

# This file is not needed for the starter project but exists for finding the resource path
IGNORE_FILE = "__init__.py"
IGNORE_FILES = ["__init__.py", "__pycache__"]

ON_COMPLETE_MESSAGE = """
Your new dbt project "{project_name}" was created! If this is your first time
Expand Down Expand Up @@ -44,7 +44,7 @@ class InitTask(BaseTask):
def copy_starter_repo(self, project_name):
logger.debug("Starter project path: " + starter_project_directory)
shutil.copytree(starter_project_directory, project_name,
ignore=shutil.ignore_patterns(IGNORE_FILE))
ignore=shutil.ignore_patterns(*IGNORE_FILES))

def create_profiles_dir(self, profiles_dir):
if not os.path.exists(profiles_dir):
Expand Down

0 comments on commit d76addc

Please sign in to comment.