mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
chore: clear linting errors
This commit is contained in:
1 parent
3cdc36c78b
commit
77c42f5b78
19 files changed
+17
-28
No files matched your search
@@ -1,5 +1,4 @@
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
def get_time() -> int:
|
||||
return int(datetime.now().timestamp())
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import gi # noqa E402
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Gdk
|
||||
from gi.repository import Gtk, Gdk # noqa E402
|
||||
|
||||
|
||||
def add_class(widget: Gtk.Widget, label: str) -> None:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import re
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
CPU_FILE = "/proc/cpuinfo"
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import textwrap
|
||||
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import a2s
|
||||
import gzip
|
||||
import requests
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import gi # noqa E402
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import Gdk # noqa E402
|
||||
|
||||
def is_navkey(key: int) -> bool:
|
||||
nav_keys = [
|
||||
|
||||
@@ -10,7 +10,7 @@ def number(num: int | float) -> str:
|
||||
return locale.format_string(spec, num, grouping=True)
|
||||
|
||||
|
||||
def set_locale():
|
||||
def set_locale() -> None:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
user_loc = loc if (loc := os.getenv("LC_CTYPE")) else "en_US.UTF-8"
|
||||
locale.setlocale(locale.LC_NUMERIC, loc)
|
||||
locale.setlocale(locale.LC_NUMERIC, user_loc)
|
||||
@@ -1,6 +1,6 @@
|
||||
import gi # noqa E402
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk # noqa E402
|
||||
|
||||
def set_surrounding_margins(widget: Gtk.Widget, margin: int) -> None:
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
|
||||
from dzgui.const.constants import APPID_DAYZ
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import List, Dict
|
||||
|
||||
from dzgui.const.constants import SYSTEM_LOG
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import hashlib
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
Reference in new issue
Block a user