1
0
Fork 0
mirror of synced 2024-05-07 05:42:46 +12:00

Standardize shebang and coding declaration

Standardizes shebang and coding declarations.

Coding matches what's used by install tools such as pip(x).

Removes a few init files that were not needed.
This commit is contained in:
OMEGARAZER 2022-12-19 18:32:37 -05:00
parent 5d3a539eda
commit 83f45e7f60
No known key found for this signature in database
GPG key ID: D89925310D306E35
69 changed files with 70 additions and 55 deletions

View file

@ -1 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = "2.6.2"

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import sys

View file

@ -1,2 +0,0 @@
#!/usr/bin/env python3
# coding=utf-8

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from abc import ABC, abstractmethod
from typing import Union

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import json
import logging

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
from time import sleep

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import os
import subprocess

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
from argparse import Namespace

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import configparser
import importlib.resources

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
import re

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import hashlib
import logging.handlers

View file

@ -1,4 +1,5 @@
#!/usr/bin/env
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
class BulkDownloaderException(Exception):

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import datetime
import logging
import platform

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import configparser
import logging

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import hashlib
import logging

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import configparser

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
from abc import ABC, abstractmethod

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from typing import Optional

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Optional

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import re
import urllib.parse

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import re

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from abc import ABC, abstractmethod

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
from typing import Optional

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from typing import Optional

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import re

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import re

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import logging
from typing import Optional

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import re

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from typing import Optional

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import itertools
import logging
import re

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import tempfile

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import tempfile

View file

View file

@ -1,2 +0,0 @@
#!/usr/bin/env python3
# coding=utf-8

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import praw
import pytest

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import praw
import pytest

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import configparser
import socket

View file

@ -1,2 +0,0 @@
#!/usr/bin/env python3
# coding=utf-8

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import re
import shutil

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import shutil
from pathlib import Path

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import shutil
from pathlib import Path

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import Mock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import Mock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import praw
import pytest

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import re
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import praw
import pytest

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import Mock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import Mock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import re
from unittest.mock import Mock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import praw
import pytest

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import Mock
import pytest

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from pathlib import Path
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from pathlib import Path
from typing import Iterator

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import os
import re

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import platform
import sys
@ -46,7 +46,7 @@ def do_test_path_equality(result: Path, expected: str) -> bool:
expected = Path(*expected)
else:
expected = Path(expected)
return str(result).endswith(str(expected))
return str(result).endswith(str(expected)) # noqa: FURB123
@pytest.fixture(scope="session")

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
import configparser
from pathlib import Path

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python3
# coding=utf-8
# -*- coding: utf-8 -*-
from unittest.mock import MagicMock