Skip to content

Commit

Permalink
Merge pull request #1953 from nicomiguelino/fix-python-linter-job
Browse files Browse the repository at this point in the history
Increases coverage of Python linter
  • Loading branch information
nicomiguelino authored Jul 3, 2024
2 parents 6caf5aa + 6e87511 commit 40da3fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
__license__ = "Dual License: GPLv2 and Commercial License"

import json
import pydbus
import psutil
import re
import os

import traceback
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 0 additions & 5 deletions viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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()

Expand Down

0 comments on commit 40da3fa

Please sign in to comment.