ratt-ru / tigger

Local Sky Model (LSM) manager and FITS image viewer
8 stars 9 forks source link

Fix flake8 errors #141

Open razman786 opened 2 years ago

razman786 commented 2 years ago

Previously:

25    C901 'ImageControlDialog.__init__' is too complex (15)
1     E114 indentation is not a multiple of 4 (comment)
1     E116 unexpected indentation (comment)
5     E127 continuation line over-indented for visual indent
225   E128 continuation line under-indented for visual indent
1     E202 whitespace before ']'
1     E261 at least two spaces before inline comment
3     E265 block comment should start with '# '
271   E266 too many leading '#' for block comment
1     E271 multiple spaces after keyword
1     E302 expected 2 blank lines, found 1
24    E402 module level import not at top of file
56    E501 line too long (140 > 127 characters)
2     E502 the backslash is redundant between brackets
1     E703 statement ends with a semicolon
1     E721 do not compare types, use 'isinstance()'
38    E722 do not use bare 'except'
6     E741 ambiguous variable name 'l'
54    F401 'PyQt5.QtWidgets.QDockWidget' imported but unused
10    F403 'from PyQt5.QtWidgets import *' used; unable to detect undefined names
5     F405 'QApplication' may be undefined, or defined from star imports: PyQt5.QtWidgets
4     F541 f-string is missing placeholders
15    F841 local variable 'xinfo' is assigned to but never used
12    W291 trailing whitespace
7     W605 invalid escape sequence '\d'
770

Currently:

25    C901 'ImageControlDialog.__init__' is too complex (15)
3     E501 line too long (132 > 127 characters)
1     E721 do not compare types, use 'isinstance()'
6     E741 ambiguous variable name 'l'
6     F401 'PyQt5.QtCore' imported but unused
12    F841 local variable 'xinfo' is assigned to but never used
7     W605 invalid escape sequence '\d'
60