ci: weekly check. #1756
precommit.yml
on: push
runner / Pre-commit actions
27s
Annotations
3 errors and 6 warnings
runner / Pre-commit actions
Process completed with exit code 1.
|
test_bot.test_polls:
tests/test_bot.py#L508
AssertionError: assert [{'poll_media...ext': 'Two'}}] == [{'poll_media...ext': 'Two'}}]
At index 0 diff: {'poll_media': {'text': 'One', 'emoji': {'name': '1️⃣', 'animated': False, 'available': True}}} != {'poll_media': {'text': 'One', 'emoji': {'name': '1️⃣', 'animated': False}}}
Full diff:
[
{
'poll_media': {
'emoji': {
'animated': False,
+ 'available': True,
'name': '1️⃣',
},
'text': 'One',
},
},
{
'poll_media': {
'emoji': {
'animated': False,
+ 'available': True,
'name': '2️⃣',
},
'text': 'Two',
},
},
]
|
test_bot.test_voice:
tests/test_bot.py#L578
AssertionError: assert 240 != 240
+ where 240 = <Player(Thread-4, stopped daemon 140030263690944)>._sent_payloads
+ where <Player(Thread-4, stopped daemon 140030263690944)> = <ActiveVoiceState: channel=GuildVoice(id=1328491898184405022, name='_test_voice_two-bda5acb', type=<ChannelType.GUILD_VOICE: 2>) guild=Guild(id=1041449294022070292, name='NAFF Test Suite', description=None) volume=0.5 playing=False audio=<AudioVolume: tests/test_audio.mp3>>.player
|
runner / Pre-commit actions
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
runner / Pre-commit actions:
interactions/api/gateway/state.py#L44
Do not perform function call `asyncio.Event` in dataclass defaults
|
runner / Pre-commit actions:
interactions/ext/paginators.py#L43
Do not perform function call `asyncio.Event` in dataclass defaults
|
runner / Pre-commit actions:
interactions/ext/prefixed_commands/command.py#L235
Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
|
runner / Pre-commit actions:
interactions/ext/prefixed_commands/command.py#L527
Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
|
runner / Pre-commit actions:
interactions/models/discord/message.py#L617
`system_content` is too complex (20 > 13)
|