Skip to content

Commit

Permalink
Run yarn format (#5657)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaliC authored Sep 12, 2024
1 parent 0778313 commit a52de80
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion torchci/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, ErrorInfo, ReactNode } from "react";
import { Component, ErrorInfo, ReactNode } from "react";

interface Props {
children: ReactNode;
Expand Down
1 change: 0 additions & 1 deletion torchci/components/JobArtifact.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Artifact } from "lib/types";
import React from "react";

export default function JobArtifact({
name,
Expand Down
1 change: 0 additions & 1 deletion torchci/components/JobLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dayjs from "dayjs";
import { useSession } from "next-auth/react";
import React from "react";
import useSWR from "swr";
import { isFailure } from "../lib/JobClassifierUtil";
import { isFailedJob, transformJobName } from "../lib/jobUtils";
Expand Down
1 change: 0 additions & 1 deletion torchci/components/JobTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { JobData } from "../lib/types";
import JobLinks from "./JobLinks";
import LogViewer from "./LogViewer";
Expand Down
1 change: 0 additions & 1 deletion torchci/components/LoggedInMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { signOut, useSession } from "next-auth/react";
import React from "react";
import styles from "./LoginSection.module.css";

export default function LoggedInMenu() {
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/LoginSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { signIn, useSession } from "next-auth/react";
import React, { useState } from "react";
import { useState } from "react";
import LoggedInMenu from "./LoggedInMenu";
import styles from "./LoginSection.module.css";

Expand Down
1 change: 0 additions & 1 deletion torchci/components/PageSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { formatHudUrlForRoute, HudParams } from "lib/types";
import Link from "next/link";
import React from "react";

export default function PageSelector({
params,
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/ReproductionCommand.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { JobData } from "../lib/types";
import CopyLink from "./CopyLink";
import { getTestName } from "./JobLinks";
Expand Down
1 change: 0 additions & 1 deletion torchci/components/TestInsights.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { JobData } from "../lib/types";

// The following jobs are not supported at the moment because neither the monitoring
Expand Down
2 changes: 1 addition & 1 deletion torchci/lib/bot/pytorchBotHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { getHelp, getParser } from "./cliParser";
import { cherryPickClassifications } from "./Constants";
import PytorchBotLogger from "./pytorchbotLogger";
import {
hasWritePermissions as _hasWP,
addLabels,
CachedConfigTracker,
hasApprovedPullRuns,
hasWritePermissions as _hasWP,
isFirstTimeContributor,
isPyTorchOrg,
isPyTorchPyTorch,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useRouter } from "next/router";
import React from "react";

export default function Page() {
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion torchci/pages/[repoOwner]/[repoName]/pull/[prNumber].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSetTitle } from "components/DynamicTitle";
import ErrorBoundary from "components/ErrorBoundary";
import { PRData } from "lib/types";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import useSWR from "swr";

const fetcher = (url: string) => fetch(url).then((res) => res.json());
Expand Down
2 changes: 1 addition & 1 deletion torchci/pages/benchmark/[suite]/[compiler]/[[...page]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { fetcher } from "lib/GeneralUtils";
import { RocksetParam } from "lib/rockset";
import { BranchAndCommit, CompilerPerformanceData } from "lib/types";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import useSWR from "swr";
import { TimeRangePicker } from "../../../metrics";

Expand Down
2 changes: 1 addition & 1 deletion torchci/pages/benchmark/compilers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { fetcher } from "lib/GeneralUtils";
import { RocksetParam } from "lib/rockset";
import { BranchAndCommit } from "lib/types";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import useSWR from "swr";
import { TimeRangePicker } from "../metrics";

Expand Down
2 changes: 1 addition & 1 deletion torchci/pages/benchmark/torchao.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { fetcher } from "lib/GeneralUtils";
import { RocksetParam } from "lib/rockset";
import { BranchAndCommit } from "lib/types";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import useSWR from "swr";
import { TimeRangePicker } from "../metrics";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { JobAnnotation, JobData } from "lib/types";
import _ from "lodash";
import { useRouter } from "next/router";
import { TimeRangePicker } from "pages/metrics";
import React, { useState } from "react";
import { useState } from "react";
import useSWR from "swr";

function SimilarFailedJobs({
Expand Down
1 change: 0 additions & 1 deletion torchci/pages/login_test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { signIn, signOut, useSession } from "next-auth/react";
import React from "react";

export default function MePage() {
const session = useSession();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { approximateFailureByTypePercent } from "lib/metricUtils";
import { RocksetParam } from "lib/rockset";
import { JobAnnotation } from "lib/types";
import { useRouter } from "next/router";
import React, { useCallback, useState } from "react";
import { useCallback, useState } from "react";
import useSWR from "swr";
import { TimeRangePicker } from "../../../metrics";

Expand Down
2 changes: 1 addition & 1 deletion torchci/pages/torchbench/userbenchmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { TablePanelWithData } from "components/metrics/panels/TablePanel";
import dayjs from "dayjs";
import { fetcher } from "lib/GeneralUtils";
import { RocksetParam } from "lib/rockset";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import useSWR from "swr";

const queryCollection = "torchbench";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ReactECharts from "echarts-for-react";
import { fetcher } from "lib/GeneralUtils";
import { RocksetParam } from "lib/rockset";
import { useRouter } from "next/router";
import React, { useCallback, useState } from "react";
import { useCallback, useState } from "react";
import useSWR from "swr";
import { TimeRangePicker, TtsPercentilePicker } from "../../../../metrics";

Expand Down

0 comments on commit a52de80

Please sign in to comment.