Skip to content

Commit

Permalink
Merge pull request #23 from efabless/create_gitignore
Browse files Browse the repository at this point in the history
added gitignore to ip dir
  • Loading branch information
jeffdi authored Jul 2, 2024
2 parents 715fe16 + d975cbc commit 07b0575
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipm/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ class IPRoot:

def __post_init__(self):
pathlib.Path(self.path).mkdir(parents=True, exist_ok=True)
gitignore_path = os.path.join(self.path, '.gitignore')
with open(gitignore_path, 'w') as gitignore_file:
gitignore_file.write('*\n')
gitignore_file.write('!dependencies.json\n')
gitignore_file.write('!.gitignore\n')

@property
def dependencies_path(self) -> str:
Expand Down

0 comments on commit 07b0575

Please sign in to comment.