Remove unused imports (#359)

This commit is contained in:
0xMRTT 2022-09-07 18:01:01 +02:00 committed by GitHub
commit de359b64bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 38 deletions

View file

@ -1,9 +1,7 @@
from gi.repository import Gtk, Gdk, Adw from gi.repository import Gtk, Adw
from .constants import rootdir from .constants import rootdir
from .modules.utils import to_slug_case, buglog from .modules.utils import to_slug_case, buglog
import json
import os
@Gtk.Template(resource_path=f"{rootdir}/ui/builtin_preset_row.ui") @Gtk.Template(resource_path=f"{rootdir}/ui/builtin_preset_row.ui")

View file

@ -16,10 +16,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
import json
import os import os
from gi.repository import Gtk, Gdk, Adw from gi.repository import Gtk, Adw
from .constants import rootdir from .constants import rootdir
from .modules.custom_presets import download_preset from .modules.custom_presets import download_preset

View file

@ -19,16 +19,11 @@
import sys import sys
import json import json
import os import os
import traceback
import gi
from gi.repository import Gtk, Gdk, Gio, Adw, GLib, Xdp, XdpGtk4 from gi.repository import Gtk, Gdk, Gio, Adw, GLib, Xdp, XdpGtk4
from material_color_utilities_python import * from material_color_utilities_python import *
from .settings_schema import settings_schema from .settings_schema import settings_schema
from .window import GradienceMainWindow from .window import GradienceMainWindow
from .palette_shades import GradiencePaletteShades
from .option import GradienceOption
from .app_type_dialog import GradienceAppTypeDialog from .app_type_dialog import GradienceAppTypeDialog
from .custom_css_group import GradienceCustomCSSGroup from .custom_css_group import GradienceCustomCSSGroup
from .constants import ( from .constants import (

View file

@ -16,11 +16,10 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from gi.repository import Gtk, Gdk, Adw from gi.repository import Gtk, Adw
from .modules.utils import buglog from .modules.utils import buglog
from .constants import rootdir from .constants import rootdir
import os
@Gtk.Template(resource_path=f"{rootdir}/ui/plugin_row.ui") @Gtk.Template(resource_path=f"{rootdir}/ui/plugin_row.ui")

View file

@ -16,18 +16,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys
import os import os
import importlib
import pkgutil
from gi.repository import Gtk, Adw, Gio, Gdk from gi.repository import Adw
from yapsy.PluginManager import PluginManager from yapsy.PluginManager import PluginManager
from pathlib import Path
from .modules.utils import buglog
from .plugin_row import GradiencePluginRow from .plugin_row import GradiencePluginRow
from .constants import app_id
class GradiencePluginsList: class GradiencePluginsList:

View file

@ -16,11 +16,10 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
from gi.repository import GLib, Gio, Gtk, Adw from gi.repository import Gtk, Adw
from .constants import rootdir, app_id from .constants import rootdir
from .modules.flatpak_overrides import ( from .modules.flatpak_overrides import (
create_gtk_user_override, create_gtk_user_override,
remove_gtk_user_override, remove_gtk_user_override,

View file

@ -19,7 +19,7 @@
import json import json
import os import os
from gi.repository import Gtk, Gdk, Adw from gi.repository import Gtk, Adw
from .constants import rootdir from .constants import rootdir
from .modules.utils import to_slug_case, buglog from .modules.utils import to_slug_case, buglog

View file

@ -16,20 +16,18 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from genericpath import isdir
import os import os
import shutil import shutil
import json import json
from pathlib import Path from pathlib import Path
from gi.repository import Gtk, Adw, Gio, Gdk, GLib from gi.repository import Gtk, Adw, GLib
from .preset_row import GradiencePresetRow from .preset_row import GradiencePresetRow
from .builtin_preset_row import GradienceBuiltinPresetRow from .builtin_preset_row import GradienceBuiltinPresetRow
from .explore_preset_row import GradienceExplorePresetRow from .explore_preset_row import GradienceExplorePresetRow
from .modules.custom_presets import fetch_presets from .modules.custom_presets import fetch_presets
from .constants import rootdir, build_type from .constants import rootdir
from .modules.utils import to_slug_case
from .repo_row import GradienceRepoRow from .repo_row import GradienceRepoRow
PRESETS_LIST_URL = "https://github.com/GradienceTeam/Community/raw/main/presets.json" PRESETS_LIST_URL = "https://github.com/GradienceTeam/Community/raw/main/presets.json"

View file

@ -16,13 +16,12 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
import json
import os import os
from gi.repository import Gtk, Gdk, Adw from gi.repository import Gtk, Adw
from .constants import rootdir from .constants import rootdir
from .modules.utils import to_slug_case, buglog from .modules.utils import to_slug_case
@Gtk.Template(resource_path=f"{rootdir}/ui/repo_row.ui") @Gtk.Template(resource_path=f"{rootdir}/ui/repo_row.ui")

View file

@ -17,7 +17,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
import sys import sys
import threading import threading
import traceback import traceback

View file

@ -19,13 +19,12 @@
import sys import sys
import time import time
from gi.repository import Gtk, Adw, Gio, Gdk from gi.repository import Gtk, Adw, Gio
from .run_async import RunAsync from .run_async import RunAsync
from .modules.utils import buglog from .modules.utils import buglog
from .modules.flatpak_overrides import ( from .modules.flatpak_overrides import (
create_gtk_user_override, create_gtk_user_override,
remove_gtk_user_override,
) )
from .constants import rootdir, app_id from .constants import rootdir, app_id

View file

@ -19,7 +19,7 @@
import os import os
from gi.repository import Gtk, Adw, Gio, Gdk from gi.repository import Gtk, Adw, Gio
from svglib.svglib import svg2rlg from svglib.svglib import svg2rlg
from reportlab.graphics import renderPM from reportlab.graphics import renderPM
@ -29,10 +29,7 @@ from .error import GradienceError
from .settings_schema import settings_schema from .settings_schema import settings_schema
from .palette_shades import GradiencePaletteShades from .palette_shades import GradiencePaletteShades
from .option import GradienceOption from .option import GradienceOption
from .app_type_dialog import GradienceAppTypeDialog
from .custom_css_group import GradienceCustomCSSGroup
from .presets_manager_window import GradiencePresetWindow from .presets_manager_window import GradiencePresetWindow
from .plugins_list import GradiencePluginsList
from .modules.utils import buglog from .modules.utils import buglog
from .constants import rootdir, app_id, build_type from .constants import rootdir, app_id, build_type