15.1. Miscellaneous#
15.1.1. Must-Have VSCode Extensions for Python#
Add these 8 must-have VSCode extensions when you work with Python to boost your productivity.
๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐ง๐๐๐ง๐ญ: Makes sure your indentation is correct with every Enter you make
๐๐ฒ๐ฅ๐๐ง๐๐: A no-brainer. Includes many benefits like Parameter suggestions, Code navigation, Signature help, and many more. Microsoft declared it as the default language server for Python.
๐๐ข๐ญ๐๐๐ง๐ฌ: Provides powerful features for your Git experience like seeing when a specific line was committed by whom in which pull request with which commit message. And much more. A must-have!
๐๐ฎ๐ฉ๐ฒ๐ญ๐๐ซ: Notebook supports and allows any Python environment to be used as a Jupyter kernel.
๐๐๐๐๐ ๐๐จ๐ซ ๐๐ฒ๐ญ๐ก๐จ๐ง: Automatically evaluates Python code in real time as you type. Displays variables and errors in a readable way. Only works for Python >= 3.7.
๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐๐ญ๐ก: Helps you generate internal import statements in a Python project.
๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐๐ฌ๐ญ ๐๐ฑ๐ฉ๐ฅ๐จ๐ซ๐๐ซ: Shows a test explorer without effort instead of going through the output from the terminal.
๐๐ฎ๐ญ๐จ๐๐จ๐๐ฌ๐ญ๐ซ๐ข๐ง๐ : Quickly generate docstrings for your functions
15.1.3. Project Scaffolding with smol-developer
#
Do you want something like create-react-app, but for anything?
Try smol-developer
from smol-ai.
smol-developer
scaffolds an entire codebase, based on a Markdown file with your specifications.
You describe, what kind of application you want to develop and it will create the necessary boilerplate code.
Link to Repository: https://github.com/smol-ai/developer
15.1.4. Well Commits with commitizen
#
Clear and standardized commit messages are important.
But itโs not always easy to have a standardized way in teams.
With commitizen
, you will get a release management tool designed for teams.
It helps you define committing rules, bump project versions and create a changelog.
It makes your life easier by enforcing writing descriptive commits.
15.1.5. Docker Best Practice: Use .dockerignore
#
One Docker Tip:
Use a .dockerignore
file to avoid adding unnecessary files to the image.
This will definitely reduce your Docker image size, but also more safe.
# .dockerignore
.git
.cache
*.md
!README*.md
README-secret.md
.env