Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Python Functions entries to the template .gitignore #542

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

CristiCanizales
Copy link
Contributor

What does this PR do?

Python support for Salesforce Functions is currently in beta.

When working on a Python project, it's typical to install the project's dependencies inside a Python "virtual environment". This environment is typically placed inside the project directory, with a directory name of .venv or venv. This environment is machine-specific, so must not be committed to source control.

In addition, when Python files are run, the Python interpreter writes the generated bytecode to disk, as a performance improvement for subsequent invocations. This bytecode is stored under __pycache__ directories alongside the source code, and is environment-specific so similarly should not be committed to source control.

Currently the beta docs for Python Functions have the user manually edit their project's .gitignore, however this adds friction and a potential source of mistakes, so we should add these entries to the template directly.

What issues does this PR fix or reference?

@W-12198175@

Python support for Salesforce Functions is currently in beta.

When working on a Python project, it's typical to install the project's
dependencies inside a Python "virtual environment". This environment
is typically placed inside the project directory, with a directory name of
`.venv` or `venv`. This environment is machine-specific, so must not
be committed to source control.

In addition, when Python files are run, the Python interpreter writes the
generated bytecode to disk, as a performance improvement for subsequent
invocations. This bytecode is stored under `__pycache__` directories alongside
the source code, and is environment-specific so similarly should not be committed
to source control.

Currently the beta docs for Python Functions have the user manually edit their
project's `.gitignore`, however this adds friction and a potential source of
mistakes, so we should add these entries to the template directly.

GUS-W-12198175.
@CristiCanizales CristiCanizales requested a review from a team as a code owner January 18, 2023 17:48
@CristiCanizales CristiCanizales merged commit 6738346 into main Jan 18, 2023
@CristiCanizales CristiCanizales deleted the pr/541 branch January 18, 2023 17:52
@CristiCanizales
Copy link
Contributor Author

Thanks for contributing @edmorley ! 🙌🏼😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants