Skip to content

Commit

Permalink
Fix W0611
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Mar 5, 2024
1 parent cc52de8 commit 6661f0a
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# W0108: Lambda may not be necessary
# W0511: TODO
# E1136: Value is unsubscriptable
# W0611: Unused import
# C0103: Variable name doesn't conform to naming style
# R1732: Consider using with
# W1514: Using open without explicitly specifying an encoding
Expand Down Expand Up @@ -73,7 +72,7 @@
max-line-length = 120
disable = C0114, C0115, C0116, R0903, C0415, R1705, R0913, W1203, R1729, E1120, E1123, C0209, R1710, W0621, C0121,
W0614, W0401, W1202, C0117, W0718, R0205, R0402, R0914, R1725, R1735, C0411, W0237, W0702, W0223, W0613,
W0108, R0912, R0911, W0511, E1136, R0902, W0611, C0412, C0103, C0301, R1732, R0915, W1514,
W0108, R0912, R0911, W0511, E1136, R0902, C0412, C0103, C0301, R1732, R0915, W1514,
E1101, R1734, W1201,
E0401, W0212, R0904, W0101,
C0302, E0110, W0603, R0401, C0303, W4902
1 change: 0 additions & 1 deletion pros/cli/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import click
import pros.conductor as c
from .common import PROSGroup, default_options, project_option, pros_root
from pros.ga.analytics import analytics

@pros_root
def interactive_cli():
Expand Down
3 changes: 1 addition & 2 deletions pros/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from pros.common.utils import get_version, logger
from pros.ga.analytics import analytics

import jsonpickle
import pros.cli.build
import pros.cli.conductor
import pros.cli.conductor_utils
Expand Down Expand Up @@ -102,7 +101,7 @@ def use_analytics(ctx: click.Context, param, value):
analytics.set_use(touse)
ui.echo(f'Analytics usage set to: {analytics.useAnalytics}')
ctx.exit(0)

def use_early_access(ctx: click.Context, param, value):
if value is None:
return
Expand Down
1 change: 0 additions & 1 deletion pros/cli/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def terminal(port: str, backend: str, **kwargs):
Note: share backend is not yet implemented.
"""
analytics.send("terminal")
from pros.serial.devices.vex.v5_user_device import V5UserDevice
from pros.serial.terminal import Terminal
is_v5_user_joystick = False
if port == 'default':
Expand Down
1 change: 0 additions & 1 deletion pros/cli/upload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
from unicodedata import name

import pros.common.ui as ui
import pros.conductor as c
Expand Down
2 changes: 0 additions & 2 deletions pros/conductor/conductor.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import errno
import os.path
import shutil
from enum import Enum
from pathlib import Path
import sys
from typing import *
import re

import click
from semantic_version import Spec, Version
Expand Down
3 changes: 0 additions & 3 deletions pros/ga/analytics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import json
from os import path
import uuid
import requests
from requests_futures.sessions import FuturesSession
import random
from concurrent.futures import as_completed
Expand Down
1 change: 0 additions & 1 deletion pros/serial/devices/vex/v5_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,6 @@ def get_device_status(self):

@retries
def get_system_status(self) -> SystemStatus:
from semantic_version import Version
logger(__name__).debug('Sending ext 0x22 command')
version = self.query_system_version()
if (version.product == V5Device.SystemVersion.Product.BRAIN and version.system_version in Spec('<1.0.13')) or \
Expand Down

0 comments on commit 6661f0a

Please sign in to comment.