File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 26
26
run : bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
27
27
- name : Pylint
28
28
run : pylint ./bot.py cogs/*.py core/*.py --disable=import-error --exit-zero -r y
29
- - name : Flake8 and black lint
29
+ - name : Black and flake8
30
30
run : |
31
- flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503
32
31
black . --check
32
+ flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503
Original file line number Diff line number Diff line change @@ -639,10 +639,7 @@ async def is_blocked(
639
639
640
640
blocked_reason = self .blocked_users .get (str (author .id )) or ""
641
641
642
- if (
643
- not self .check_account_age (author )
644
- or not self .check_guild_age (author )
645
- ):
642
+ if not self .check_account_age (author ) or not self .check_guild_age (author ):
646
643
new_reason = self .blocked_users .get (str (author .id ))
647
644
if new_reason != blocked_reason :
648
645
if send_message :
You can’t perform that action at this time.
0 commit comments