Skip to content
Snippets Groups Projects

WIP: Fix linting

Open Bo-Chun Chen requested to merge github/fork/diedpigs/fix-linting into feat-cod-rmq

Based on #125

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • From flake8:

    prod_rmq_agents/expire_account.py:2:1: F401 'os' imported but unused
    import os
    ^
    prod_rmq_agents/expire_account.py:4:1: F401 'pika' imported but unused
    import pika
    ^
    prod_rmq_agents/expire_account.py:7:1: F401 'pathlib.Path' imported but unused
    from pathlib import Path
    ^
    prod_rmq_agents/expire_account.py:40:13: F841 local variable 'block_ssh' is assigned to but never used
                block_ssh = popen(expire_account_cmd).read().rstrip()
                ^
    prod_rmq_agents/expire_account.py:42:13: F841 local variable 'unblock_ssh' is assigned to but never used
                unblock_ssh = popen(unexpire_account_cmd).read().rstrip()
                ^
    prod_rmq_agents/ssh_access.py:2:1: F401 'os' imported but unused
    import os
    ^
    prod_rmq_agents/ssh_access.py:4:1: F401 'pika' imported but unused
    import pika
    ^
    prod_rmq_agents/ssh_access.py:7:1: F401 'pathlib.Path' imported but unused
    from pathlib import Path
    ^
    prod_rmq_agents/ssh_access.py:25:5: F841 local variable 'corr_id' is assigned to but never used
        corr_id = properties.correlation_id
        ^
    prod_rmq_agents/ssh_access.py:26:5: F841 local variable 'reply_to' is assigned to but never used
        reply_to = properties.reply_to
        ^
    prod_rmq_agents/ssh_access.py:39:13: F841 local variable 'block_ssh' is assigned to but never used
                block_ssh = popen(block_ssh_cmd).read().rstrip()
                ^
    prod_rmq_agents/ssh_access.py:41:13: F841 local variable 'unblock_ssh' is assigned to but never used
                unblock_ssh = popen(unblock_ssh_cmd).read().rstrip()
                ^
    prod_rmq_agents/ssh_access.py:56:41: F821 undefined name 'queuename'
            {"routing_key": f"acctmgr.done.{queuename}", "msg": msg}
                                            ^
    account_manager.py:6:1: F401 'uuid' imported but unused
    import uuid
    ^
    account_manager.py:7:1: F401 'pika' imported but unused
    import pika
    ^
    account_manager.py:8:1: F811 redefinition of unused 'rc_util' from line 3
    import rc_util
    ^
    account_manager.py:11:1: F401 'time' imported but unused
    import time
    ^
    prod_rmq_agents/new_jobs.py:2:1: F401 'os' imported but unused
    import os
    ^
    prod_rmq_agents/new_jobs.py:4:1: F401 'pika' imported but unused
    import pika
    ^
    prod_rmq_agents/new_jobs.py:7:1: F401 'pathlib.Path' imported but unused
    from pathlib import Path
    ^
    prod_rmq_agents/new_jobs.py:38:13: F841 local variable 'block_new_jobs' is assigned to but never used
                block_new_jobs = popen(block_new_jobs_cmd).read().rstrip()
                ^
    prod_rmq_agents/new_jobs.py:40:13: F841 local variable 'unblock_new_jobs' is assigned to but never used
                unblock_new_jobs = popen(unblock_new_jobs_cmd).read().rstrip()
                ^
    prod_rmq_agents/acct_mgmt_workflow.py:4:1: F401 'argparse' imported but unused
    import argparse
    ^
    prod_rmq_agents/acct_mgmt_workflow.py:5:1: F401 'signal' imported but unused
    import signal
    ^
    prod_rmq_agents/acct_mgmt_workflow.py:6:1: F401 'uuid' imported but unused
    import uuid
    ^
    prod_rmq_agents/acct_mgmt_workflow.py:7:1: F401 'pika' imported but unused
    import pika
    ^
    prod_rmq_agents/acct_mgmt_workflow.py:8:1: F811 redefinition of unused 'rc_util' from line 3
    import rc_util
    ^
    prod_rmq_agents/acct_mgmt_workflow.py:11:1: F401 'time' imported but unused
    import time
    ^
    17    F401 'uuid' imported but unused
    2     F811 redefinition of unused 'rc_util' from line 3
    1     F821 undefined name 'queuename'
    8     F841 local variable 'block_ssh' is assigned to but never used
    28
  • from pylint:

    ************* Module acct_mgmt_workflow
    prod_rmq_agents/acct_mgmt_workflow.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/acct_mgmt_workflow.py:7:0: E0401: Unable to import 'pika' (import-error)
    prod_rmq_agents/acct_mgmt_workflow.py:8:0: W0404: Reimport 'rc_util' (imported line 3) (reimported)
    prod_rmq_agents/acct_mgmt_workflow.py:13:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/acct_mgmt_workflow.py:68:12: W0621: Redefining name 'task' from outer scope (line 13) (redefined-outer-name)
    prod_rmq_agents/acct_mgmt_workflow.py:20:16: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/acct_mgmt_workflow.py:20:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/acct_mgmt_workflow.py:22:4: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/acct_mgmt_workflow.py:34:11: R1714: Consider merging these comparisons with "in" to "state in ('blocked', 'certification')" (consider-using-in)
    prod_rmq_agents/acct_mgmt_workflow.py:20:28: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/acct_mgmt_workflow.py:20:0: R0912: Too many branches (13/12) (too-many-branches)
    prod_rmq_agents/acct_mgmt_workflow.py:4:0: W0611: Unused import argparse (unused-import)
    prod_rmq_agents/acct_mgmt_workflow.py:5:0: W0611: Unused import signal (unused-import)
    prod_rmq_agents/acct_mgmt_workflow.py:6:0: W0611: Unused import uuid (unused-import)
    prod_rmq_agents/acct_mgmt_workflow.py:7:0: W0611: Unused import pika (unused-import)
    prod_rmq_agents/acct_mgmt_workflow.py:11:0: W0611: Unused import time (unused-import)
    prod_rmq_agents/acct_mgmt_workflow.py:4:0: C0411: standard import "import argparse" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/acct_mgmt_workflow.py:5:0: C0411: standard import "import signal" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/acct_mgmt_workflow.py:6:0: C0411: standard import "import uuid" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/acct_mgmt_workflow.py:7:0: C0411: third party import "import pika" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/acct_mgmt_workflow.py:11:0: C0411: standard import "import time" should be placed before "import pika" (wrong-import-order)
    prod_rmq_agents/acct_mgmt_workflow.py:8:0: C0412: Imports from package rc_util are not grouped (ungrouped-imports)
    ************* Module dir_verify
    prod_rmq_agents/dir_verify.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/dir_verify.py:9:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/dir_verify.py:19:15: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/dir_verify.py:19:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/dir_verify.py:54:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/dir_verify.py:28:12: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/dir_verify.py:32:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/dir_verify.py:40:20: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/dir_verify.py:64:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/dir_verify.py:19:27: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/dir_verify.py:69:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/dir_verify.py:5:0: C0411: standard import "from pathlib import Path" should be placed before "import rc_util" (wrong-import-order)
    ************* Module expire_account
    prod_rmq_agents/expire_account.py:30:0: C0301: Line too long (128/79) (line-too-long)
    prod_rmq_agents/expire_account.py:31:0: C0301: Line too long (129/79) (line-too-long)
    prod_rmq_agents/expire_account.py:43:0: C0301: Line too long (108/79) (line-too-long)
    prod_rmq_agents/expire_account.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/expire_account.py:4:0: E0401: Unable to import 'pika' (import-error)
    prod_rmq_agents/expire_account.py:12:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/expire_account.py:21:19: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/expire_account.py:21:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/expire_account.py:41:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/expire_account.py:39:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/expire_account.py:52:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/expire_account.py:21:31: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/expire_account.py:34:12: W0612: Unused variable 'block_ssh' (unused-variable)
    prod_rmq_agents/expire_account.py:36:12: W0612: Unused variable 'unblock_ssh' (unused-variable)
    prod_rmq_agents/expire_account.py:57:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/expire_account.py:2:0: W0611: Unused import os (unused-import)
    prod_rmq_agents/expire_account.py:4:0: W0611: Unused import pika (unused-import)
    prod_rmq_agents/expire_account.py:7:0: W0611: Unused Path imported from pathlib (unused-import)
    prod_rmq_agents/expire_account.py:6:0: C0411: standard import "from os import popen" should be placed before "import pika" (wrong-import-order)
    prod_rmq_agents/expire_account.py:7:0: C0411: standard import "from pathlib import Path" should be placed before "import pika" (wrong-import-order)
    prod_rmq_agents/expire_account.py:10:0: C0411: standard import "from datetime import date, timedelta" should be placed before "import pika" (wrong-import-order)
    ************* Module get-next-uid-gid
    prod_rmq_agents/get-next-uid-gid.py:1:0: C0103: Module name "get-next-uid-gid" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/get-next-uid-gid.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/get-next-uid-gid.py:11:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/get-next-uid-gid.py:23:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/get-next-uid-gid.py:25:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:39:8: W1510: Using subprocess.run without explicitly set `check` is not recommended. (subprocess-run-check)
    prod_rmq_agents/get-next-uid-gid.py:41:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:45:20: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/get-next-uid-gid.py:45:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/get-next-uid-gid.py:49:16: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:49:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/get-next-uid-gid.py:83:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/get-next-uid-gid.py:59:24: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:59:24: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/get-next-uid-gid.py:70:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:78:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:45:32: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/get-next-uid-gid.py:102:12: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/get-next-uid-gid.py:102:12: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/get-next-uid-gid.py:5:0: C0411: standard import "from os import popen" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/get-next-uid-gid.py:8:0: C0411: standard import "from subprocess import run" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/get-next-uid-gid.py:9:0: C0411: standard import "import shlex" should be placed before "import rc_util" (wrong-import-order)
    ************* Module git_commit
    prod_rmq_agents/git_commit.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/git_commit.py:3:0: E0401: Unable to import 'sh' (import-error)
    prod_rmq_agents/git_commit.py:10:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/git_commit.py:35:15: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/git_commit.py:35:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/git_commit.py:114:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/git_commit.py:63:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
    prod_rmq_agents/git_commit.py:63:49: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
    prod_rmq_agents/git_commit.py:66:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/git_commit.py:80:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/git_commit.py:35:27: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/git_commit.py:4:0: C0411: standard import "import json" should be placed before "import sh" (wrong-import-order)
    prod_rmq_agents/git_commit.py:8:0: C0411: standard import "import time" should be placed before "import sh" (wrong-import-order)
    ************* Module new_jobs
    prod_rmq_agents/new_jobs.py:28:0: C0301: Line too long (123/79) (line-too-long)
    prod_rmq_agents/new_jobs.py:29:0: C0301: Line too long (126/79) (line-too-long)
    prod_rmq_agents/new_jobs.py:37:0: C0301: Line too long (84/79) (line-too-long)
    prod_rmq_agents/new_jobs.py:41:0: C0301: Line too long (121/79) (line-too-long)
    prod_rmq_agents/new_jobs.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/new_jobs.py:4:0: E0401: Unable to import 'pika' (import-error)
    prod_rmq_agents/new_jobs.py:11:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/new_jobs.py:20:13: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/new_jobs.py:20:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/new_jobs.py:39:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/new_jobs.py:37:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/new_jobs.py:50:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/new_jobs.py:20:25: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/new_jobs.py:32:12: W0612: Unused variable 'block_new_jobs' (unused-variable)
    prod_rmq_agents/new_jobs.py:34:12: W0612: Unused variable 'unblock_new_jobs' (unused-variable)
    prod_rmq_agents/new_jobs.py:55:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/new_jobs.py:2:0: W0611: Unused import os (unused-import)
    prod_rmq_agents/new_jobs.py:4:0: W0611: Unused import pika (unused-import)
    prod_rmq_agents/new_jobs.py:7:0: W0611: Unused Path imported from pathlib (unused-import)
    prod_rmq_agents/new_jobs.py:6:0: C0411: standard import "from os import popen" should be placed before "import pika" (wrong-import-order)
    prod_rmq_agents/new_jobs.py:7:0: C0411: standard import "from pathlib import Path" should be placed before "import pika" (wrong-import-order)
    ************* Module notify_user
    prod_rmq_agents/notify_user.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/notify_user.py:5:0: E0401: Unable to import 'dataset' (import-error)
    prod_rmq_agents/notify_user.py:7:0: E0401: Unable to import 'jinja2' (import-error)
    prod_rmq_agents/notify_user.py:10:0: E0401: Unable to import 'mail_config' (import-error)
    prod_rmq_agents/notify_user.py:12:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/notify_user.py:25:16: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/notify_user.py:25:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/notify_user.py:90:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/notify_user.py:51:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:61:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:62:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:65:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:75:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:87:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:99:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:25:28: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/notify_user.py:106:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/notify_user.py:4:0: C0411: standard import "import smtplib" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/notify_user.py:5:0: C0411: third party import "import dataset" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/notify_user.py:7:0: C0411: third party import "from jinja2 import Template" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/notify_user.py:8:0: C0411: standard import "from datetime import datetime" should be placed before "import dataset" (wrong-import-order)
    prod_rmq_agents/notify_user.py:10:0: C0411: third party import "import mail_config as mail_cfg" should be placed before "import rc_util" (wrong-import-order)
    ************* Module ssh_access
    prod_rmq_agents/ssh_access.py:29:0: C0301: Line too long (115/79) (line-too-long)
    prod_rmq_agents/ssh_access.py:30:0: C0301: Line too long (121/79) (line-too-long)
    prod_rmq_agents/ssh_access.py:42:0: C0301: Line too long (108/79) (line-too-long)
    prod_rmq_agents/ssh_access.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/ssh_access.py:4:0: E0401: Unable to import 'pika' (import-error)
    prod_rmq_agents/ssh_access.py:11:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/ssh_access.py:20:15: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/ssh_access.py:20:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/ssh_access.py:40:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/ssh_access.py:38:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/ssh_access.py:48:40: E0602: Undefined variable 'queuename' (undefined-variable)
    prod_rmq_agents/ssh_access.py:53:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/ssh_access.py:25:4: W0612: Unused variable 'corr_id' (unused-variable)
    prod_rmq_agents/ssh_access.py:26:4: W0612: Unused variable 'reply_to' (unused-variable)
    prod_rmq_agents/ssh_access.py:33:12: W0612: Unused variable 'block_ssh' (unused-variable)
    prod_rmq_agents/ssh_access.py:35:12: W0612: Unused variable 'unblock_ssh' (unused-variable)
    prod_rmq_agents/ssh_access.py:58:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/ssh_access.py:2:0: W0611: Unused import os (unused-import)
    prod_rmq_agents/ssh_access.py:4:0: W0611: Unused import pika (unused-import)
    prod_rmq_agents/ssh_access.py:7:0: W0611: Unused Path imported from pathlib (unused-import)
    prod_rmq_agents/ssh_access.py:6:0: C0411: standard import "from os import popen" should be placed before "import pika" (wrong-import-order)
    prod_rmq_agents/ssh_access.py:7:0: C0411: standard import "from pathlib import Path" should be placed before "import pika" (wrong-import-order)
    ************* Module subscribe_mail_lists
    prod_rmq_agents/subscribe_mail_lists.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/subscribe_mail_lists.py:9:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/subscribe_mail_lists.py:21:27: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/subscribe_mail_lists.py:21:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/subscribe_mail_lists.py:25:16: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/subscribe_mail_lists.py:25:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/subscribe_mail_lists.py:40:16: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/subscribe_mail_lists.py:40:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/subscribe_mail_lists.py:64:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/subscribe_mail_lists.py:52:8: C0103: Variable name "s" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/subscribe_mail_lists.py:57:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/subscribe_mail_lists.py:21:39: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/subscribe_mail_lists.py:78:12: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/subscribe_mail_lists.py:78:12: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/subscribe_mail_lists.py:5:0: C0411: standard import "from email.message import EmailMessage" should be placed before "import rc_util" (wrong-import-order)
    ************* Module task_manager
    prod_rmq_agents/task_manager.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/task_manager.py:5:0: E0401: Unable to import 'dataset' (import-error)
    prod_rmq_agents/task_manager.py:9:0: E0401: Unable to import 'jinja2' (import-error)
    prod_rmq_agents/task_manager.py:11:0: E0401: Unable to import 'mail_config' (import-error)
    prod_rmq_agents/task_manager.py:14:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/task_manager.py:15:0: C0103: Constant name "timeout" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/task_manager.py:49:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/task_manager.py:86:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:87:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:96:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:101:4: W0621: Redefining name 'record' from outer scope (line 23) (redefined-outer-name)
    prod_rmq_agents/task_manager.py:99:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/task_manager.py:126:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/task_manager.py:131:17: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/task_manager.py:131:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/task_manager.py:131:0: R0914: Too many local variables (18/15) (too-many-locals)
    prod_rmq_agents/task_manager.py:171:16: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/task_manager.py:178:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:183:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:262:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/task_manager.py:228:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:246:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:260:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:269:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:131:29: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/task_manager.py:131:0: R0912: Too many branches (18/12) (too-many-branches)
    prod_rmq_agents/task_manager.py:131:0: R0915: Too many statements (89/50) (too-many-statements)
    prod_rmq_agents/task_manager.py:290:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/task_manager.py:290:20: W0613: Unused argument 'signum' (unused-argument)
    prod_rmq_agents/task_manager.py:290:28: W0613: Unused argument 'frame' (unused-argument)
    prod_rmq_agents/task_manager.py:322:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/task_manager.py:7:0: C0411: standard import "import smtplib" should be placed before "import dataset" (wrong-import-order)
    prod_rmq_agents/task_manager.py:9:0: C0411: third party import "from jinja2 import Template" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/task_manager.py:10:0: C0411: standard import "from datetime import datetime" should be placed before "import dataset" (wrong-import-order)
    prod_rmq_agents/task_manager.py:11:0: C0411: third party import "import mail_config as mail_cfg" should be placed before "import rc_util" (wrong-import-order)
    ************* Module user_reg_event_logger
    prod_rmq_agents/user_reg_event_logger.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/user_reg_event_logger.py:5:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/user_reg_event_logger.py:12:24: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/user_reg_event_logger.py:12:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/user_reg_event_logger.py:12:36: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/user_reg_event_logger.py:28:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    ************* Module user_reg_logger
    prod_rmq_agents/user_reg_logger.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/user_reg_logger.py:3:0: E0401: Unable to import 'dataset' (import-error)
    prod_rmq_agents/user_reg_logger.py:10:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/user_reg_logger.py:27:21: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/user_reg_logger.py:27:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/user_reg_logger.py:27:33: W0613: Unused argument 'properties' (unused-argument)
    prod_rmq_agents/user_reg_logger.py:37:12: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
    prod_rmq_agents/user_reg_logger.py:37:12: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    prod_rmq_agents/user_reg_logger.py:6:0: C0411: standard import "from datetime import datetime" should be placed before "import dataset" (wrong-import-order)
    ************* Module user_state
    prod_rmq_agents/user_state.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    prod_rmq_agents/user_state.py:4:0: E0401: Unable to import 'dataset' (import-error)
    prod_rmq_agents/user_state.py:5:0: E0401: Unable to import 'pika' (import-error)
    prod_rmq_agents/user_state.py:10:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    prod_rmq_agents/user_state.py:22:15: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/user_state.py:22:0: C0116: Missing function or method docstring (missing-function-docstring)
    prod_rmq_agents/user_state.py:25:4: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name)
    prod_rmq_agents/user_state.py:55:11: W0703: Catching too general exception Exception (broad-except)
    prod_rmq_agents/user_state.py:40:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/user_state.py:52:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/user_state.py:71:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
    prod_rmq_agents/user_state.py:4:0: C0411: third party import "import dataset" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/user_state.py:5:0: C0411: third party import "import pika" should be placed before "import rc_util" (wrong-import-order)
    prod_rmq_agents/user_state.py:7:0: C0411: standard import "from datetime import datetime" should be placed before "import dataset" (wrong-import-order)
    ************* Module ohpc_account_create
    dev_rmq_agents/ohpc_account_create.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    dev_rmq_agents/ohpc_account_create.py:8:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    dev_rmq_agents/ohpc_account_create.py:14:24: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/ohpc_account_create.py:14:0: C0116: Missing function or method docstring (missing-function-docstring)
    dev_rmq_agents/ohpc_account_create.py:16:10: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ohpc_account_create.py:23:11: W0703: Catching too general exception Exception (broad-except)
    dev_rmq_agents/ohpc_account_create.py:21:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ohpc_account_create.py:24:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/ohpc_account_create.py:25:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ohpc_account_create.py:14:36: W0613: Unused argument 'properties' (unused-argument)
    dev_rmq_agents/ohpc_account_create.py:44:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    ************* Module ood_account_create
    dev_rmq_agents/ood_account_create.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    dev_rmq_agents/ood_account_create.py:7:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    dev_rmq_agents/ood_account_create.py:13:23: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/ood_account_create.py:13:0: C0116: Missing function or method docstring (missing-function-docstring)
    dev_rmq_agents/ood_account_create.py:15:10: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ood_account_create.py:27:11: W0703: Catching too general exception Exception (broad-except)
    dev_rmq_agents/ood_account_create.py:25:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ood_account_create.py:28:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/ood_account_create.py:29:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/ood_account_create.py:13:35: W0613: Unused argument 'properties' (unused-argument)
    dev_rmq_agents/ood_account_create.py:42:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    ************* Module slurm_agent
    dev_rmq_agents/slurm_agent.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    dev_rmq_agents/slurm_agent.py:7:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    dev_rmq_agents/slurm_agent.py:13:25: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/slurm_agent.py:13:0: C0116: Missing function or method docstring (missing-function-docstring)
    dev_rmq_agents/slurm_agent.py:15:10: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/slurm_agent.py:43:11: W0703: Catching too general exception Exception (broad-except)
    dev_rmq_agents/slurm_agent.py:41:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/slurm_agent.py:44:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
    dev_rmq_agents/slurm_agent.py:45:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    dev_rmq_agents/slurm_agent.py:13:37: W0613: Unused argument 'properties' (unused-argument)
    dev_rmq_agents/slurm_agent.py:58:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    ************* Module account_manager
    account_manager.py:13:0: C0301: Line too long (82/79) (line-too-long)
    account_manager.py:19:0: C0301: Line too long (168/79) (line-too-long)
    account_manager.py:63:0: C0301: Line too long (100/79) (line-too-long)
    account_manager.py:65:0: C0301: Line too long (80/79) (line-too-long)
    account_manager.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    account_manager.py:7:0: E0401: Unable to import 'pika' (import-error)
    account_manager.py:8:0: W0404: Reimport 'rc_util' (imported line 3) (reimported)
    account_manager.py:27:0: C0103: Constant name "timeout" doesn't conform to UPPER_CASE naming style (invalid-name)
    account_manager.py:53:0: C0116: Missing function or method docstring (missing-function-docstring)
    account_manager.py:53:20: W0613: Unused argument 'signum' (unused-argument)
    account_manager.py:53:28: W0613: Unused argument 'frame' (unused-argument)
    account_manager.py:59:4: W0621: Redefining name 'msg' from outer scope (line 38) (redefined-outer-name)
    account_manager.py:60:4: W0621: Redefining name 'username' from outer scope (line 31) (redefined-outer-name)
    account_manager.py:58:13: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    account_manager.py:58:0: C0116: Missing function or method docstring (missing-function-docstring)
    account_manager.py:58:25: W0613: Unused argument 'properties' (unused-argument)
    account_manager.py:6:0: W0611: Unused import uuid (unused-import)
    account_manager.py:7:0: W0611: Unused import pika (unused-import)
    account_manager.py:11:0: W0611: Unused import time (unused-import)
    account_manager.py:4:0: C0411: standard import "import argparse" should be placed before "import rc_util" (wrong-import-order)
    account_manager.py:5:0: C0411: standard import "import signal" should be placed before "import rc_util" (wrong-import-order)
    account_manager.py:6:0: C0411: standard import "import uuid" should be placed before "import rc_util" (wrong-import-order)
    account_manager.py:7:0: C0411: third party import "import pika" should be placed before "import rc_util" (wrong-import-order)
    account_manager.py:11:0: C0411: standard import "import time" should be placed before "import pika" (wrong-import-order)
    account_manager.py:8:0: C0412: Imports from package rc_util are not grouped (ungrouped-imports)
    ************* Module agent_template
    agent_template.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    agent_template.py:5:0: C0103: Constant name "task" doesn't conform to UPPER_CASE naming style (invalid-name)
    agent_template.py:12:15: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    agent_template.py:12:0: C0116: Missing function or method docstring (missing-function-docstring)
    agent_template.py:23:10: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    agent_template.py:12:27: W0613: Unused argument 'properties' (unused-argument)
    agent_template.py:29:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    ************* Module create_account
    create_account.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    create_account.py:25:0: C0103: Constant name "timeout" doesn't conform to UPPER_CASE naming style (invalid-name)
    create_account.py:35:0: C0116: Missing function or method docstring (missing-function-docstring)
    create_account.py:35:20: W0613: Unused argument 'signum' (unused-argument)
    create_account.py:35:28: W0613: Unused argument 'frame' (unused-argument)
    create_account.py:40:0: C0116: Missing function or method docstring (missing-function-docstring)
    create_account.py:40:13: W0613: Unused argument 'channel' (unused-argument)
    create_account.py:40:22: W0613: Unused argument 'method' (unused-argument)
    create_account.py:40:30: W0613: Unused argument 'properties' (unused-argument)
    create_account.py:4:0: C0411: standard import "import argparse" should be placed before "import rc_util" (wrong-import-order)
    create_account.py:5:0: C0411: standard import "import signal" should be placed before "import rc_util" (wrong-import-order)
    ************* Module flask_producer
    flask_producer.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    flask_producer.py:2:0: E0401: Unable to import 'pika' (import-error)
    flask_producer.py:9:21: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    flask_producer.py:10:4: R1722: Consider using sys.exit() (consider-using-sys-exit)
    flask_producer.py:22:0: C0103: Constant name "connect_host" doesn't conform to UPPER_CASE naming style (invalid-name)
    flask_producer.py:38:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    flask_producer.py:49:9: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    flask_producer.py:49:0: C0116: Missing function or method docstring (missing-function-docstring)
    flask_producer.py:51:10: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    flask_producer.py:49:9: W0613: Unused argument 'ch' (unused-argument)
    flask_producer.py:49:21: W0613: Unused argument 'properties' (unused-argument)
    flask_producer.py:59:6: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    flask_producer.py:3:0: C0411: standard import "import sys" should be placed before "import pika" (wrong-import-order)
    flask_producer.py:4:0: C0411: standard import "import socket" should be placed before "import pika" (wrong-import-order)
    flask_producer.py:5:0: C0411: standard import "import json" should be placed before "import pika" (wrong-import-order)
    ************* Module rabbit_config
    rabbit_config.py:34:0: C0305: Trailing newlines (trailing-newlines)
    rabbit_config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    rabbit_config.py:1:0: C0103: Constant name "Exchange" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:2:0: C0103: Constant name "User" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:3:0: C0103: Constant name "Password" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:4:0: C0103: Constant name "VHost" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:5:0: C0103: Constant name "Server" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:6:0: C0103: Constant name "Port" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:11:0: C0103: Constant name "Function_timeout" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:15:0: C0103: Constant name "Delay" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:21:0: C0103: Constant name "rc_users_ldap_repo_loc" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:22:0: C0103: Constant name "db_path" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:25:0: C0103: Constant name "Mail_server" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:26:0: C0103: Constant name "Admin_email" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:27:0: C0103: Constant name "Sender" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:28:0: C0103: Constant name "Sender_alias" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:29:0: C0103: Constant name "Subject" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:30:0: C0103: Constant name "Info_url" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:31:0: C0103: Constant name "Mail_list" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:32:0: C0103: Constant name "Mail_list_bcc" doesn't conform to UPPER_CASE naming style (invalid-name)
    rabbit_config.py:33:0: C0103: Constant name "Support_email" doesn't conform to UPPER_CASE naming style (invalid-name)
    ************* Module rc_rmq
    rc_rmq.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    rc_rmq.py:2:0: E0401: Unable to import 'pika' (import-error)
    rc_rmq.py:21:16: C0103: Attribute name "EXCHANGE" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:23:16: C0103: Attribute name "EXCHANGE_TYPE" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:27:8: C0103: Attribute name "HOST" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:28:8: C0103: Attribute name "USER" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:29:8: C0103: Attribute name "PASSWORD" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:30:8: C0103: Attribute name "VHOST" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:31:8: C0103: Attribute name "PORT" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:32:8: C0103: Attribute name "DEBUG" doesn't conform to snake_case naming style (invalid-name)
    rc_rmq.py:7:0: C0115: Missing class docstring (missing-class-docstring)
    rc_rmq.py:7:0: R0205: Class 'RCRMQ' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
    rc_rmq.py:7:0: R0902: Too many instance attributes (13/7) (too-many-instance-attributes)
    rc_rmq.py:36:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    rc_rmq.py:65:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:83:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:102:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:108:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:111:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:125:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:148:4: C0116: Missing function or method docstring (missing-function-docstring)
    rc_rmq.py:3:0: C0411: standard import "import socket" should be placed before "import pika" (wrong-import-order)
    ************* Module rc_util
    rc_util.py:26:0: W0622: Redefining built-in 'TimeoutError' (redefined-builtin)
    rc_util.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    rc_util.py:7:0: E0401: Unable to import 'pika' (import-error)
    rc_util.py:23:0: C0103: Constant name "logger_fmt" doesn't conform to UPPER_CASE naming style (invalid-name)
    rc_util.py:26:0: C0115: Missing class docstring (missing-class-docstring)
    rc_util.py:31:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:51:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:66:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:80:11: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    rc_util.py:80:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:93:4: E1120: No value for argument 'queue' in method call (no-value-for-parameter)
    rc_util.py:80:11: W0613: Unused argument 'ch' (unused-argument)
    rc_util.py:80:15: W0613: Unused argument 'method' (unused-argument)
    rc_util.py:80:23: W0613: Unused argument 'properties' (unused-argument)
    rc_util.py:96:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:96:0: R0913: Too many arguments (7/5) (too-many-arguments)
    rc_util.py:126:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:138:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:154:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:162:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:167:16: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    rc_util.py:167:16: W0613: Unused argument 'ch' (unused-argument)
    rc_util.py:167:20: W0613: Unused argument 'method' (unused-argument)
    rc_util.py:214:0: C0116: Missing function or method docstring (missing-function-docstring)
    rc_util.py:224:16: C0103: Argument name "ch" doesn't conform to snake_case naming style (invalid-name)
    rc_util.py:224:16: W0613: Unused argument 'ch' (unused-argument)
    rc_util.py:224:20: W0613: Unused argument 'method' (unused-argument)
    rc_util.py:8:0: C0411: standard import "import uuid" should be placed before "import pika" (wrong-import-order)
    rc_util.py:10:0: C0411: standard import "import json" should be placed before "import pika" (wrong-import-order)
    rc_util.py:11:0: C0411: standard import "from urllib.parse import quote" should be placed before "import pika" (wrong-import-order)
    rc_util.py:12:0: C0411: standard import "from time import sleep" should be placed before "import pika" (wrong-import-order)
    ************* Module test
    test.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    test.py:5:8: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
    test.py:8:4: R1722: Consider using sys.exit() (consider-using-sys-exit)
    ************* Module test_module
    test_module.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    ************* Module user_auth
    user_auth.py:1:0: C0114: Missing module docstring (missing-module-docstring)
    user_auth.py:8:0: C0103: Constant name "migration" doesn't conform to UPPER_CASE naming style (invalid-name)
    user_auth.py:9:0: C0103: Constant name "default_state" doesn't conform to UPPER_CASE naming style (invalid-name)
    user_auth.py:13:0: C0103: Constant name "result" doesn't conform to UPPER_CASE naming style (invalid-name)
    user_auth.py:19:13: W1510: Using subprocess.run without explicitly set `check` is not recommended. (subprocess-run-check)
    user_auth.py:4:0: C0411: standard import "import subprocess" should be placed before "import rc_util" (wrong-import-order)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==ood_account_create:[25:43]
    ==slurm_agent:[41:59]
            success = True
        except Exception:
            e = sys.exc_info()[0]
            print("[{}]: Error: {}".format(task, e))
    
        ch.basic_ack(delivery_tag=method.delivery_tag)
    
        # send confirm message
        rc_rmq.publish_msg(
            {
                "routing_key": "confirm." + username,
                "msg": {"task": task, "success": success},
            }
        )
    
    
    print("Start listening to queue: {}".format(task))
    rc_rmq.start_consume( (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==expire_account:[43:59]
    ==new_jobs:[41:57]
            logger.error("", exc_info=True)
    
    
        rc_rmq.publish_msg(
            {"routing_key": f'acctmgr.done.{queuename}',
             "msg": msg}
        )
    
        logger.debug(f"User {username} confirmation sent for {action}ing {task}")
    
        ch.basic_ack(delivery_tag=method.delivery_tag)
    
    
    logger.info(f"Start listening to queue: {task}")
    rc_rmq.bind_queue(queue=task, routing_key='lock.*', durable=True)
    rc_rmq.bind_queue(queue=task, routing_key='unlock.*', durable=True) (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==account_manager:[1:12]
    ==acct_mgmt_workflow:[1:12]
    import json
    import rc_util
    import argparse
    import signal
    import uuid
    import pika
    import rc_util
    from rc_rmq import RCRMQ
    import rabbit_config as rcfg
    import time
     (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==create_account:[40:51]
    ==rc_util:[80:91]
        msg = json.loads(body)
        username = msg["username"]
    
        if msg["success"]:
            print(f"Account for {username} has been created.")
        else:
            print(f"There's some issue while creating account for {username}")
            errmsg = msg.get("errmsg", [])
            for err in errmsg:
                print(err)
     (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==get-next-uid-gid:[88:103]
    ==subscribe_mail_lists:[64:79]
            logger.error("", exc_info=True)
    
        # Acknowledge message
        ch.basic_ack(delivery_tag=method.delivery_tag)
    
        # send confirm message
        logger.debug("rc_rmq.publish_msg()")
        rc_rmq.publish_msg(
            {"routing_key": "confirm." + msg["queuename"], "msg": msg}
        )
        logger.info("confirmation sent")
    
    
    logger.info("Start listening to queue: {}".format(task))
    rc_rmq.start_consume( (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==expire_account:[1:9]
    ==new_jobs:[1:10]
    import os
    import json
    import pika
    import rc_util
    from os import popen
    from pathlib import Path
    from rc_rmq import RCRMQ
    import rabbit_config as rcfg
     (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==account_manager:[21:30]
    ==create_account:[19:28]
    parser.add_argument(
        "-n", "--dry-run", action="store_true", help="enable dry run mode"
    )
    args = parser.parse_args()
    
    timeout = 60
    
    queuename = rc_util.encode_name(args.username)
     (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==ohpc_account_create:[20:27]
    ==ood_account_create:[24:33]
            print("[{}]: User {} has been added".format(task, username))
            success = True
        except Exception:
            e = sys.exc_info()[0]
            print("[{}]: Error: {}".format(task, e))
    
        ch.basic_ack(delivery_tag=method.delivery_tag) (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==agent_template:[25:33]
    ==user_reg_event_logger:[24:32]
        ch.basic_ack(delivery_tag=method.delivery_tag)
    
    
    print("Start listening to queue: {}".format(task))
    rc_rmq.start_consume(
        {
            "queue": task,  # Define your Queue name
            "routing_key": "#",  # Define your routing key (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==ohpc_account_create:[21:27]
    ==slurm_agent:[41:49]
            success = True
        except Exception:
            e = sys.exc_info()[0]
            print("[{}]: Error: {}".format(task, e))
    
        ch.basic_ack(delivery_tag=method.delivery_tag)
    
        # send confirm message (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==ohpc_account_create:[14:19]
    ==slurm_agent:[13:18]
        msg = json.loads(body)
        print("Message received {}".format(msg))
        username = msg["username"]
        success = False
        try: (duplicate-code)
    user_auth.py:1:0: R0801: Similar lines in 2 files
    ==expire_account:[21:26]
    ==new_jobs:[20:26]
        msg = json.loads(body)
        username = msg["username"]
        action = msg["action"]
        msg["task"] = task
        queuename = msg["queuename"]
     (duplicate-code)
    
    
    Report
    ======
    1139 statements analysed.
    
    Statistics by type
    ------------------
    
    +---------+-------+-----------+-----------+------------+---------+
    |type     |number |old number |difference |%documented |%badname |
    +=========+=======+===========+===========+============+=========+
    |module   |26     |26         |=          |0.00        |3.85     |
    +---------+-------+-----------+-----------+------------+---------+
    |class    |2      |2          |=          |0.00        |0.00     |
    +---------+-------+-----------+-----------+------------+---------+
    |method   |8      |8          |=          |12.50       |0.00     |
    +---------+-------+-----------+-----------+------------+---------+
    |function |42     |42         |=          |11.90       |0.00     |
    +---------+-------+-----------+-----------+------------+---------+
    
    
    
    External dependencies
    ---------------------
    ::
    
        rabbit_config (account_manager,acct_mgmt_workflow,dir_verify,expire_account,flask_producer,get-next-uid-gid,git_commit,new_jobs,notify_user,rc_rmq,rc_util,ssh_access,subscribe_mail_lists,task_manager,user_reg_logger,user_state)
        rc_rmq (account_manager,acct_mgmt_workflow,agent_template,dir_verify,expire_account,get-next-uid-gid,git_commit,new_jobs,notify_user,ohpc_account_create,ood_account_create,rc_util,slurm_agent,ssh_access,subscribe_mail_lists,task_manager,user_reg_event_logger,user_reg_logger,user_state)
        rc_util (account_manager,acct_mgmt_workflow,create_account,dir_verify,expire_account,get-next-uid-gid,git_commit,new_jobs,notify_user,ssh_access,subscribe_mail_lists,task_manager,test_module,user_auth,user_reg_logger,user_state)
    
    
    
    Raw metrics
    -----------
    
    +----------+-------+------+---------+-----------+
    |type      |number |%     |previous |difference |
    +==========+=======+======+=========+===========+
    |code      |1463   |65.17 |1463     |=          |
    +----------+-------+------+---------+-----------+
    |docstring |195    |8.69  |195      |=          |
    +----------+-------+------+---------+-----------+
    |comment   |128    |5.70  |128      |=          |
    +----------+-------+------+---------+-----------+
    |empty     |459    |20.45 |459      |=          |
    +----------+-------+------+---------+-----------+
    
    
    
    Duplication
    -----------
    
    +-------------------------+------+---------+-----------+
    |                         |now   |previous |difference |
    +=========================+======+=========+===========+
    |nb duplicated lines      |0     |0        |0          |
    +-------------------------+------+---------+-----------+
    |percent duplicated lines |0.000 |0.000    |=          |
    +-------------------------+------+---------+-----------+
    
    
    
    Messages by category
    --------------------
    
    +-----------+-------+---------+-----------+
    |type       |number |previous |difference |
    +===========+=======+=========+===========+
    |convention |248    |248      |248        |
    +-----------+-------+---------+-----------+
    |refactor   |22     |22       |22         |
    +-----------+-------+---------+-----------+
    |warning    |131    |131      |131        |
    +-----------+-------+---------+-----------+
    |error      |20     |20       |20         |
    +-----------+-------+---------+-----------+
    
    
    
    Messages
    --------
    
    +------------------------------+------------+
    |message id                    |occurrences |
    +==============================+============+
    |invalid-name                  |83          |
    +------------------------------+------------+
    |wrong-import-order            |48          |
    +------------------------------+------------+
    |missing-function-docstring    |44          |
    +------------------------------+------------+
    |logging-fstring-interpolation |41          |
    +------------------------------+------------+
    |unused-argument               |34          |
    +------------------------------+------------+
    |consider-using-f-string       |28          |
    +------------------------------+------------+
    |missing-module-docstring      |26          |
    +------------------------------+------------+
    |import-error                  |18          |
    +------------------------------+------------+
    |unused-import                 |17          |
    +------------------------------+------------+
    |line-too-long                 |14          |
    +------------------------------+------------+
    |broad-except                  |13          |
    +------------------------------+------------+
    |duplicate-code                |12          |
    +------------------------------+------------+
    |unused-variable               |8           |
    +------------------------------+------------+
    |logging-format-interpolation  |7           |
    +------------------------------+------------+
    |redefined-outer-name          |4           |
    +------------------------------+------------+
    |unspecified-encoding          |2           |
    +------------------------------+------------+
    |ungrouped-imports             |2           |
    +------------------------------+------------+
    |too-many-branches             |2           |
    +------------------------------+------------+
    |subprocess-run-check          |2           |
    +------------------------------+------------+
    |reimported                    |2           |
    +------------------------------+------------+
    |missing-class-docstring       |2           |
    +------------------------------+------------+
    |consider-using-sys-exit       |2           |
    +------------------------------+------------+
    |useless-object-inheritance    |1           |
    +------------------------------+------------+
    |undefined-variable            |1           |
    +------------------------------+------------+
    |trailing-newlines             |1           |
    +------------------------------+------------+
    |too-many-statements           |1           |
    +------------------------------+------------+
    |too-many-locals               |1           |
    +------------------------------+------------+
    |too-many-instance-attributes  |1           |
    +------------------------------+------------+
    |too-many-arguments            |1           |
    +------------------------------+------------+
    |redefined-builtin             |1           |
    +------------------------------+------------+
    |no-value-for-parameter        |1           |
    +------------------------------+------------+
    |consider-using-in             |1           |
    +------------------------------+------------+
    
    
    
    
    ------------------------------------------------------------------
    Your code has been rated at 5.60/10 (previous run: 5.60/10, +0.00)
  • Ravi Tripathi restored source branch github/fork/diedpigs/fix-linting

    restored source branch github/fork/diedpigs/fix-linting

Please register or sign in to reply
Loading