Closed junkmechanic closed 4 years ago
Thanks for your contribution and my apologies for the delay in a response! This is now fixed in my fork. Pylint now reports:
W: 14, 0: TODO: (fixme)
W: 25, 0: FIXME: replace with an actual enum in python3 (fixme)
W:155, 0: TODO: might have to unmaximize_vert window first (fixme)
W:156, 0: FIXME from corenominal: adjust horizontal placement, not sure where this discrepancy comes from? (fixme)
W:181, 0: FIXME: replace with switch in python 3 (fixme)
W:194, 0: FIXME: geom.x and geom.y are always 10 and 34 (fixme)
C: 17, 0: Line too long (103/100) (line-too-long)
C:166, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
C:236, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
C: 1, 0: Invalid module name "bl-aerosnap" (invalid-name)
R: 26, 0: Too few public methods (0/2) (too-few-public-methods)
C: 83, 4: Invalid argument name "x" (invalid-name)
C: 83, 4: Invalid argument name "y" (invalid-name)
R: 83, 4: Too many arguments (7/5) (too-many-arguments)
W:144, 8: Using the global statement (global-statement)
W:145,18: Use of eval (eval-used)
C:210, 0: Missing function docstring (missing-docstring)
C:235, 0: Missing function docstring (missing-docstring)
...
Global evaluation
-----------------
Your code has been rated at 8.39/10 (previous run: 8.78/10, -0.39)
The -0.39 comes from a big TODO comment I just added to remind myself what needs to be done still.
@Unia Looks great, your fork. Do you intend on merging your commit with this repo at some point or should i follow yours separately?
I intend to make a PR when all issues are resolved :)
@Hjdskes The code in the deuterium branch looks to me basically unchanged. Is your fork ready to merge?
No, but I do not have time to continue development right now.
OK no problem.
For lack of interest, bl-aerosnap has been removed from bunsen-utilities.
So got around to incorporating aerosnap in my setup and noticed this problem. The lint indicated that the syntax in lines 115 and 123 is deprecated. The funny thing is that the conditional works because of the deprecated syntax. Consider,
is_root_window
is actually a function and should have been called. Rather the value of the reference (which is the function object) is being tested againstTrue
which would always result in the conditional being true (and the program would enter the subsequent loop) even when the window is the root window. Not that it would bring about any drastic change (like changing the geometry of the root window), but I thought I would mention it for the sake of correctness.I have prepared the following patch. The rest of the edits are just lint-based. No changes in the logic.