From 48e5b42df3f97ea3f017ee98fc048a907302d57f Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Fri, 9 Oct 2020 16:52:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20docsstring=20init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder/bundler.py | 2 +- builder/config.py | 9 +++++++-- builder/cursor.py | 15 ++++++++++++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/builder/bundler.py b/builder/bundler.py index 3cd70c23..df255011 100644 --- a/builder/bundler.py +++ b/builder/bundler.py @@ -28,7 +28,7 @@ windows_cursors = { class Bundler(): """ - docstring + Create crisp package for Bibata Windows & X11 packages 📦. """ def __init__(self, name: str, config: ConfigProvider) -> None: diff --git a/builder/config.py b/builder/config.py index 339f29b0..10688a9e 100644 --- a/builder/config.py +++ b/builder/config.py @@ -21,11 +21,13 @@ with open(path.join(__path__[0], "hotspots.json")) as hotspot_file: class ConfigProvider(): """ - Configure `Bibata` building process. + Configure `Bibata` building process 🔧. """ def __init__(self, bitmaps_dir: str, out_dir: str) -> None: - + """ + docsstring + """ # cleanup old packages if path.exists(out_dir): shutil.rmtree(out_dir) @@ -43,6 +45,9 @@ class ConfigProvider(): self.out_dir: str = out_dir def get_windows_script(self, theme_name: str) -> str: + """ + docsstring + """ with open(path.join(__path__[0], "windows.inf")) as f: data = f.read() inf_content = data.replace( diff --git a/builder/cursor.py b/builder/cursor.py index add44f4d..fd6334ca 100644 --- a/builder/cursor.py +++ b/builder/cursor.py @@ -8,15 +8,21 @@ from clickgen import build_x11_cursor_theme, build_cursor_theme, build_win_curso class CursorBuilder(): """ - Bibata cursors builder 🚀 + Build Bibata Windows & X11 cursors 🚀. """ def __init__(self, name: str, config: ConfigProvider) -> None: + """ + docstring + """ self.__name = name self.__config = config self.__bundler = Bundler(name, config) def build_x11_cursors(self) -> None: + """ + docstring + """ print('🌈 Building %s Theme ...' % self.__name) build_x11_cursor_theme( name=self.__name, @@ -31,6 +37,9 @@ class CursorBuilder(): self.__bundler.x11_bundle() def build_win_cursors(self) -> None: + """ + docstring + """ print('🌈 Building %s Theme ...' % self.__name) build_win_cursor_theme( name=self.__name, @@ -45,6 +54,10 @@ class CursorBuilder(): self.__bundler.win_bundle() def build_cursors(self) -> None: + """ + docstring + """ + print('🌈 Building %s Theme ...' % self.__name) build_cursor_theme( name=self.__name,