From 6e87511237a9705e837c5fda802f57eed7397ad7 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Tue, 2 Jul 2024 16:08:19 -0700 Subject: [PATCH] chore/fix: increase scope of Python linter --- .github/workflows/python-lint.yaml | 4 ++-- server.py | 3 --- viewer.py | 5 ----- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-lint.yaml b/.github/workflows/python-lint.yaml index 6ebc1ef50..e0fec767d 100644 --- a/.github/workflows/python-lint.yaml +++ b/.github/workflows/python-lint.yaml @@ -33,6 +33,6 @@ jobs: - name: Analyzing the code with flake8 run: | - if [ -n "$(git ls-files '**/*.py')" ]; then - flake8 $(git ls-files '**/*.py') + if [ -n "$(git ls-files '*.py')" ]; then + flake8 $(git ls-files '*.py') fi diff --git a/server.py b/server.py index dde9ec4d8..4d0b7d7d6 100755 --- a/server.py +++ b/server.py @@ -10,9 +10,7 @@ __license__ = "Dual License: GPLv2 and Commercial License" import json -import pydbus import psutil -import re import os import traceback @@ -56,7 +54,6 @@ from lib.auth import authorized from lib.utils import ( download_video_from_youtube, json_dump, is_docker, - get_active_connections, remove_connection, get_balena_supervisor_version, get_node_ip, get_node_mac_address, get_video_duration, diff --git a/viewer.py b/viewer.py index b89a798e5..2f6b58304 100755 --- a/viewer.py +++ b/viewer.py @@ -5,13 +5,11 @@ from builtins import bytes from future import standard_library from builtins import filter -from builtins import str from builtins import range from builtins import object import json import logging import pydbus -import re import sys from datetime import datetime from jinja2 import Template @@ -31,7 +29,6 @@ from lib.errors import SigalrmException from lib.media_player import OMXMediaPlayer from lib.utils import ( - get_active_connections, url_fails, is_balena_app, get_node_ip, @@ -42,8 +39,6 @@ from retry.api import retry_call from settings import settings, LISTEN, PORT, ZmqConsumer -from netifaces import gateways - standard_library.install_aliases()