mirror of
https://github.com/Paillat-dev/discord-emojis.git
synced 2026-03-02 22:14:54 +00:00
Refactor code structure and enhance documentation in main modules
- Updated `pyproject.toml` to include configuration for `ruff` linting tool. - Improved `download_build.py` by adding a docstring to the `dowload` function. - Refactored `__main__.py` for clarity and consistency in path handling. - Enhanced `extract.py` with detailed docstrings for error classes and functions.
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
# Copyright (c) Paillat-dev
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
import pathlib
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
from extract import extract_emojis_from_str
|
||||
from download_build import dowload
|
||||
from extract import extract_emojis_from_str
|
||||
|
||||
|
||||
def main() -> None:
|
||||
build_path = pathlib.Path(os.getcwd()) / "build"
|
||||
"""Download the latest discord build and extract emojis."""
|
||||
build_path = pathlib.Path.cwd() / "build"
|
||||
build_path.mkdir(exist_ok=True)
|
||||
|
||||
out_path = build_path / "emojis.json"
|
||||
|
||||
Reference in New Issue
Block a user