PenguinCloud / WaddleBot-Core

WaddleBot is a security and fraud detection engineer's run at a super modular bot designed to route chat prompts to serverless scripts (Lambda / OpenWhisk)! It applies a common profile to a user and allows for points, reputation, etc. to follow that user everywhere! It also allows for community / team based events, currency, etc. for a better bot.
1 stars 0 forks source link

Jfish #59

Closed Jfish1219 closed 4 days ago

Jfish1219 commented 4 days ago

test

Summary by Sourcery

This pull request adds a new module 'bouncer' with a main script that includes classes and methods for managing user reputation scores. The script supports operations like querying scores from a CSV database, adjusting scores based on user actions, and ranking users based on their scores.

pep8speaks commented 4 days ago

Hello @Jfish1219! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 4:1: E302 expected 2 blank lines, found 1 Line 11:5: E301 expected 1 blank line, found 0 Line 11:30: E251 unexpected spaces around keyword / parameter equals Line 11:32: E251 unexpected spaces around keyword / parameter equals Line 11:52: E251 unexpected spaces around keyword / parameter equals Line 11:54: E251 unexpected spaces around keyword / parameter equals Line 11:68: E251 unexpected spaces around keyword / parameter equals Line 11:80: E501 line too long (98 > 79 characters) Line 11:82: E251 unexpected spaces around keyword / parameter equals Line 11:84: E251 unexpected spaces around keyword / parameter equals Line 15:29: W291 trailing whitespace Line 16:1: E302 expected 2 blank lines, found 0 Line 20:1: W293 blank line contains whitespace Line 22:5: E303 too many blank lines (2) Line 22:26: E231 missing whitespace after ',' Line 26:1: W293 blank line contains whitespace Line 27:1: W293 blank line contains whitespace Line 28:1: W293 blank line contains whitespace Line 29:1: W293 blank line contains whitespace Line 30:5: E303 too many blank lines (4) Line 31:48: W291 trailing whitespace Line 47:5: E301 expected 1 blank line, found 0 Line 47:22: E231 missing whitespace after ',' Line 47:37: E231 missing whitespace after ',' Line 47:46: E251 unexpected spaces around keyword / parameter equals Line 47:48: E251 unexpected spaces around keyword / parameter equals Line 55:24: E111 indentation is not a multiple of four Line 55:27: E271 multiple spaces after keyword Line 56:29: E117 over-indented Line 61:5: E301 expected 1 blank line, found 0 Line 66:1: W293 blank line contains whitespace Line 68:1: E303 too many blank lines (3) Line 69:3: E111 indentation is not a multiple of four Line 70:3: E111 indentation is not a multiple of four Line 71:3: E111 indentation is not a multiple of four Line 71:21: W291 trailing whitespace Line 73:1: W293 blank line contains whitespace Line 73:1: W391 blank line at end of file

sourcery-ai[bot] commented 4 days ago

Reviewer's Guide by Sourcery

This pull request introduces a new module bouncer with a main Python file that implements classes and methods for managing user reputation scores. The dbconnect class handles database connection details, while the Rep_Manager class provides methods to query and adjust user scores based on different actions. The module currently supports reading scores from a CSV file.

File-Level Changes

Files Changes
modules/bouncer/main.py Introduced a new module for managing user reputation scores with database connectivity and score adjustment methods.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.