Skip to content

Commit

Permalink
change format rule
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Nov 6, 2024
1 parent 167d4de commit 0dbbe33
Show file tree
Hide file tree
Showing 152 changed files with 170 additions and 708 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff]
target-version = "py39"
lint.isort.split-on-trailing-comma = false
lint.select = ["B", "D", "E", "F", "I", "SIM", "W"]
lint.ignore = ["B008", "D203", "D205", "D213", "D401", "D406", "D407", "E501", "F403", "F405", "F541", "SIM115"]
lint.pydocstyle.convention = "google"
Expand Down
9 changes: 2 additions & 7 deletions reflex/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
from reflex.app_mixins import AppMixin, LifespanMixin, MiddlewareMixin
from reflex.compiler import compiler
from reflex.compiler import utils as compiler_utils
from reflex.compiler.compiler import (
ExecutorSafeFunctions,
compile_theme,
)
from reflex.compiler.compiler import ExecutorSafeFunctions, compile_theme
from reflex.components.base.app_wrap import AppWrap
from reflex.components.base.error_boundary import ErrorBoundary
from reflex.components.base.fragment import Fragment
Expand Down Expand Up @@ -79,9 +76,7 @@
window_alert,
)
from reflex.model import Model, get_db_status
from reflex.page import (
DECORATED_PAGES,
)
from reflex.page import DECORATED_PAGES
from reflex.route import (
get_route_args,
replace_brackets_with_keywords,
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/app_wrap.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.base.fragment import Fragment
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/body.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/document.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/error_boundary.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/fragment.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/head.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component, MemoizationLeaf
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/link.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/meta.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/base/script.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Literal, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/core/banner.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ from reflex.components.el.elements.typography import Div
from reflex.components.lucide.icon import Icon
from reflex.components.sonner.toast import Toaster, ToastProps
from reflex.constants.compiler import CompileVars
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.utils.imports import ImportVar
from reflex.vars import VarData
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/core/client_side_routing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/core/clipboard.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, List, Optional, Union, overload

from reflex.components.base.fragment import Fragment
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/core/debounce.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Type, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/core/html.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.el.elements.typography import Div
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
13 changes: 2 additions & 11 deletions reflex/components/core/upload.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,9 @@
from pathlib import Path
from typing import Any, ClassVar, Dict, List, Optional, Union, overload

from reflex.components.component import (
Component,
ComponentNamespace,
MemoizationLeaf,
)
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
from reflex.constants import Dirs
from reflex.event import (
BASE_STATE,
CallableEventSpec,
EventSpec,
EventType,
)
from reflex.event import BASE_STATE, CallableEventSpec, EventSpec, EventType
from reflex.style import Style
from reflex.utils.imports import ImportVar
from reflex.vars import VarData
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/datadisplay/code.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ from typing import Any, ClassVar, Dict, Literal, Optional, Union, overload

from reflex.components.component import Component, ComponentNamespace
from reflex.constants.colors import Color
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.utils.imports import ImportDict
from reflex.vars.base import Var
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/datadisplay/dataeditor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ from typing_extensions import TypedDict

from reflex.base import Base
from reflex.components.component import NoSSRComponent
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.utils.imports import ImportDict
from reflex.utils.serializers import serializer
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/datadisplay/shiki_code_block.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
from reflex.base import Base
from reflex.components.component import Component, ComponentNamespace
from reflex.components.props import NoExtrasAllowedProps
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var
from reflex.vars.function import FunctionStringVar
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/element.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.component import Component
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.el.element import Element
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
6 changes: 1 addition & 5 deletions reflex/components/el/elements/forms.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ from typing import Any, Dict, Optional, Tuple, Union, overload
from jinja2 import Environment

from reflex.components.el.element import Element
from reflex.event import (
BASE_STATE,
EventType,
KeyInputInfo,
)
from reflex.event import BASE_STATE, EventType, KeyInputInfo
from reflex.style import Style
from reflex.utils.imports import ImportDict
from reflex.vars.base import Var
Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/inline.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/media.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ from typing import Any, Dict, Optional, Union, overload

from reflex import ComponentNamespace
from reflex.constants.colors import Color
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/metadata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
from typing import Any, Dict, Optional, Union, overload

from reflex.components.el.element import Element
from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/other.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/scripts.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/sectioning.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/tables.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
5 changes: 1 addition & 4 deletions reflex/components/el/elements/typography.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# ------------------------------------------------------
from typing import Any, Dict, Optional, Union, overload

from reflex.event import (
BASE_STATE,
EventType,
)
from reflex.event import BASE_STATE, EventType
from reflex.style import Style
from reflex.vars.base import Var

Expand Down
Loading

0 comments on commit 0dbbe33

Please sign in to comment.