mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
This reverts commit 4c00b1683f.
This commit is contained in:
@@ -26,7 +26,7 @@ def print_div(o):
|
|||||||
|
|
||||||
# All code is wrapped in this run_all function so it optionally executed (called)
|
# All code is wrapped in this run_all function so it optionally executed (called)
|
||||||
# from pyscript when a button is pressed.
|
# from pyscript when a button is pressed.
|
||||||
def micrograd_demo(*args, **kwargs): # noqa: PLR0915
|
def micrograd_demo(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Runs the micrograd demo.
|
Runs the micrograd demo.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ builtins = [
|
|||||||
"pyscript",
|
"pyscript",
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"PLR2004",
|
|
||||||
"S101",
|
"S101",
|
||||||
"S113",
|
"S113",
|
||||||
]
|
]
|
||||||
@@ -27,7 +26,6 @@ select = [
|
|||||||
"E",
|
"E",
|
||||||
"F",
|
"F",
|
||||||
"I",
|
"I",
|
||||||
"PL",
|
|
||||||
"S",
|
"S",
|
||||||
"UP",
|
"UP",
|
||||||
"W",
|
"W",
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ def _set_version_info(version_from_interpreter: str):
|
|||||||
YYYY.MM.m(m).releaselevel
|
YYYY.MM.m(m).releaselevel
|
||||||
Year, Month, and Minor should be integers; releaselevel can be any string
|
Year, Month, and Minor should be integers; releaselevel can be any string
|
||||||
"""
|
"""
|
||||||
global __version__ # noqa: PLW0603
|
global __version__
|
||||||
global version_info # noqa: PLW0603
|
global version_info
|
||||||
|
|
||||||
__version__ = version_from_interpreter
|
__version__ = version_from_interpreter
|
||||||
|
|
||||||
|
|||||||
@@ -78,9 +78,10 @@ def pytest_configure(config):
|
|||||||
- cd tests/integration; pytest
|
- cd tests/integration; pytest
|
||||||
"""
|
"""
|
||||||
pytest.fail(msg)
|
pytest.fail(msg)
|
||||||
elif config.option.dev:
|
else:
|
||||||
config.option.headed = True
|
if config.option.dev:
|
||||||
config.option.no_fake_server = True
|
config.option.headed = True
|
||||||
|
config.option.no_fake_server = True
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
|
|||||||
Reference in New Issue
Block a user