Skip to content

Commit

Permalink
configure flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
s-martin committed May 12, 2024
1 parent 406839e commit cbcb758
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ per-file-ignores =
# Not necessary, if __all__ is declared in __init__ file
# https://www.python.org/dev/peps/pep-0008/#id48
__init__.py:F401,
components/smart-home-automation/MQTT-protocol/daemon_mqtt_client.py:W605
components/smart-home-automation/MQTT-protocol/daemon_mqtt_client.py:W605,
components/controls/buttons_usb_encoder/*.py:E402
count = True
max-complexity = 12
statistics = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

sys.path.append(".") # This command should be before imports of components

import logging # noqa E402
from evdev import categorize, ecodes, KeyEvent # noqa E402
from io_buttons_usb_encoder import button_map, current_device # noqa E402
from components.gpio_control.function_calls import phoniebox_function_calls # noqa E402
import logging
from evdev import categorize, ecodes, KeyEvent
from io_buttons_usb_encoder import button_map, current_device
from components.gpio_control.function_calls import phoniebox_function_calls

sys.path.append(".")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def current_device():
break
try:
_current_device
except:
except Exception:
sys.exit('Could not find the device %s\n. Make sure it is connected' % device_name)
return _current_device

Expand Down

0 comments on commit cbcb758

Please sign in to comment.