basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
363 stars 98 forks source link

Use str.format, raise exception in name function #32

Closed ThomDietrich closed 7 years ago

ThomDietrich commented 7 years ago

Hey,

this change tackles the eminent error as can be seen in #31 (doesn't resolve the actual issue).

ThomDietrich commented 7 years ago

Sorry to bother you. Any issues with this PR I should be aware of? Cheers ;)

ghost commented 7 years ago

logging should not use string.format lines should be no longer than 79 characters.

ThomDietrich commented 7 years ago

logging should not use string.format

Okay, the bug still needs to be fixed somehow...

lines should be no longer than 79 characters

A rather archaic length. Nowadays 120 or 160 is reasonable. Anyhow that's up to you.

ghost commented 7 years ago

Please create a new pull request for the fix

About line length and a lot of other style guidelines, please check the PEP8 Python style gudielines: https://www.python.org/dev/peps/pep-0008/#maximum-line-length

ThomDietrich commented 7 years ago

Done (#35)

I'm aware of PEP8. As I said, it's up to you.