From 5c5fde0de8497c6471d7750fac026419b65dfab6 Mon Sep 17 00:00:00 2001 From: Dan Lapid Date: Wed, 2 Oct 2024 17:48:01 +0000 Subject: [PATCH] format --- src/pyodide/BUILD.bazel | 4 ++-- src/workerd/server/tests/python/BUILD.bazel | 4 ++-- src/workerd/server/tests/python/pool-test.c++ | 23 ++++++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/pyodide/BUILD.bazel b/src/pyodide/BUILD.bazel index ab2fd4a4bae2..7f1d43216eca 100644 --- a/src/pyodide/BUILD.bazel +++ b/src/pyodide/BUILD.bazel @@ -128,8 +128,8 @@ REPLACEMENTS = [ ], [ "(shouldRunNow)", - "(Module.noInitialRun)" - ] + "(Module.noInitialRun)", + ], ] PYODIDE_BUCKET_MODULE = json.encode({ diff --git a/src/workerd/server/tests/python/BUILD.bazel b/src/workerd/server/tests/python/BUILD.bazel index ac4cb8fbcbcd..54d5d0cf2453 100644 --- a/src/workerd/server/tests/python/BUILD.bazel +++ b/src/workerd/server/tests/python/BUILD.bazel @@ -1,9 +1,9 @@ load("@bazel_skylib//rules:copy_file.bzl", "copy_file") +load("//:build/kj_test.bzl", "kj_test") load("//:build/pyodide_bucket.bzl", "PYODIDE_IMPORTS_TO_TEST") load("//:build/wd_test.bzl", "wd_test") load("//src/workerd/server/tests/python:import_tests.bzl", "gen_import_tests") load("//src/workerd/server/tests/python:py_wd_test.bzl", "py_wd_test") -load("//:build/kj_test.bzl", "kj_test") # pyodide_dev.capnp.bin represents a custom pyodide version "dev" that is generated # at build time using the latest contents of the src/pyodide directory. @@ -64,7 +64,7 @@ gen_import_tests(PYODIDE_IMPORTS_TO_TEST) kj_test( src = "pool-test.c++", deps = [ - "//src/workerd/jsg", "//src/workerd/api:pyodide", + "//src/workerd/jsg", ], ) diff --git a/src/workerd/server/tests/python/pool-test.c++ b/src/workerd/server/tests/python/pool-test.c++ index 746408272d7e..b9e62d3cfe12 100644 --- a/src/workerd/server/tests/python/pool-test.c++ +++ b/src/workerd/server/tests/python/pool-test.c++ @@ -1,18 +1,20 @@ -#include -#include -#include -#include "workerd/jsg/observer.h" +#include "workerd/api/pyodide/pyodide.h" #include "workerd/io/observer.h" -#include -#include -#include "workerd/jsg/url.h" #include "workerd/jsg/jsg.h" -#include "workerd/api/pyodide/pyodide.h" +#include "workerd/jsg/observer.h" +#include "workerd/jsg/url.h" + +#include +#include +#include +#include +#include + +#include #include +#include #include #include -#include -#include using namespace workerd; using jsg::CompilationObserver; @@ -88,7 +90,6 @@ private: CompatibilityFlags::Reader& flags; }; - // This just creates a bundle with code that has our Counter class, essentially this should signify // that we can create a class and hold a reference to it. kj::Own initializeBundleModuleRegistry(const jsg::ResolveObserver& observer) {