8000 Revert "Ruff: Add pylint (#1277)" (#1283) · ocdex/pyscript@716254e · GitHub
[go: up one dir, main page]

Skip to content

Commit 716254e

Browse files
authored
Revert "Ruff: Add pylint (pyscript#1277)" (pyscript#1283)
This reverts commit 4c00b16.
1 parent 4c00b16 commit 716254e

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

examples/micrograd_ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def print_div(o):
2626

2727
# All code is wrapped in this run_all function so it optionally executed (called)
2828
# from pyscript when a button is pressed.
29-
def micrograd_demo(*args, **kwargs): # noqa: PLR0915
29+
def micrograd_demo(*args, **kwargs):
3030
"""
3131
Runs the micrograd demo.
3232

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ builtins = [
1616
"pyscript",
1717
]
1818
ignore = [
19-
"PLR2004",
2019
"S101",
2120
"S113",
2221
]
@@ -27,7 +26,6 @@ select = [
2726
"E",
2827
"F",
2928
"I",
30-
"PL",
3129
"S",
3230
"UP",
3331
"W",

pyscriptjs/src/python/pyscript/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def _set_version_info(version_from_interpreter: str):
7979
YYYY.MM.m(m).releaselevel
8080
Year, Month, and Minor should be integers; releaselevel can be any string
8181
"""
82-
global __version__ # noqa: PLW0603
83-
global version_info # noqa: PLW0603
82+
global __version__
83+
global version_info
8484

8585
__version__ = version_from_interpreter
8686

pyscriptjs/tests/integration/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ def pytest_configure(config):
7878
- cd tests/integration; pytest
7979
"""
8080
pytest.fail(msg)
81-
elif config.option.dev:
82-
config.option.headed = True
83-
config.option.no_fake_server = True
81+
else:
82+
if config.option.dev:
83+
config.option.headed = True
84+
config.option.no_fake_server = True
8485

8586

8687
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)
0