Skip to content

Commit

Permalink
Refactor everything to be less stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
gingershaped committed Oct 15, 2024
1 parent e9fb0d9 commit 7110af6
Show file tree
Hide file tree
Showing 12 changed files with 682 additions and 810 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ venv/
docs/build
dist/
.vscode/
/*.py
302 changes: 301 additions & 1 deletion poetry.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ platformdirs = "^3.0.0"
websockets = "^10.4"
aiohttp = "^3.8.3"
backoff = "^2.2.1"
lxml = "^5.3.0"
yarl = "^1.15.2"
pydantic = "^2.9.2"

[tool.poetry.dev-dependencies]
# Remember to update docs/build-requirements.txt!
Expand All @@ -23,6 +26,9 @@ tomli = "^2.0.1"
[tool.poetry.group.dev.dependencies]
black = {version = "^23.1.0", allow-prereleases = true}

[tool.isort]
profile = "black"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
9 changes: 4 additions & 5 deletions sechat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from sechat.server import Server
from sechat.bot import Bot
from sechat.credentials import Credentials
from sechat.room import Room
from sechat.version import __version__
from sechat.events import Event, EventType, MentionEvent, MessageEvent, UnknownEvent, EditEvent, ReplyEvent, DeleteEvent
from sechat.servers import Server

__all__ = ["Server", "Bot", "Room", "Event", "EventType", "MentionEvent", "MessageEvent", "UnknownEvent", "EditEvent", "ReplyEvent", "DeleteEvent"]
__version__ = "2.0.0"
__all__ = ["Credentials", "Room", "Server"]
235 changes: 0 additions & 235 deletions sechat/bot.py

This file was deleted.

Loading

0 comments on commit 7110af6

Please sign in to comment.