IntelligenceX / SDK

Public SDK for Intelligence X
https://intelx.io
405 stars 93 forks source link

Refactor flake8 #17

Closed cmlh closed 2 years ago

cmlh commented 2 years ago

The following changes are outstanding:

$ flake8 ./Python | grep -v "E501"

./Python/setup.py:2:1: F401 'setuptools' imported but unused ./Python/intelxapi.py:7:1: F401 're' imported but unused ./Python/intelxapi.py:139:9: E722 do not use bare 'except' ./Python/intelxapi.py:506:20: E712 comparison to False should be 'if cond is False:' or 'if not cond:' ./Python/intelxapi.py:529:20: E712 comparison to False should be 'if cond is False:' or 'if not cond:'

I have also omitted changes for E501 line too long as I intend to automate this using https://github.com/psf/black/blob/main/docs/the_black_code_style/current_style.md#line-length