Skip to content

Commit c0cb1d9

Browse files
committed
run hatch fmt
1 parent 12dc1d0 commit c0cb1d9

23 files changed

+64
-92
lines changed

.github/workflows/publish-py.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
pip install -r requirements/build-pkg.txt
2323
- name: Build Package
2424
run: |
25-
hatch build
25+
hatch build --clean
2626
- name: Publish to PyPI
2727
env:
2828
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
File renamed without changes.

docs/examples/python/nested-routes.py renamed to docs/examples/python/nested_routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import operator
12
from typing import TypedDict
23

34
from reactpy import component, html, run
@@ -41,7 +42,7 @@ def home():
4142

4243
@component
4344
def all_messages():
44-
last_messages = {", ".join(msg["with"]): msg for msg in sorted(message_data, key=lambda m: m["id"])}
45+
last_messages = {", ".join(msg["with"]): msg for msg in sorted(message_data, key=operator.itemgetter("id"))}
4546

4647
messages = []
4748
for msg in last_messages.values():
File renamed without changes.

docs/examples/python/route-parameters.py renamed to docs/examples/python/route_parameters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import operator
12
from typing import TypedDict
23

34
from reactpy import component, html, run
@@ -39,7 +40,7 @@ def home():
3940

4041
@component
4142
def all_messages():
42-
last_messages = {", ".join(msg["with"]): msg for msg in sorted(message_data, key=lambda m: m["id"])}
43+
last_messages = {", ".join(msg["with"]): msg for msg in sorted(message_data, key=operator.itemgetter("id"))}
4344
messages = []
4445
for msg in last_messages.values():
4546
msg_hyperlink = link(
File renamed without changes.

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ You're now ready to start building your own ReactPy applications with URL routin
1313
=== "components.py"
1414

1515
```python
16-
{% include "../examples/python/basic-routing.py" %}
16+
{% include "../examples/python/basic_routing.py" %}
1717
```

docs/src/learn/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The [`use_search_params`][reactpy_router.use_search_params] hook can be used to
1313
=== "components.py"
1414

1515
```python
16-
{% include "../../examples/python/use-search-params.py" %}
16+
{% include "../../examples/python/use_search_params.py" %}
1717
```
1818

1919
## Use Parameters
@@ -23,5 +23,5 @@ The [`use_params`][reactpy_router.use_params] hook can be used to access route p
2323
=== "components.py"
2424

2525
```python
26-
{% include "../../examples/python/use-params.py" %}
26+
{% include "../../examples/python/use_params.py" %}
2727
```

0 commit comments

Comments
 (0)