Skip to content

Commit e90bfb4

Browse files
authored
Merge pull request #243 from Moustachauve/container-readme
Update readme for dev container
2 parents db25264 + 8188c74 commit e90bfb4

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# python-hilo
22

3+
[![GitHub Release][releases-shield]][releases]
4+
[![License][license-shield]](LICENSE)
5+
6+
[![Build Status][build-shield]][build]
7+
[![Open in Dev Containers][devcontainer-shield]][devcontainer]
8+
39
`python-hilo` (aka `pyhilo`) is a Python 3.11, `asyncio`-driven interface to the unofficial
410
Hilo API from Hydro Quebec. This is meant to be integrated into Home Assistant but can also
511
be used as a standalone library.
@@ -16,3 +22,68 @@ Home assistant integration is available [here](https://github.com/dvd-dev/hilo)
1622

1723
If anyone wants to contribute, feel free to submit a PR. If you'd like to sync up first, you can
1824
fire me an email [email protected]
25+
26+
## Setting up development environment
27+
28+
The easiest way to start, is by opening a CodeSpace here on GitHub, or by using
29+
the [Dev Container][devcontainer] feature of Visual Studio Code.
30+
31+
[![Open in Dev Containers][devcontainer-shield]][devcontainer]
32+
33+
This Python project is fully managed using the [Poetry][poetry] dependency
34+
manager. But also relies on the use of NodeJS for certain checks during
35+
development.
36+
37+
You need at least:
38+
39+
- Python 3.11+
40+
- [Poetry][poetry-install]
41+
- NodeJS 20+ (including NPM)
42+
43+
To install all packages, including all development requirements:
44+
45+
```bash
46+
npm install
47+
poetry install
48+
```
49+
50+
As this repository uses the [pre-commit][pre-commit] framework, all changes
51+
are linted and tested with each commit. You can run all checks and tests
52+
manually, using the following command:
53+
54+
```bash
55+
poetry run pre-commit run --all-files
56+
```
57+
58+
To run just the Python tests:
59+
60+
```bash
61+
poetry run pytest
62+
```
63+
64+
## Authors & contributors
65+
66+
The original setup of this repository is by [David Vallée Delisle][dvd-dev].
67+
68+
Credits to [@frenck][frenck] for the base container configuration.
69+
The license of python-wled can be found in
70+
[third_party/python-wled/LICENSE](third_party/python-wled/LICENSE).
71+
72+
For a full list of all authors and contributors,
73+
check [the contributor's page][contributors].
74+
75+
76+
77+
[build-shield]: https://github.com/Moustachauve/pytechnove/actions/workflows/tests.yaml/badge.svg
78+
[build]: https://github.com/Moustachauve/pytechnove/actions/workflows/tests.yaml
79+
[releases-shield]: https://img.shields.io/github/release/dvd-dev/python-hilo.svg
80+
[releases]: https://github.com/dvd-dev/python-hilo/releases
81+
[license-shield]: https://img.shields.io/github/license/Moustachauve/pytechnove.svg
82+
[devcontainer-shield]: https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode
83+
[devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/dvd-dev/python-hilo
84+
[poetry-install]: https://python-poetry.org/docs/#installation
85+
[poetry]: https://python-poetry.org
86+
[pre-commit]: https://pre-commit.com/
87+
[dvd-dev]: https://github.com/dvd-dev
88+
[frenck]: https://github.com/frenck
89+
[contributors]: https://github.com/dvd-dev/python-hilo/graphs/contributors

0 commit comments

Comments
 (0)