Skip to content

Commit a53b1a3

Browse files
authored
Update python dev dependencies. NFC (#24068)
1 parent 8c49036 commit a53b1a3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

requirements-dev.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
# the codebase and generate docs using Sphinx, not for users of emscripten.
55
# Install with `pip3 install -r requirements-dev.txt`
66

7-
coverage[toml]==5.5
8-
mypy==0.971
9-
ruff==0.9.1
10-
types-requests==2.27.14
11-
unittest-xml-reporting==3.1.0
7+
coverage[toml]==6.5
8+
mypy==1.14
9+
ruff==0.11.4
10+
types-requests==2.32.0.20241016
11+
unittest-xml-reporting==3.2.0
1212

1313
# This version is mentioned in `site/source/docs/site/about.rst`.
1414
# Please keep them in sync.
1515
sphinx==7.1.2
1616
sphinxcontrib-jquery==4.0
1717

1818
# Needed by test/test_sockets.py
19-
websockify==0.10.0
19+
websockify==0.12.0

test/runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def load_test_suites(args, modules, start_at, repeat):
285285
unmatched_test_names.remove(name)
286286
except AttributeError:
287287
pass
288-
if len(names_in_module):
288+
if names_in_module:
289289
loaded_tests = loader.loadTestsFromNames(sorted(names_in_module), m)
290290
tests = flattened_tests(loaded_tests)
291291
suite = suite_for_module(m, tests)

test/test_other.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8506,9 +8506,9 @@ def test(p1, p2, p3, last, expected):
85068506
print(first, second, third)
85078507
assert first == second and second == third
85088508
print('with bad ctor')
8509-
first = test(1000, 2000, 3000, 0xf, 0x58f) # noqa: E221. 2 will succeed
8509+
first = test(1000, 2000, 3000, 0xf, 0x58f) # noqa: E221, 2 will succeed
85108510
second = test(3000, 1000, 2000, 0xf, 0x8f5) # 1 will succedd
8511-
third = test(2000, 3000, 1000, 0xf, 0xf58) # noqa: E221. 0 will succeed
8511+
third = test(2000, 3000, 1000, 0xf, 0xf58) # noqa: E221, 0 will succeed
85128512
print(first, second, third)
85138513
self.assertLess(first, second)
85148514
self.assertLess(second, third)

tools/emprofile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def create_profiling_graph(outfile):
3636
log_files = [f for f in list_files_in_directory(profiler_logs_path) if 'toolchain_profiler.pid_' in f]
3737

3838
all_results = []
39-
if len(log_files):
39+
if log_files:
4040
print(f'Processing {len(log_files)} profile log files in {profiler_logs_path}...')
4141
for f in log_files:
4242
print(f'Processing: {f}')

0 commit comments

Comments
 (0)