Skip to content

Commit 04d14c6

Browse files
committed
merged
2 parents 5da8e64 + 7d651c7 commit 04d14c6

File tree

98 files changed

+237
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+237
-185
lines changed

.github/workflows/pytest.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ jobs:
5858
make test
5959
6060
- name: Type check with pyright
61+
if: steps.install.outcome == 'success' && (success() || failure())
62+
run: |
63+
make pyright
64+
65+
- name: Lint with flake8
66+
if: steps.install.outcome == 'success' && (success() || failure())
67+
run: |
68+
make lint
69+
70+
- name: black and isort
6171
if: steps.install.outcome == 'success' && (success() || failure())
6272
run: |
6373
make check
@@ -69,11 +79,6 @@ jobs:
6979
run: |
7080
cd docs && make html
7181
72-
- name: Lint with flake8
73-
if: steps.install.outcome == 'success' && (success() || failure())
74-
run: |
75-
make lint
76-
7782
- name: Run e2e tests
7883
if: steps.install.outcome == 'success' && (success() || failure())
7984
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: 22.3.0
2+
- repo: https://github.com/psf/black
3+
rev: "22.8.0"
44
hooks:
55
- id: black
66
language_version: python3

CHANGELOG.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ All notable changes to Shiny for Python will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [UNRELEASED]
9-
10-
### New features
11-
8+
## [0.2.8] - 2022-10-20
129

1310
### Bug fixes
1411

1512
* `panel_conditional` now works correctly inside of Shiny modules. (Thanks, @gcaligari!) (#336)
1613

17-
### Other changes
14+
* Fix compatibility with Uvicorn 0.19.0 (#357)
1815

1916

2017
## [0.2.7] - 2022-09-27

Makefile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,24 @@ clean-test: ## remove test and coverage artifacts
5151
typings/uvicorn/__init__.pyi:
5252
pyright --createstub uvicorn
5353

54-
check: typings/uvicorn/__init__.pyi ## type check with pyright
54+
pyright: typings/uvicorn/__init__.pyi ## type check with pyright
5555
pyright
5656

57-
check-old: typings/uvicorn/__init__.pyi ## type check with pyright
58-
pyright --pythonversion=3.7
59-
6057
lint: ## check style with flake8
61-
flake8 --show-source --max-line-length=127 shiny tests examples
58+
echo "Checking style with flake8."
59+
flake8 --show-source .
60+
61+
format: ## format code with black and isort
62+
echo "Formatting code with black."
63+
black .
64+
echo "Sorting imports with isort."
65+
isort .
66+
67+
check: pyright lint ## check code quality with pyright, flake8, black and isort
68+
echo "Checking code with black."
69+
black --check .
70+
echo "Sorting imports with isort."
71+
isort --check-only --diff .
6272

6373
test: ## run tests quickly with the default Python
6474
python3 tests/asyncio_prevent.py

docs/sphinxext/pyshinyapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"""
1919

2020
import os
21-
from os.path import dirname, join, abspath
2221
import shutil
22+
from os.path import abspath, dirname, join
2323

24-
from docutils.nodes import SkipNode, Element
24+
from docutils.nodes import Element, SkipNode
2525
from docutils.parsers.rst import directives
26+
from htmltools import css
2627
from sphinx.application import Sphinx
2728
from sphinx.util.docutils import SphinxDirective
28-
from htmltools import css
2929

3030
# Local path to the shinylive/ directory (currently provided by rstudio/shinylive)
3131
# This is only needed for the "self-contained" version of the API reference.

e2e/async/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import time
44

55
import shiny as s
6-
from shiny import ui, reactive
6+
from shiny import reactive, ui
77

88

99
def calc(value: str) -> str:

e2e/async/test_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See https://github.com/microsoft/playwright-python/issues/1532
22
# pyright: reportUnknownMemberType=false
33

4-
from playwright.sync_api import Page, expect
54
from conftest import ShinyAppProc
5+
from playwright.sync_api import Page, expect
66

77

88
def test_async_app(page: Page, local_app: ShinyAppProc) -> None:

e2e/controls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# pyright: reportUnknownMemberType=false
44

5-
from playwright.sync_api import Page, expect, Locator
5+
from playwright.sync_api import Locator, Page, expect
66

77

88
class SimpleInput:

e2e/cpuinfo/test_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# pyright: reportUnknownMemberType=false
22

33
import re
4-
from playwright.sync_api import Page, expect
4+
55
from conftest import ShinyAppProc, create_example_fixture
6+
from playwright.sync_api import Page, expect
67

78
cpuinfo_app = create_example_fixture("cpuinfo")
89

e2e/input_numeric/test_input_numeric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# See https://github.com/microsoft/playwright-python/issues/1532
22
# pyright: reportUnknownMemberType=false
33

4-
from playwright.sync_api import Page, expect
5-
from conftest import ShinyAppProc, create_doc_example_fixture
64
import controls
5+
from conftest import ShinyAppProc, create_doc_example_fixture
6+
from playwright.sync_api import Page, expect
77

88
app = create_doc_example_fixture("input_numeric")
99

0 commit comments

Comments
 (0)