Skip to content

Commit

Permalink
chore: add Flake8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Jul 2, 2021
1 parent 10fa4fb commit 715dd38
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[flake8]
max-line-length=110
docstring-convention=all
import-order-style=pycharm
exclude=__pycache__,.cache,
.git, .github,
.md,.svg,.png,
venv,.venv, env, .env,
.yml, .json


ignore=
B311,W503,E226,S311,T000
# Missing Docstrings
D100,D104,D105,D107,
# Docstring Whitespace
D203,D212,D214,D215,
# Docstring Quotes
D301,D302,
# Docstring Content
D400,D401,D402,D404,D405,D406,D407,D408,D409,D410,D411,D412,D413,D414,D416,D417
# Type Annotations
ANN002,ANN003,ANN101,ANN102,ANN204,ANN206
# Whitespace Before
E203
3 changes: 3 additions & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
black==21.6b0
isort==5.9.1
flake8==3.8.4
2 changes: 0 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from discord import Intents
from discord.ext import commands

Expand Down
2 changes: 1 addition & 1 deletion src/cogs/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, bot):

@Cog.listener()
async def on_ready(self):
print(f"Bot is online! Currently running version - v%s" % META["version"])
print("Bot is online! Currently running version - v%s" % META["version"])

@commands.command()
async def ping(self, ctx: Context):
Expand Down
5 changes: 3 additions & 2 deletions src/cogs/standup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ async def edit(self, ctx: Context, *, content: str = None):
if not content:
await ctx.send(
embed=Embed(
description="Content not specified. Reuse the command with all the tasks that you'd like to replace the old tasks with\n",
description="Content not specified.\n\
Reuse the command with all the tasks that you'd like to replace the old tasks with",
color=Color.red(),
)
)
Expand All @@ -104,7 +105,7 @@ async def edit(self, ctx: Context, *, content: str = None):
await self.DB.update_one(record, {"$set": {"data": data}})
else:
embed = Embed(
description="No previous instance or tasks were found for you. A new record has been created with the tasks mentioned.",
description="No previous records found. A new record with these tasks has been created.",
color=Color.gold(),
)
await ctx.create(ctx, content)
Expand Down

0 comments on commit 715dd38

Please sign in to comment.