8000 Ruff: Add pylint (#1277) · katv7/pyscript@4c00b16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c00b16

Browse files
authored
Ruff: Add pylint (pyscript#1277)
1 parent 37c9db0 commit 4c00b16

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
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):
29+
def micrograd_demo(*args, **kwargs): # noqa: PLR0915
3030
"""
3131
Runs the micrograd demo.
3232

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ builtins = [
1616
"pyscript",
1717
]
1818
ignore = [
19+
"PLR2004",
1920
"S101",
2021
"S113",
2122
]
@@ -26,6 +27,7 @@ select = [
2627
"E",
2728
"F",
2829
"I",
30+
"PL",
2931
"S",
3032
"UP",
3133
"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__
83-
global version_info
82+
global __version__ # noqa: PLW0603
83+
global version_info # noqa: PLW0603
8484

8585
__version__ = version_from_interpreter
8686

pyscriptjs/tests/integration/conftest.py

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

8685

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

0 commit comments

Comments
 (0)
0