Add LabGuard to the list of cogs to help fight spambots and other bot methods #702
ci.yml
on: pull_request
ruff
23s
pyright
40s
check-json
54s
unit-tests
1m 4s
FIXME check
9s
Annotations
14 errors and 10 warnings
|
ruff
The process '/opt/hostedtoolcache/ruff/0.15.22/x86_64/ruff' failed with exit code 1
|
|
ruff (W292):
labguard/labguard.py#L189
labguard/labguard.py:189:103: W292 No newline at end of file
help: Add trailing newline
|
|
ruff (I001):
labguard/labguard.py#L1
labguard/labguard.py:1:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|
|
ruff (W292):
labguard/__init__.py#L5
labguard/__init__.py:5:37: W292 No newline at end of file
help: Add trailing newline
|
|
pyright:
labguard/labguard.py#L129
"get_channel" is not a known attribute of "None" (reportOptionalMemberAccess)
|
|
pyright:
labguard/labguard.py#L128
"get_channel" is not a known attribute of "None" (reportOptionalMemberAccess)
|
|
pyright:
labguard/labguard.py#L127
Argument of type "Guild | None" cannot be assigned to parameter "guild" of type "Guild" in function "guild"
Type "Guild | None" is not assignable to type "Guild"
"None" is not assignable to "Guild" (reportArgumentType)
|
|
pyright:
labguard/labguard.py#L105
Cannot access attribute "mention" for class "GroupChannel"
Attribute "mention" is unknown (reportAttributeAccessIssue)
|
|
pyright:
labguard/labguard.py#L105
Cannot access attribute "mention" for class "DMChannel"
Attribute "mention" is unknown (reportAttributeAccessIssue)
|
|
pyright:
labguard/labguard.py#L104
Argument of type "User | Member" cannot be assigned to parameter "member" of type "Member" in function "_ban"
Type "User | Member" is not assignable to type "Member"
"User" is not assignable to "Member" (reportArgumentType)
|
|
pyright:
labguard/labguard.py#L99
Cannot access attribute "roles" for class "User"
Attribute "roles" is unknown (reportAttributeAccessIssue)
|
|
pyright:
labguard/labguard.py#L60
Cannot access attribute "send" for class "CategoryChannel"
Attribute "send" is unknown (reportAttributeAccessIssue)
|
|
pyright:
labguard/labguard.py#L60
Cannot access attribute "send" for class "ForumChannel"
Attribute "send" is unknown (reportAttributeAccessIssue)
|
|
pyright:
labguard/labguard.py#L18
Cannot access attribute "guild_permissions" for class "User"
Attribute "guild_permissions" is unknown (reportAttributeAccessIssue)
|
|
FIXME check:
notes/utils.py#L39
created_at=int(data["date"]), # FIXME: Migrate all stored values to int
|
|
FIXME check:
notes/utils.py#L35
member_id=int(data["member"]), # FIXME: Migrate all stored values to int
|
|
FIXME check:
notes/abstracts.py#L9
# fixme: please use data classes
|
|
FIXME check:
markov/markov.py#L152
# fixme: error handle mode being wrong
|
|
FIXME check:
markov/markov.py#L78
# fixme: what to do if mode is set wrong
|
|
FIXME check:
jail/utils.py#L210
# fixme: this is rly bad, dont use possibly blocking functions in async.
|
|
FIXME check:
jail/jail.py#L103
# fixme: this is rly bad, dont use possibly blocking functions in async.
|
|
FIXME check:
jail/abstracts.py#L60
# fixme: please use data classes
|
|
FIXME check:
jail/abstracts.py#L9
# fixme: please use data classes
|
|
FIXME check:
custom_msg/interactive_session.py#L95
# fixme: your function is rubbish
|