Skip to content

Commit 0d88d69

Browse files
committed
Add basic readme
1 parent 97efd83 commit 0d88d69

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
# devcontainer-python
22

33
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
13+
- [poethepoet](https://poethepoet.natn.io/) - task management
14+
15+
## Getting Started
16+
17+
1. Create a new repository using this template.
18+
2. Clone your new repository.
19+
3. Open the repository in Visual Studio Code.
20+
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

Comments
 (0)