-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore(build): improve devcontainers setup with poetry #506
chore(build): improve devcontainers setup with poetry #506
Conversation
i tested my new approach but i think it makes sense for you to see if it works for you, given that i dont use this all that much and may not be testing it the same way. |
@alexanderankin No this is good, Much cleaner. I really just needed a way to get the completions in there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you! ❤️
…#506) 1. Replaces uses an image directly. 2. Creates a custom image, still based off the original Image. 3. Installs poetry inside the container. This saves the user about 20 seconds every container load. 4. Installs `pre-commit` in the container. Saves more time. 5. Enables `pre-commit`. From inside the container the user cannot commit without `pre-commit` running. 6. Adds in git autocomplete to the container (see screenshot) 7. Adds in poetry autocomplete to the container (see screenshot) ![devcontainer-completion](https://github.com/testcontainers/testcontainers-python/assets/1908139/11446f78-4fbf-4d08-a997-043ae1632919) --------- Co-authored-by: bstrausser <[email protected]> Co-authored-by: David Ankin <[email protected]> Co-authored-by: Bálint Bartha <[email protected]>
pre-commit
in the container. Saves more time.pre-commit
. From inside the container the user cannot commit withoutpre-commit
running.