1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

🧹 Run reformat code on the whole repository

This commit is contained in:
Steffo 2022-03-06 17:48:16 +01:00
parent 8dbbedbec6
commit d20615fae2
Signed by: steffo
GPG key ID: 6965406171929D01
7 changed files with 268 additions and 270 deletions

View file

@ -26,7 +26,6 @@ author = 'Stefano Pigozzi'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = pkg_resources.get_distribution("royalnet_telethon").version release = pkg_resources.get_distribution("royalnet_telethon").version
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be # 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". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ['_static']
# -- Intersphinx options ----------------------------------------------------- # -- Intersphinx options -----------------------------------------------------
intersphinx_mapping = { intersphinx_mapping = {

16
poetry.lock generated
View file

@ -223,7 +223,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]] [[package]]
name = "pytest" name = "pytest"
version = "6.2.5" version = "6.2.3"
description = "pytest: simple powerful testing with Python" description = "pytest: simple powerful testing with Python"
category = "dev" category = "dev"
optional = false optional = false
@ -235,7 +235,7 @@ attrs = ">=19.2.0"
colorama = { version = "*", markers = "sys_platform == \"win32\"" } colorama = { version = "*", markers = "sys_platform == \"win32\"" }
iniconfig = "*" iniconfig = "*"
packaging = "*" packaging = "*"
pluggy = ">=0.12,<2.0" pluggy = ">=0.12,<1.0.0a1"
py = ">=1.8.2" py = ">=1.8.2"
toml = "*" toml = "*"
@ -465,7 +465,7 @@ sqlcipher = ["sqlcipher3-binary"]
[[package]] [[package]]
name = "telethon" name = "telethon"
version = "1.24.0" version = "1.21.1"
description = "Full-featured Telegram client library for Python 3" description = "Full-featured Telegram client library for Python 3"
category = "main" category = "main"
optional = false optional = false
@ -510,7 +510,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.8" python-versions = "^3.8"
content-hash = "a1504e304db7500e911a054aa032a76ad944038c7c385fb34f93928ac737a370" content-hash = "e9feefc59167de8b8c30181b848ec512717b8d2a072046c19d335e3050e01821"
[metadata.files] [metadata.files]
alabaster = [ alabaster = [
@ -731,8 +731,8 @@ pyparsing = [
{ file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1" }, { file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1" },
] ]
pytest = [ pytest = [
{file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"}, { file = "pytest-6.2.3-py3-none-any.whl", hash = "sha256:6ad9c7bdf517a808242b998ac20063c41532a570d088d77eec1ee12b0b5574bc" },
{file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"}, { file = "pytest-6.2.3.tar.gz", hash = "sha256:671238a46e4df0f3498d1c3270e5deb9b32d25134c99b7d75370a68cfbe9b634" },
] ]
pytest-asyncio = [ pytest-asyncio = [
{ file = "pytest-asyncio-0.15.0.tar.gz", hash = "sha256:5d9f9f64ab5ed41dc90e4d18dcbf0a74cdaac3d3dc30eb1cc1e49246dc382f3c" }, { file = "pytest-asyncio-0.15.0.tar.gz", hash = "sha256:5d9f9f64ab5ed41dc90e4d18dcbf0a74cdaac3d3dc30eb1cc1e49246dc382f3c" },
@ -827,8 +827,8 @@ sqlalchemy = [
{ file = "SQLAlchemy-1.4.9.tar.gz", hash = "sha256:f31757972677fbe9132932a69a4f23db59187a072cc26427f56a3082b46b6dac" }, { file = "SQLAlchemy-1.4.9.tar.gz", hash = "sha256:f31757972677fbe9132932a69a4f23db59187a072cc26427f56a3082b46b6dac" },
] ]
telethon = [ telethon = [
{file = "Telethon-1.24.0-py3-none-any.whl", hash = "sha256:04fdc5fa4ed3e886e6ecf4bad79205ab8880c6aefbd42c29c89c689a502aa816"}, { file = "Telethon-1.21.1-py3-none-any.whl", hash = "sha256:df643fc988708ad16d16de834ffa12ad4bfa3f956473d835c8158e2283b885ea" },
{file = "Telethon-1.24.0.tar.gz", hash = "sha256:818cb61281ed3f75ba4da9b68cb69486bed9474d2db4e0aa16e482053117452c"}, { file = "Telethon-1.21.1.tar.gz", hash = "sha256:993c837ef745addf972a27d7bfba0ce518a2863d1a50e0737255b764d23e0ef2" },
] ]
toml = [ toml = [
{ file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" }, { file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" },

View file

@ -2,4 +2,3 @@
A :mod:`telethon` -based implementation of the PDA class of the :mod:`royalnet.engineer` module. A :mod:`telethon` -based implementation of the PDA class of the :mod:`royalnet.engineer` module.
""" """
from .pda import *

View file

@ -1,13 +1,14 @@
from __future__ import annotations from __future__ import annotations
import royalnet.royaltyping as t
import royalnet.engineer.bullet.casing as c
import royalnet.engineer.bullet.contents as co
import telethon as tt
import telethon.tl.types as tlt
import telethon.tl.custom as tlc
import async_property as ap
import datetime import datetime
import async_property as ap
import royalnet.engineer.bullet.contents as co
import royalnet.royaltyping as t
import telethon as tt
import telethon.tl.custom as tlc
import telethon.tl.types as tlt
from royalnet_telethon.formatting import tg_html_format from royalnet_telethon.formatting import tg_html_format

View file

@ -1,12 +1,11 @@
import royalnet.royaltyping as t
import royalnet.engineer.bullet.casing as c
import royalnet.engineer.bullet.projectiles as p
import telethon as tt
import telethon.tl.custom as tlc
import async_property as ap
import datetime import datetime
import async_property as ap
import royalnet.engineer.bullet.casing as c
import royalnet.engineer.bullet.projectiles as p
import royalnet.royaltyping as t
import telethon as tt
import telethon.tl.custom as tlc
__all__ = ( __all__ = (
"t", "t",

View file

@ -1,6 +1,6 @@
from __future__ import annotations from __future__ import annotations
from ._imports import *
from ._imports import *
from ..contents.__init__ import TelegramMessage from ..contents.__init__ import TelegramMessage

View file

@ -3,13 +3,14 @@ The PDA ("main" class) for the :mod:`royalnet_telethon` frontend.
""" """
from __future__ import annotations from __future__ import annotations
import royalnet.royaltyping as t
import enum
import logging import logging
import royalnet.engineer as engi import royalnet.engineer as engi
import royalnet.royaltyping as t
import telethon as tt import telethon as tt
import telethon.tl.custom as tlc import telethon.tl.custom as tlc
import enum
from .bullet.projectiles.message import TelegramMessageReceived, TelegramMessageEdited, TelegramMessageDeleted from .bullet.projectiles.message import TelegramMessageReceived, TelegramMessageEdited, TelegramMessageDeleted