Skip to content

Commit

Permalink
chore: ruff isort filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 24, 2024
1 parent ec49201 commit 61e1a8b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
8 changes: 2 additions & 6 deletions ftui/ftui.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,21 @@
import argparse
import logging
import sys

from datetime import datetime, timezone, timedelta
from datetime import datetime, timedelta, timezone

import pandas as pd


from textual import work
from textual.app import App
from textual.logging import TextualHandler
from textual.reactive import reactive, var

import ftui.ftui_client as ftuic
import ftui.ftui_helpers as fth

from ftui.ftui_screens import (
DashboardScreen,
HelpScreen,
MainBotScreen,
SettingsScreen,
DashboardScreen,
TradeInfoScreen,
)

Expand Down
8 changes: 2 additions & 6 deletions ftui/ftui_helpers.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import requests

from datetime import datetime

import pandas as pd

import requests
from rich import box
from rich.table import Table
from rich.text import Text

from textual.color import Color
from textual._color_constants import COLOR_NAME_TO_RGB

from textual.color import Color


class FtuiColours(dict[str, Color]):
Expand Down
12 changes: 5 additions & 7 deletions ftui/ftui_screens.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@

from pathlib import Path
from datetime import datetime, timezone
from pathlib import Path

import pandas as pd
import numpy as np

import pandas as pd
from rich.table import Table
from rich.text import Text

from textual import work, on
from textual import on, work
from textual.app import ComposeResult
from textual.containers import Container, Horizontal, Vertical
from textual_plotext import PlotextPlot
from textual.screen import Screen, ModalScreen
from textual.screen import ModalScreen, Screen
from textual.widgets import (
Button,
Checkbox,
Expand All @@ -33,6 +30,7 @@
TabPane,
)
from textual.worker import get_current_worker
from textual_plotext import PlotextPlot

import ftui.ftui_client as ftuic
import ftui.ftui_helpers as fth
Expand Down
2 changes: 1 addition & 1 deletion ftui/widgets/linkable_markdown_viewer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
import webbrowser
from pathlib import Path

from textual import on
from textual.widgets import Markdown
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ extend-select = [
# "RSE", # flake8-raise
# "TCH", # flake8-type-checking
# "PTH", # flake8-use-pathlib
"I", # isort
]

[tool.flake8]
max-line-length = 100
extend-ignore = "E203"
extend-ignore = "E203"

0 comments on commit 61e1a8b

Please sign in to comment.