From 36a01de7d1adc823eaf3acc6ba02659cac28b782 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 3 Jul 2018 09:47:00 +0200 Subject: [PATCH] Add isort section (#49) --- docs/development_guidelines.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/development_guidelines.md b/docs/development_guidelines.md index 920e5f17..51207c4b 100644 --- a/docs/development_guidelines.md +++ b/docs/development_guidelines.md @@ -72,3 +72,12 @@ _LOGGER.error("No route to device: %s", self._resource) Don't print out wrong API keys, tokens, usernames, or passwords. Also note that `_LOGGER.info` is reserved for the core, use `_LOGGER.debug` in anything else. + +### Ordering of imports + +Instead of order the imports manually, use [`isort`](https://github.com/timothycrosley/isort). + +```bash +$ pip3 install isort +$ isort homeassistant/components/sensor/fixer.py +```