i3blocks-contrib
i3blocks-contrib copied to clipboard
Add module for Rescuetime productive hours
Hello @danihodovic I know it's been a while since you opened this PR, I'd like to integrate it into a fork we're creating to keep the i3blocks-contrib repository updated.
You PR looks pretty good! It is a nice and useful block, in case you're still using i3blocks and interested in it getting merged could you please fix the following errors pylint found?
************* Module rescue
rescue.py:1:0: C0114: Missing module docstring (missing-module-docstring)
rescue.py:11:0: C0103: Constant name "url" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:13:0: C0103: Constant name "rescuetime_key_path" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:14:0: C0103: Constant name "api_key" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:18:8: C0103: Constant name "api_key" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:24:0: C0116: Missing function or method docstring (missing-function-docstring)
rescue.py:34:0: C0116: Missing function or method docstring (missing-function-docstring)
rescue.py:54:0: C0103: Constant name "result" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:55:0: C0103: Constant name "fulltext" doesn't conform to UPPER_CASE naming style (invalid-name)
rescue.py:5:0: W0611: Unused import json (unused-import)
rescue.py:6:0: W0611: Unused import os (unused-import)
rescue.py:5:0: C0411: standard import "import json" should be placed before "import requests" (wrong-import-order)
rescue.py:6:0: C0411: standard import "import os" should be placed before "import requests" (wrong-import-order)
rescue.py:7:0: C0411: standard import "import sys" should be placed before "import requests" (wrong-import-order)
rescue.py:8:0: C0411: standard import "from pathlib import Path" should be placed before "import requests" (wrong-import-order)
rescue.py:9:0: C0411: standard import "from datetime import date, timedelta" should be placed before "import requests" (wrong-import-order)
-----------------------------------
Your code has been rated at 5.68/10
Thanks in advance!