Skip to content

Commit

Permalink
chore: set line length for black the same as ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Nov 1, 2023
1 parent 6ac4f36 commit 9e8334b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
21 changes: 5 additions & 16 deletions docs/showcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

lorum_ipsum = """Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."""

items = [
v.ListItem(children=[v.ListItemTitle(children=[f"Click me {i}"])])
for i in range(1, 5)
]
items = [v.ListItem(children=[v.ListItemTitle(children=[f"Click me {i}"])]) for i in range(1, 5)]

menu = v.Menu(
offset_y=True,
Expand All @@ -29,9 +26,7 @@
{
"name": "activator",
"variable": "x",
"children": v.Btn(
v_on="x.on", color="success", dark=True, children=["Open dialog"]
),
"children": v.Btn(v_on="x.on", color="success", dark=True, children=["Open dialog"]),
}
],
children=[
Expand Down Expand Up @@ -60,12 +55,8 @@
v.Row(
children=[
v.Btn(class_="ma-2", color="primary", children=["button"]),
v.Btn(
class_="ma-2", color="primary", outlined=True, children=["button"]
),
v.Btn(
class_="ma-2", color="primary", rounded=True, children=["button"]
),
v.Btn(class_="ma-2", color="primary", outlined=True, children=["button"]),
v.Btn(class_="ma-2", color="primary", rounded=True, children=["button"]),
v.Btn(
class_="ma-2",
color="primary",
Expand All @@ -87,9 +78,7 @@
),
v.Row(
children=[
v.Btn(
class_="ma-2", color="primary", x_small=True, children=["button"]
),
v.Btn(class_="ma-2", color="primary", x_small=True, children=["button"]),
v.Btn(
class_="ma-2",
color="primary",
Expand Down
4 changes: 1 addition & 3 deletions generate_source/generate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ def property_to_snake_case(name):

def make_grid_props(prefix, start):
return [
(f"{prefix}{size}{columns}", boolean_type)
for size in sizes
for columns in range(start, 13)
(f"{prefix}{size}{columns}", boolean_type) for size in sizes for columns in range(start, 13)
]


Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ ignore = [
line-length = 100
select = ["E", "W", "F", "Q", "I"]

[tool.black]
line-length = 100

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
4 changes: 1 addition & 3 deletions tests/ui/button_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from IPython.display import display


def test_button(
ipywidgets_runner, page_session: playwright.sync_api.Page, assert_solara_snapshot
):
def test_button(ipywidgets_runner, page_session: playwright.sync_api.Page, assert_solara_snapshot):
def kernel_code():
import ipyvuetify as v

Expand Down

0 comments on commit 9e8334b

Please sign in to comment.