mirror of
https://github.com/Paillat-dev/discord-emojis.git
synced 2026-01-02 00:56:19 +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:
@@ -14,6 +14,33 @@ dev = [
|
||||
]
|
||||
|
||||
[tool.basedpyright]
|
||||
pythonVersion = "3.13"
|
||||
typeCheckingMode = "all"
|
||||
reportUnusedCallResult = false
|
||||
reportAny = false
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py313"
|
||||
line-length = 120
|
||||
indent-width = 4
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
skip-magic-trailing-comma = false
|
||||
line-ending = "auto"
|
||||
docstring-code-format = false
|
||||
docstring-code-line-length = "dynamic"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["ALL"]
|
||||
extend-ignore = [
|
||||
"D203",
|
||||
"D213",
|
||||
"COM812",
|
||||
"EM101",
|
||||
"TRY003",
|
||||
"T201",
|
||||
"D100",
|
||||
"D400"
|
||||
]
|
||||
Reference in New Issue
Block a user