You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository provides a template for setting up a Python development environment using devcontainers. It includes configurations for various tools and libraries commonly used in Python development.
4
+
5
+
## Toolchain
6
+
7
+
-[poetry](https://python-poetry.org/) - dependency management and packaging
8
+
-[ruff](https://docs.astral.sh/ruff/) - fast Python linter and code formatter
9
+
-[pyright](https://github.com/microsoft/pyright) - static type checker for Python (usually better than mypy)
10
+
-[vermin](https://pypi.org/project/vermin/) - checks whether your code is compatible with a given Python version
11
+
-[licensecheck](https://pypi.org/project/licensecheck/) - checks the compatibility of your dependencies' licenses with your project license
12
+
-[pre-commit](https://pre-commit.com/) - pre-commit hooks for linting, formatting, and other checks
4. If prompted, reopen the repository in a devcontainer; otherwise, use the command palette (<kbd>Ctrl+Shift+P</kbd> or <kbd>Cmd+Shift+P</kbd>) and select "Reopen in Container".
21
+
5. Wait for the devcontainer to build and start.
22
+
6. Once the devcontainer is running, open the terminal and run the following command to install the dependencies:
23
+
```bash
24
+
poetry install
25
+
```
26
+
7. To test whether everything is working correctly, run:
27
+
```bash
28
+
poe start
29
+
```
30
+
This command will run the example script provided in the `devcontainer_python` directory.
31
+
8. Don't forget to replace dummy values with your actual project values in `pyproject.toml` and other configuration files.
0 commit comments