Skip to content

Commit e4f9677

Browse files
shivlaksmergify[bot]
authored andcommitted
fix(init-templates): fix to include environments and CDK files to .gitignore 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
1 parent f892312 commit e4f9677

File tree

1 file changed

+17
-5
lines changed
  • packages/aws-cdk/lib/init-templates/sample-app/python

1 file changed

+17
-5
lines changed
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
*.swp
22
package-lock.json
3-
__pycache__
43
.pytest_cache
5-
.env
64
*.egg-info
75

8-
# CDK asset staging directory
9-
.cdk.staging
10-
cdk.out
6+
# Byte-compiled / optimized / DLL files
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
11+
# Environments
12+
.env
13+
.venv
14+
env/
15+
venv/
16+
ENV/
17+
env.bak/
18+
venv.bak/
19+
20+
# CDK Context & Staging files
21+
.cdk.staging/
22+
cdk.out/

0 commit comments

Comments
 (0)