mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
created a docker file to aid dev setup (#99)
* created a docker file to aid dev setup * fixed review comments in README and Dockerfile * review comments to simplify the docker run command
This commit is contained in:
12
README.md
12
README.md
@@ -210,4 +210,16 @@ Hue is given in degrees (0-360) and saturation and value in percentage.
|
||||
print(bulb.hsv)
|
||||
if bulb.is_color:
|
||||
bulb.hsv = (180, 100, 100) # set to cyan
|
||||
```
|
||||
|
||||
## Development Setup
|
||||
|
||||
### Docker
|
||||
|
||||
The following assumes you have a working installation of Docker.
|
||||
|
||||
Set up the environment and run the tests on demand.
|
||||
|
||||
```shell
|
||||
docker build . -t pyhs100 && docker run -v $(PWD)/pyHS100/tests:/opt/pyHS100/pyHS100/tests pyhs100 pytest
|
||||
```
|
Reference in New Issue
Block a user