mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 13:33:11 +08:00
* pre-commit: Add zizmor and replace prettier with rumdl * updating DIRECTORY.md --------- Co-authored-by: cclauss <cclauss@users.noreply.github.com>
1.2 KiB
1.2 KiB
Development Container
This is Devcontainer configuration to provide a consistent development environment for all contributors.
Features
- Pre-configured Python environment
- Automatic installation of pre-commit hooks
- Ruff linter ready to check your code
- Oh My Zsh with plugins:
zsh-autosuggestionszsh-syntax-highlighting
Usage
-
Install Docker and Visual Studio Code
-
Install the Remote - Containers extension in VS Code
-
Do
CTRL+P, paste this command and pressEnterext install ms-vscode-remote.remote-containers
-
-
Open this repository in VS Code
-
When prompted, click "Reopen in Container"
-
Wait for the environment to build and initialize
After setup:
pre-commithooks are installedruffand other tools are available- The shell uses Zsh by default
Tips
To manually run checks on all files:
pre-commit run --all-files
For further information here's Microsoft tutorial about devcontainers.