mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 13:33:11 +08:00
* ci: try Python 3.15 release candidate (DRAFT) Point the repo's .python-version at 3.15 so every workflow that reads python-version-file runs on the 3.15 release candidate (allow-prereleases is already enabled across all workflows). Add the 3.15 trove classifier and bump scipy>=1.18.1, which is the first scipy with cp315 manylinux wheels, so uv installs it as a wheel rather than building from source. Rebuilt on current master: the earlier version of this PR edited the per-workflow `python-version: 3.14` lines, but master has since moved the interpreter to a single `.python-version` file, so the change is now a one-line switch there. Purpose is to document which dependencies/tests are not yet 3.15-ready. Must stay DRAFT until Python 3.15 GA (early October). Requested in #15081. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Upgrade to Python 3.15t --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
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.