Skip to content

Commit 4bf3651

Browse files
authored
pre-commit: Upgrade the Python linter ruff (#2370)
1 parent 67fa31e commit 4bf3651

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
- tomli
4141

4242
- repo: https://github.com/astral-sh/ruff-pre-commit
43-
rev: v0.11.8
43+
rev: v0.12.8
4444
hooks:
4545
- id: ruff
4646
exclude: core/tests

core/tests/manual/issue-2302/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from libthree import THREE, clear, SoundPlayer
1111
from libthree import get_renderer, get_ortho_camera
1212
from libthree import get_loading_manager, get_stats_gl
13-
from libthree import lsgeo, line2, linemat, lsgeo
13+
from libthree import line2, linemat, lsgeo
1414
from libfft import BeatSync
1515

1616
from multipyjs import MICROPYTHON, new, call, to_js, create_proxy

core/tests/python/tests/test_js_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_js_module_is_available_on_worker():
3232

3333

3434
@upytest.skip("Worker only.", skip_when=not RUNNING_IN_WORKER)
35-
def test_js_module_is_available_on_worker():
35+
def test_js_module_is_available_on_greeting_worker():
3636
"""
3737
The "hello" function in the example_js_worker_module.js file is available
3838
via the js_modules object while running in a worker.

core/tests/python/tests/test_media.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Tests for the PyScript media module.
33
"""
44

5-
from pyscript import media
65
import upytest
76

87
from pyscript import media

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ skip = "*.js,*.json"
55
[tool.ruff]
66
line-length = 114
77
lint.select = ["C4", "C90", "E", "EM", "F", "PIE", "PYI", "PLC", "Q", "RET", "W"]
8-
lint.ignore = ["E402", "E722", "E731", "E741", "F401", "F704", "F811", "F821"]
8+
lint.ignore = ["E402", "E722", "E731", "E741", "F401", "F704", "F821", "PLC0415"]
99
lint.mccabe.max-complexity = 27

0 commit comments

Comments
 (0)