Skip to content

Commit cb00a0f

Browse files
committed
Sync workflow and issue template from master
1 parent 0a74961 commit cb00a0f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/lints.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
2727
- name: Pylint
2828
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
3030
run: |
31-
flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503
3231
black . --check
32+
flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503

bot.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,7 @@ async def is_blocked(
639639

640640
blocked_reason = self.blocked_users.get(str(author.id)) or ""
641641

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):
646643
new_reason = self.blocked_users.get(str(author.id))
647644
if new_reason != blocked_reason:
648645
if send_message:

0 commit comments

Comments
 (0)