Ruff: Add pylint (#1277)

This commit is contained in:
Christian Clauss
2023-03-13 18:03:15 +01:00
committed by GitHub
parent 37c9db09c6
commit 4c00b1683f
4 changed files with 8 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ def print_div(o):
# All code is wrapped in this run_all function so it optionally executed (called)
# from pyscript when a button is pressed.
def micrograd_demo(*args, **kwargs):
def micrograd_demo(*args, **kwargs): # noqa: PLR0915
"""
Runs the micrograd demo.

View File

@@ -16,6 +16,7 @@ builtins = [
"pyscript",
]
ignore = [
"PLR2004",
"S101",
"S113",
]
@@ -26,6 +27,7 @@ select = [
"E",
"F",
"I",
"PL",
"S",
"UP",
"W",

View File

@@ -79,8 +79,8 @@ def _set_version_info(version_from_interpreter: str):
YYYY.MM.m(m).releaselevel
Year, Month, and Minor should be integers; releaselevel can be any string
"""
global __version__
global version_info
global __version__ # noqa: PLW0603
global version_info # noqa: PLW0603
__version__ = version_from_interpreter

View File

@@ -78,8 +78,7 @@ def pytest_configure(config):
- cd tests/integration; pytest
"""
pytest.fail(msg)
else:
if config.option.dev:
elif config.option.dev:
config.option.headed = True
config.option.no_fake_server = True