style(deps): migrated from Prettier to Biome and updated formatting rules

- Removed Prettier configuration files (.prettierignore and .prettierrc) and migrated formatting to Biome.
- Updated Biome configuration from version 2.3.11 to 2.3.12 and changed arrowParentheses rule from 'always' to 'asNeeded'.
- Pinned @biomejs/biome dependency to exact version 2.3.12 in package.json and bun.lock.
- Applied consistent arrow function formatting across 489 files by removing unnecessary parentheses around single parameters.
- Removed blank lines after comment blocks and reorganized imports for consistency across the codebase.
This commit is contained in:
can1357
2026-01-24 04:20:19 +01:00
parent f901befd19
commit 779ca4872b
489 changed files with 1900 additions and 2215 deletions
@@ -42,16 +42,16 @@ describe("python modules", () => {
await writeModule(path.join(cwd, ".pi", "modules"), "gamma.py", "project-pi");
const modules = await discoverPythonModules({ cwd, homeDir });
const names = modules.map((module) => path.basename(module.path));
const names = modules.map(module => path.basename(module.path));
expect(names).toEqual(["alpha.py", "beta.py", "delta.py", "gamma.py"]);
expect(modules.map((module) => ({ name: path.basename(module.path), source: module.source }))).toEqual([
expect(modules.map(module => ({ name: path.basename(module.path), source: module.source }))).toEqual([
{ name: "alpha.py", source: "project" },
{ name: "beta.py", source: "project" },
{ name: "delta.py", source: "user" },
{ name: "gamma.py", source: "project" },
]);
expect(modules.find((module) => module.path.endsWith("alpha.py"))?.content).toContain("project-omp");
expect(modules.find((module) => module.path.endsWith("delta.py"))?.content).toContain("user-pi");
expect(modules.find(module => module.path.endsWith("alpha.py"))?.content).toContain("project-omp");
expect(modules.find(module => module.path.endsWith("delta.py"))?.content).toContain("user-pi");
});
it("loads modules in sorted order with silent execution", async () => {
@@ -72,7 +72,7 @@ describe("python modules", () => {
};
await loadPythonModules(executor, { cwd, homeDir });
expect(calls.map((call) => call.name)).toEqual(["alpha", "beta"]);
expect(calls.map(call => call.name)).toEqual(["alpha", "beta"]);
for (const call of calls) {
expect(call.options).toEqual({ silent: true, storeHistory: false });
}