mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
🧹 Run reformat code on the whole repository
This commit is contained in:
parent
d3b256dc4c
commit
2b9c128c9a
6 changed files with 359 additions and 360 deletions
|
@ -26,7 +26,6 @@ author = 'Stefano Pigozzi'
|
|||
# The full version, including alpha/beta/rc tags
|
||||
release = pkg_resources.get_distribution("royalnet_telethon").version
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
|
@ -64,7 +63,6 @@ html_theme = 'sphinx_rtd_theme'
|
|||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
|
||||
# -- Intersphinx options -----------------------------------------------------
|
||||
|
||||
intersphinx_mapping = {
|
||||
|
|
10
poetry.lock
generated
10
poetry.lock
generated
|
@ -257,7 +257,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
|
|||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "6.2.5"
|
||||
version = "6.2.3"
|
||||
description = "pytest: simple powerful testing with Python"
|
||||
category = "dev"
|
||||
optional = false
|
||||
|
@ -269,7 +269,7 @@ attrs = ">=19.2.0"
|
|||
colorama = { version = "*", markers = "sys_platform == \"win32\"" }
|
||||
iniconfig = "*"
|
||||
packaging = "*"
|
||||
pluggy = ">=0.12,<2.0"
|
||||
pluggy = ">=0.12,<1.0.0a1"
|
||||
py = ">=1.8.2"
|
||||
toml = "*"
|
||||
|
||||
|
@ -530,7 +530,7 @@ multidict = ">=4.0"
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.8"
|
||||
content-hash = "a91e69874425c00560ea9d82dca3b32339e5002d6e7e1981292d869cb51414e4"
|
||||
content-hash = "e58dfc5810fca4d482db91d588c9be4af12f3dfee4b7df4c4dfa872aff074bb5"
|
||||
|
||||
[metadata.files]
|
||||
aiohttp = [
|
||||
|
@ -819,8 +819,8 @@ pyparsing = [
|
|||
{ file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1" },
|
||||
]
|
||||
pytest = [
|
||||
{file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"},
|
||||
{file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"},
|
||||
{ file = "pytest-6.2.3-py3-none-any.whl", hash = "sha256:6ad9c7bdf517a808242b998ac20063c41532a570d088d77eec1ee12b0b5574bc" },
|
||||
{ file = "pytest-6.2.3.tar.gz", hash = "sha256:671238a46e4df0f3498d1c3270e5deb9b32d25134c99b7d75370a68cfbe9b634" },
|
||||
]
|
||||
pytest-asyncio = [
|
||||
{ file = "pytest-asyncio-0.15.1.tar.gz", hash = "sha256:2564ceb9612bbd560d19ca4b41347b54e7835c2f792c504f698e05395ed63f6f" },
|
||||
|
|
|
@ -2,4 +2,3 @@
|
|||
A :mod:`telethon` -based implementation of the PDA class of the :mod:`royalnet.engineer` module.
|
||||
"""
|
||||
|
||||
from .pda import *
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
|
||||
import async_property as ap
|
||||
import discord
|
||||
import discord as d
|
||||
import royalnet.engineer.bullet.contents as co
|
||||
import royalnet.royaltyping as t
|
||||
|
||||
import royalnet.engineer.bullet.contents as co
|
||||
import discord as d
|
||||
import async_property as ap
|
||||
import datetime
|
||||
from royalnet_discordpy.formatting import ds_markdown_format
|
||||
|
||||
|
||||
|
@ -45,7 +46,8 @@ class DiscordMessage(co.Message):
|
|||
if files is None:
|
||||
files = []
|
||||
|
||||
msg = await self._msg.reply(content=ds_markdown_format(text) if text else None, files=[discord.File(file) for file in files])
|
||||
msg = await self._msg.reply(content=ds_markdown_format(text) if text else None,
|
||||
files=[discord.File(file) for file in files])
|
||||
return DiscordMessage(msg=msg)
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import async_property as ap
|
||||
import discord as d
|
||||
import royalnet.engineer as engi
|
||||
import async_property as ap
|
||||
|
||||
from .contents import DiscordMessage
|
||||
|
||||
|
|
|
@ -4,13 +4,13 @@ The PDA ("main" class) for the :mod:`royalnet_telethon` frontend.
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import discord
|
||||
import royalnet.royaltyping as t
|
||||
|
||||
import logging
|
||||
import royalnet.engineer as engi
|
||||
import enum
|
||||
import logging
|
||||
|
||||
import discord
|
||||
import discord as d
|
||||
import royalnet.engineer as engi
|
||||
import royalnet.royaltyping as t
|
||||
|
||||
from .bullet.projectiles import DiscordMessageReceived, DiscordMessageEdited, DiscordMessageDeleted
|
||||
|
||||
|
|
Loading…
Reference in a new issue