Closed Jfish1219 closed 4 days ago
Hello @Jfish1219! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
modules/bouncer/main.py
: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
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.
Files | Changes |
---|---|
modules/bouncer/main.py |
Introduced a new module for managing user reputation scores with database connectivity and score adjustment methods. |
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.