<#3903 [BUG] pyflyte not respecting .gitignore in ...
# flyte-github
c
#3903 [BUG] pyflyte not respecting .gitignore in pyflyte init Issue created by zeryx ### Describe the bug pyflyte init generates a new flyte project with a .gitignore. pyflyte respects .gitignores and .dockerignores, which by default contain
venv
and
.venv
, however it only respects the .gitignore if the cwd is a git project which by default it isn't. ### Expected behavior I would expect that if I use a venv to manage my local, non-git managed flyte project I'm not accidentally bundling my venv (which could be multiple GB in size) into my flyte tar.gz object. ### Additional context to reproduce pyflyte init foo cd foo python -m venv venv source venv/bin/activate pip install ..... pyflyte register workflows ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte