📚 docsstring init

This commit is contained in:
ful1e5 2020-10-09 16:52:11 +05:30
parent 0c61380b10
commit 48e5b42df3
3 changed files with 22 additions and 4 deletions

View file

@ -28,7 +28,7 @@ windows_cursors = {
class Bundler(): class Bundler():
""" """
docstring Create crisp package for Bibata Windows & X11 packages 📦.
""" """
def __init__(self, name: str, config: ConfigProvider) -> None: def __init__(self, name: str, config: ConfigProvider) -> None:

View file

@ -21,11 +21,13 @@ with open(path.join(__path__[0], "hotspots.json")) as hotspot_file:
class ConfigProvider(): class ConfigProvider():
""" """
Configure `Bibata` building process. Configure `Bibata` building process 🔧.
""" """
def __init__(self, bitmaps_dir: str, out_dir: str) -> None: def __init__(self, bitmaps_dir: str, out_dir: str) -> None:
"""
docsstring
"""
# cleanup old packages # cleanup old packages
if path.exists(out_dir): if path.exists(out_dir):
shutil.rmtree(out_dir) shutil.rmtree(out_dir)
@ -43,6 +45,9 @@ class ConfigProvider():
self.out_dir: str = out_dir self.out_dir: str = out_dir
def get_windows_script(self, theme_name: str) -> str: def get_windows_script(self, theme_name: str) -> str:
"""
docsstring
"""
with open(path.join(__path__[0], "windows.inf")) as f: with open(path.join(__path__[0], "windows.inf")) as f:
data = f.read() data = f.read()
inf_content = data.replace( inf_content = data.replace(

View file

@ -8,15 +8,21 @@ from clickgen import build_x11_cursor_theme, build_cursor_theme, build_win_curso
class CursorBuilder(): class CursorBuilder():
""" """
Bibata cursors builder 🚀 Build Bibata Windows & X11 cursors 🚀.
""" """
def __init__(self, name: str, config: ConfigProvider) -> None: def __init__(self, name: str, config: ConfigProvider) -> None:
"""
docstring
"""
self.__name = name self.__name = name
self.__config = config self.__config = config
self.__bundler = Bundler(name, config) self.__bundler = Bundler(name, config)
def build_x11_cursors(self) -> None: def build_x11_cursors(self) -> None:
"""
docstring
"""
print('🌈 Building %s Theme ...' % self.__name) print('🌈 Building %s Theme ...' % self.__name)
build_x11_cursor_theme( build_x11_cursor_theme(
name=self.__name, name=self.__name,
@ -31,6 +37,9 @@ class CursorBuilder():
self.__bundler.x11_bundle() self.__bundler.x11_bundle()
def build_win_cursors(self) -> None: def build_win_cursors(self) -> None:
"""
docstring
"""
print('🌈 Building %s Theme ...' % self.__name) print('🌈 Building %s Theme ...' % self.__name)
build_win_cursor_theme( build_win_cursor_theme(
name=self.__name, name=self.__name,
@ -45,6 +54,10 @@ class CursorBuilder():
self.__bundler.win_bundle() self.__bundler.win_bundle()
def build_cursors(self) -> None: def build_cursors(self) -> None:
"""
docstring
"""
print('🌈 Building %s Theme ...' % self.__name) print('🌈 Building %s Theme ...' % self.__name)
build_cursor_theme( build_cursor_theme(
name=self.__name, name=self.__name,