Remove python encoding pragma

This commit is contained in:
jo 2021-05-28 12:25:05 +02:00
parent 813cbac60d
commit b26de72704
96 changed files with 0 additions and 110 deletions

View File

@ -24,7 +24,6 @@ repos:
args: [--fix=lf]
- id: trailing-whitespace
- id: fix-encoding-pragma
- id: requirements-txt-fixer
- id: name-tests-test
# TODO: Remove once the django api uses pytest

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Django's command-line utility for administrative tasks."""
import os

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.db.models.signals import pre_save

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.contrib.auth.models import BaseUserManager

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .authentication import *
from .celery import *
from .countries import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import hashlib
from django.contrib import auth
from django.contrib.auth.models import AbstractBaseUser, Permission

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .files import File
from .smart_blocks import SmartBlock

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .authentication import User
from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .playlists import Playlist
from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
GUEST = "G"
DJ = "H"
PROGRAM_MANAGER = "P"

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth import get_user_model
from .schedule import Schedule

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging
from django.contrib.auth.models import Group, Permission
from .models.user_constants import GUEST, DJ, PROGRAM_MANAGER, USER_TYPES

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from rest_framework.permissions import BasePermission
from django.conf import settings
from .models.user_constants import DJ

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import configparser
import os
from .utils import read_config_file, get_random_string

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.test.runner import DiscoverRunner

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from rest_framework.test import APITestCase
from django.contrib.auth.models import Group
from django.apps import apps

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from django.contrib.auth import get_user_model
from django.contrib.auth.models import AnonymousUser

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from django.contrib.auth.models import AnonymousUser
from django.conf import settings

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.urls import include, path
from rest_framework import routers

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import configparser
import sys
import string

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from django.conf import settings
from django.http import FileResponse

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
WSGI config for api project.

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
import shutil
from setuptools import setup, find_packages

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
import time
import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
# Make the celeryconfig module visible to celery

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from configobj import ConfigObj
from kombu import Exchange, Queue

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import setup
from subprocess import call

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Contains the main application class for airtime_analyzer.
"""
import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# TODO: use an abstract base class (ie. import from abc ...) once we have python >=3.3 that supports @staticmethod with @abstractmethod

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" Analyzes and imports an audio file into the Airtime library.
"""
import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Main CLI entrypoint for the libretime-analyzer app.
"""

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import configparser

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess
import logging
import traceback

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import os
import time

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
import pika
import json

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time
import datetime
import mutagen

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
__author__ = "asantoni"
import subprocess

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess
import logging
from .analyzer import Analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import requests
import json
import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from setuptools import setup
import os

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
import airtime_analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
import os
import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
from airtime_analyzer.analyzer import Analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
import os
import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import datetime
import mutagen

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import *
from airtime_analyzer.playability_analyzer import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from nose.tools import *
from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer

View File

@ -1,3 +1 @@
# -*- coding: utf-8 -*-
__all__ = ["version1"]

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import json
import datetime
import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###############################################################################
# This file holds the implementations for all the API clients.
#

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###############################################################################
# This file holds the implementations for all the API clients.
#

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
from subprocess import call

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest
from api_clients.utils import ApcUrl, UrlBadParam, IncompleteUrl

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest
import json
from mock import MagicMock, patch

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest
import json
from mock import patch, MagicMock

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
import configparser
import unittest

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
import shutil
import os
import sys

View File

@ -1,5 +1,4 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import runpy
# Run the liquidsoap python module

View File

@ -1,5 +1,4 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import runpy
runpy.run_module("pypo", run_name="__main__")

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import traceback

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" Runs Airtime liquidsoap
"""
import argparse

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import os
import sys

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from api_clients import version1 as api_client
import sys

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from configobj import ConfigObj
import telnetlib
import sys

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Python part of radio playout (pypo)
"""

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
FILE = "file"
EVENT = "event"
STREAM_BUFFER_START = "stream_buffer_start"

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread
import urllib.request, urllib.error, urllib.parse
import defusedxml.minidom

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import re
from packaging.version import Version, parse

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import os
import sys
import time

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread
from queue import Empty
from configparser import NoOptionError

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread
from collections import deque
from datetime import datetime

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .pypofetch import PypoFetch
from .telnetliquidsoap import TelnetLiquidsoap

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import traceback
import os

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from datetime import timedelta
from configobj import ConfigObj

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import json
import time

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import telnetlib
from .timeout import ls_timeout
import traceback

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from .pypoliqqueue import PypoLiqQueue
from .telnetliquidsoap import DummyTelnetLiquidsoap, TelnetLiquidsoap

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import threading
from . import pypofetch

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
from subprocess import call

View File

@ -1,5 +1,4 @@
#!/usr/bin/python2 import sys
# -*- coding: utf-8 -*-
import os
import logging
from configobj import ConfigObj

View File

@ -1,5 +1,4 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from configobj import ConfigObj
from api_clients import api_client as apc

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess
import os
import pwd

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess
import os
import pwd

View File

@ -1,5 +1,4 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import ConfigParser
import argparse