Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including import sorting. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ README - https://www.makeareadme.com/

Semantic Versioning - https://semver.org/

Conventional Commits - https://www.conventionalcommits.org/en/v1.0.0/

### Other References
This program uses emojis that can be referenced here: https://unicode.org/emoji/charts/full-emoji-list.html

Expand Down
2 changes: 1 addition & 1 deletion app/server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import argparse

from stably_discordant_server import utils
from stably_discordant_server.server_bot import LoadBalancerBot
from stably_discordant_server.config import config
from stably_discordant_server.server_bot import LoadBalancerBot

logger = utils.setup_logger()

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ target-version = "py310"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
# Enable isort ('I')
select = ["E4", "E7", "E9", "F", "I"]
ignore = []

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down
13 changes: 7 additions & 6 deletions stably_discordant_server/server_bot.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import json
import asyncio
import logging
import zmq
import discord
import threading
import base64
import json
import logging
import tempfile
import threading
from typing import Any

import discord
import zmq

from stably_discordant_server.config import config
from stably_discordant_server.parser import PromptParser
from typing import Any
from stably_discordant_server.units import WorkUnit

logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions stably_discordant_server/units.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import secrets
from dataclasses import dataclass
from typing import Any
import discord

import secrets
import discord


@dataclass
Expand Down
1 change: 1 addition & 0 deletions stably_discordant_server/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import warnings
from logging.handlers import TimedRotatingFileHandler

from stably_discordant_server.config import config


Expand Down