Skip to content

Commit

Permalink
fix(init-templates): fix to include environments and CDK files to .gi…
Browse files Browse the repository at this point in the history
…tignore for Python templates (#3863)

* fix(cli): fix .gitignore for Python init templates to include environments and CDK context/staging files

Fixes #2842

* remove cdk.context.json from .gitignore as we want subsequent synth commands to return same result
  • Loading branch information
shivlaks authored and mergify[bot] committed Aug 29, 2019
1 parent f892312 commit e4f9677
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions packages/aws-cdk/lib/init-templates/sample-app/python/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
*.swp
package-lock.json
__pycache__
.pytest_cache
.env
*.egg-info

# CDK asset staging directory
.cdk.staging
cdk.out
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# CDK Context & Staging files
.cdk.staging/
cdk.out/

0 comments on commit e4f9677

Please sign in to comment.