Skip to content

Release v1.0.4#98

Merged
nakkaa merged 64 commits intomasterfrom
release_v1.0.4
Jun 5, 2020
Merged

Release v1.0.4#98
nakkaa merged 64 commits intomasterfrom
release_v1.0.4

Conversation

@nakkaa
Copy link
Copy Markdown
Member

@nakkaa nakkaa commented Jun 5, 2020

#79

@nakkaa nakkaa temporarily deployed to hatbot June 5, 2020 12:21 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 5, 2020

Lint結果だよ!🕊🕊🕊

************* Module create_env
create_env.py:52:0: C0301: Line too long (142/100) (line-too-long)
create_env.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module library.labotter
library/labotter.py:47:0: C0301: Line too long (135/100) (line-too-long)
library/labotter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
library/labotter.py:8:0: C0115: Missing class docstring (missing-class-docstring)
library/labotter.py:20:8: W0702: No exception type(s) specified (bare-except)
library/labotter.py:26:29: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:26:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:26:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:33:32: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:33:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:42:30: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:42:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:42:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:49:12: W0702: No exception type(s) specified (bare-except)
library/labotter.py:55:32: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:55:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:55:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:64:12: W0702: No exception type(s) specified (bare-except)
library/labotter.py:70:34: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:70:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:70:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:80:12: W0702: No exception type(s) specified (bare-except)
library/labotter.py:86:44: W0622: Redefining built-in 'id' (redefined-builtin)
library/labotter.py:86:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:86:4: C0116: Missing function or method docstring (missing-function-docstring)
library/labotter.py:110:11: C0121: Comparison to False should be 'not expr' (singleton-comparison)
library/labotter.py:130:11: C0121: Comparison to True should be just 'expr' (singleton-comparison)
library/labotter.py:134:12: C0103: Variable name "dt" doesn't conform to snake_case naming style (invalid-name)
library/labotter.py:2:0: C0411: standard import "import datetime" should be placed before "import pg8000" (wrong-import-order)
library/labotter.py:3:0: C0411: standard import "from typing import Tuple" should be placed before "import pg8000" (wrong-import-order)
************* Module library.vocabularydb
library/vocabularydb.py:1:0: C0114: Missing module docstring (missing-module-docstring)
library/vocabularydb.py:19:8: W0702: No exception type(s) specified (bare-except)
library/vocabularydb.py:31:12: W0702: No exception type(s) specified (bare-except)
library/vocabularydb.py:44:12: W0702: No exception type(s) specified (bare-except)
library/vocabularydb.py:57:12: W0702: No exception type(s) specified (bare-except)
library/vocabularydb.py:60:26: W0622: Redefining built-in 'id' (redefined-builtin)
library/vocabularydb.py:60:4: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:67:12: W0702: No exception type(s) specified (bare-except)
library/vocabularydb.py:77:33: C0103: Variable name "z" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:80:4: R1705: Unnecessary "else" after "return" (no-else-return)
library/vocabularydb.py:80:7: C0122: Comparison should be len(result) > 0 (misplaced-comparison-constant)
library/vocabularydb.py:86:12: C0103: Variable name "no" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:86:12: W0612: Unused variable 'no' (unused-variable)
library/vocabularydb.py:100:33: C0103: Variable name "vd" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:104:20: W0622: Redefining built-in 'id' (redefined-builtin)
library/vocabularydb.py:104:0: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:109:33: C0103: Variable name "vd" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:114:8: C0103: Variable name "no" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:114:8: W0612: Unused variable 'no' (unused-variable)
library/vocabularydb.py:127:33: C0103: Variable name "vd" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:136:22: W0622: Redefining built-in 'id' (redefined-builtin)
library/vocabularydb.py:136:0: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:141:33: C0103: Variable name "vd" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:145:12: C0103: Variable name "no" doesn't conform to snake_case naming style (invalid-name)
library/vocabularydb.py:145:16: W0612: Unused variable 'text' (unused-variable)
************* Module plugins.hato
plugins/hato.py:24:0: C0301: Line too long (117/100) (line-too-long)
************* Module slackbot_settings
slackbot_settings.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module tests.plugins.test_hato
tests/plugins/test_hato.py:1:0: C0114: Missing module docstring (missing-module-docstring)
tests/plugins/test_hato.py:10:0: C0115: Missing class docstring (missing-class-docstring)
tests/plugins/test_hato.py:12:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:17:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:23:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:31:0: C0115: Missing class docstring (missing-class-docstring)
tests/plugins/test_hato.py:32:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:35:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:41:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:44:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:47:4: C0116: Missing function or method docstring (missing-function-docstring)
tests/plugins/test_hato.py:50:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module tests.test_slackbot_settings
tests/test_slackbot_settings.py:1:0: R0801: Similar lines in 2 files
==library.labotter:8
==library.vocabularydb:7
    def __init__(self):
        try:
            pg8000.paramstyle = 'qmark'
            self.conn = pg8000.connect(
                host=conf.DB_HOST,
                user=conf.DB_USER,
                password=conf.DB_PASSWORD,
                port=conf.DB_PORT,
                ssl_context=conf.DB_SSL,
                database=conf.DB_NAME
            )
        except:
            print('Can not connect to database.')

    def __enter__(self):
        return self
 (duplicate-code)
tests/test_slackbot_settings.py:1:0: R0801: Similar lines in 3 files
==create_env:10
==library.labotter:8
==library.vocabularydb:7
    def __init__(self):
        try:
            pg8000.paramstyle = 'qmark'
            self.conn = pg8000.connect(
                host=conf.DB_HOST,
                user=conf.DB_USER,
                password=conf.DB_PASSWORD,
                port=conf.DB_PORT,
                ssl_context=conf.DB_SSL,
                database=conf.DB_NAME
            )
        except:
            print('Can not connect to database.') (duplicate-code)

-----------------------------------
Your code has been rated at 8.14/10

@nakkaa nakkaa merged commit f43ccb3 into master Jun 5, 2020
@nakkaa nakkaa deleted the release_v1.0.4 branch June 5, 2020 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants