Skip to content

Commit

Permalink
fix(sample-app): exclude all __pycache__ in cdk.json (#27191)
Browse files Browse the repository at this point in the history
Following the cdk workshop for python I noticed that `cdk watch` watches files from `__pycache__`.

This is an attempt to fix that.

Steps to reproduce:
1. `cdk init sample-app --language python`
2. `cdk bootstrap`
3. Run `cdk watch` and  notice that `__pycache__` folders are being watched:
```
'watch' is observing directory 'cdk_workshop/__pycache__' for changes
'watch' is observing the file 'cdk_workshop/cdk_workshop_stack.py' for changes
'watch' is observing the file 'cdk_workshop/__pycache__/__init__.cpython-311.pyc' for changes
'watch' is observing the file 'cdk_workshop/__pycache__/cdk_workshop_stack.cpython-311.pyc' for changes
```

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
n0061q authored and Hogan Bobertz committed Sep 19, 2023
1 parent 54e170b commit 0a62dd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"requirements*.txt",
"source.bat",
"**/__init__.py",
"python/__pycache__",
"**/__pycache__",
"tests"
]
}
Expand Down

0 comments on commit 0a62dd4

Please sign in to comment.