Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-abarzua committed Nov 17, 2023
1 parent 30c4999 commit e0cb7c4
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion controller/src/ribot/control/controller_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from abc import ABC, abstractmethod
from enum import Enum
from typing import Any, Optional, Union
import time

import websockets

Expand Down
5 changes: 3 additions & 2 deletions controller/src/ribot/tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def setUpClass(cls) -> None:
print("controller_websocket_port", controller_websocket_port)
print("controller_server_port", controler_server_port)

cls.controller = ArmController(arm_parameters=arm_params,
server_port=controler_server_port, websocket_port=controller_websocket_port)
cls.controller = ArmController(
arm_parameters=arm_params, server_port=controler_server_port, websocket_port=controller_websocket_port
)
cls.controller.start(websocket_server=False, wait=True)

cls.controller.print_status = os.environ.get("CONTROLLER_PRINT_STATUS", "False").upper() == "TRUE"
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/armsimulation/ArmSimulation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const ArmSimulation = () => {
getWebsocketInfo();
}, [websocketPort, websocketHost, simulationUrl, websocketProtocol]);


const srcUrl = `${simulationUrl}/game.html?ip=${websocketHost}&port=${websocketPort}&protocol=${websocketProtocol}`;
console.log(srcUrl);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/controls/ControlPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
import AxisControls from '@/components/controls/AxisControls';
import JointsControls from '@/components/controls/JointsControls';
import InfoHover from '@/components/general/text/InfoHover';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Label } from '@/components/ui/label';
import { Switch } from '@/components/ui/switch';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
import api from '@/utils/api';
import { ControllerStatus } from '@/utils/arm_enums';
import { Bolt } from '@mui/icons-material';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/general/layout/SideNav.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LogoSVG from '@/assets/logo.svg';
import Tutorial from '@/components/general/layout/Tutorial';
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
import { useState } from 'react';
import LogoSVG from '@/assets/logo.svg';

const SideNav = () => {
const [showTutorial, setShowTutorial] = useState(false);
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/utils/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import axios from 'axios';


const api = axios.create({
withCredentials: true,
baseURL: window.localStorage.getItem('backendUrl'),
Expand All @@ -15,6 +14,4 @@ api.interceptors.request.use(
}
);



export default api;
5 changes: 1 addition & 4 deletions frontend/src/utils/instanciator_api.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

import axios from 'axios';

let instanciatorUrl = import.meta.env.VITE_INSTANCIATOR_URL;

console.log("instanciatorUrl: ", instanciatorUrl);
console.log('instanciatorUrl: ', instanciatorUrl);
const instanciatorApi = axios.create({
baseURL: instanciatorUrl,
withCredentials: true,
Expand All @@ -18,6 +17,4 @@ instanciatorApi.interceptors.request.use(
}
);


export default instanciatorApi;

0 comments on commit e0cb7c4

Please sign in to comment.