1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
tux/pyproject.toml

172 lines
3.2 KiB
TOML
Raw Normal View History

# Poetry Configuration
[tool.poetry]
authors = ["kaizen <admin@kaizen.wtf>"]
description = "All Things Linux Discord Bot"
name = "tux"
readme = "README.md"
repository = "https://github.com/allthingslinux/tux"
version = "0.1.0"
[tool.poetry.dependencies]
aiocache = "^0.12.2"
aioconsole = "^0.7.0"
aiofiles = "^24.1.0"
asynctempfile = "^0.5.0"
cairosvg = "^2.7.1"
dateparser = "^1.2.0"
2024-06-22 04:10:07 +00:00
discord-py = "^2.4.0"
githubkit = {extras = ["auth-app"], version = "^0.11.3"}
httpx = "^0.27.0"
loguru = "^0.7.2"
pillow = "^10.3.0"
pre-commit = "^3.7.0"
prisma = "^0.15.0"
psutil = "^6.0.0"
pydantic = "^2.8.2"
pynacl = "^1.5.0"
pyright = "^1.1.358"
python = ">=3.12,<4"
python-dotenv = "^1.0.1"
pyyaml = "^6.0.2"
chore: remove unused pagination.py file from .archive directory feat: add new emoji assets for active_case, added, ban, inactive_case, jail, kick, removed, timeout, warn feat(pyproject.toml): add reactionmenu package to project dependencies refactor(ban.py): update usage instruction for ban command and remove unnecessary line after ban execution feat(moderation/cases.py): add new moderation cases management feature feat(reactionmenu/__init__.pyi): add new reactionmenu library for discord pagination The moderation cases management feature allows for viewing and modifying moderation cases in the server. The reactionmenu library supports pagination with buttons, reactions, and category selection using selects. feat(tux/stubs/reactionmenu/abc.pyi): add new stub file for reactionmenu module This commit adds a new stub file for the reactionmenu module in the tux library. This will help in providing type hints and autocompletion for the reactionmenu module in IDEs that support Python type hints. docs: add detailed docstrings to methods and properties in the menu class This commit adds detailed docstrings to all methods and properties in the menu class. The docstrings include information about the purpose of each method/property, the parameters they accept, the return type, and any exceptions they might raise. This will make it easier for developers to understand how to use the menu class and what each method/property does. feat: add set_relay and remove_relay methods in the code to handle button press events docs: add comprehensive docstrings for set_relay and remove_relay methods explaining their functionality, parameters, and exceptions feat(buttons.pyi): add new type stub file for reactionmenu/buttons.py to provide type hints and improve code readability and maintainability feat: add ReactionButton class and related methods This commit introduces the ReactionButton class, which represents a reaction in the ReactionMenu. It includes several methods for setting button details, generating skip buttons, and factory methods for creating specific types of buttons. This enhancement provides a more structured and flexible way to manage reactions in the ReactionMenu. feat(core.pyi): add new file for ReactionMenu class with methods and properties docs(core.pyi): add docstrings for ReactionMenu class, methods, and properties to improve code readability and provide usage information feat: add multiple overloads to start method in ReactionMenu class to support various types of send_to parameters docs: add comprehensive docstring to start method explaining its parameters, their types, and possible exceptions raised feat(tux/stubs/reactionmenu): add decorators.pyi and errors.pyi stub files for better type checking docs(decorators.pyi, errors.pyi): add MIT license and function/class descriptions for better understanding of the code feat(reactionmenu): add new file views_menu.pyi for type hinting and better code intelligence feat: add methods to manage menu items in ViewMenu class - Add methods to add, remove, enable, disable, and get select items - Add methods to add, remove, enable, disable, and get go to select items - Add methods to add, remove, enable, disable, and get button items - Add methods to update menu, randomize button styles, set button styles, and refresh menu items - Add methods to stop and start the menu - These changes provide a comprehensive interface for managing menu items in the ViewMenu class. docs: Add comprehensive docstring to the start method in the menu class This commit adds a detailed docstring to the start method in the menu class. The docstring includes a description of the method, its parameters, and the exceptions it raises. This will improve code readability and provide better understanding for developers working with this method. refactor(flags.py): replace default "No reason provided" with MISSING for better error handling style(flags.py): rename flag names for better clarity and understanding feat(flags.py): add new class CaseModifyFlags to handle case modifications
2024-07-25 15:04:44 +00:00
reactionmenu = "^3.1.7"
rsa = "^4.9"
ruff = "^0.6.0"
sentry-sdk = {extras = ["httpx", "loguru"], version = "^2.7.0"}
types-aiofiles = "^24.1.0.20240626"
types-psutil = "^6.0.0.20240621"
typing-extensions = "^4.12.2"
jishaku = "^2.5.2"
pytz = "^2024.1"
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.5.30"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
# Ruff Configuration
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
2024-03-22 10:56:30 +00:00
"examples",
"tmp",
"tests",
".archive",
chore: remove unused pagination.py file from .archive directory feat: add new emoji assets for active_case, added, ban, inactive_case, jail, kick, removed, timeout, warn feat(pyproject.toml): add reactionmenu package to project dependencies refactor(ban.py): update usage instruction for ban command and remove unnecessary line after ban execution feat(moderation/cases.py): add new moderation cases management feature feat(reactionmenu/__init__.pyi): add new reactionmenu library for discord pagination The moderation cases management feature allows for viewing and modifying moderation cases in the server. The reactionmenu library supports pagination with buttons, reactions, and category selection using selects. feat(tux/stubs/reactionmenu/abc.pyi): add new stub file for reactionmenu module This commit adds a new stub file for the reactionmenu module in the tux library. This will help in providing type hints and autocompletion for the reactionmenu module in IDEs that support Python type hints. docs: add detailed docstrings to methods and properties in the menu class This commit adds detailed docstrings to all methods and properties in the menu class. The docstrings include information about the purpose of each method/property, the parameters they accept, the return type, and any exceptions they might raise. This will make it easier for developers to understand how to use the menu class and what each method/property does. feat: add set_relay and remove_relay methods in the code to handle button press events docs: add comprehensive docstrings for set_relay and remove_relay methods explaining their functionality, parameters, and exceptions feat(buttons.pyi): add new type stub file for reactionmenu/buttons.py to provide type hints and improve code readability and maintainability feat: add ReactionButton class and related methods This commit introduces the ReactionButton class, which represents a reaction in the ReactionMenu. It includes several methods for setting button details, generating skip buttons, and factory methods for creating specific types of buttons. This enhancement provides a more structured and flexible way to manage reactions in the ReactionMenu. feat(core.pyi): add new file for ReactionMenu class with methods and properties docs(core.pyi): add docstrings for ReactionMenu class, methods, and properties to improve code readability and provide usage information feat: add multiple overloads to start method in ReactionMenu class to support various types of send_to parameters docs: add comprehensive docstring to start method explaining its parameters, their types, and possible exceptions raised feat(tux/stubs/reactionmenu): add decorators.pyi and errors.pyi stub files for better type checking docs(decorators.pyi, errors.pyi): add MIT license and function/class descriptions for better understanding of the code feat(reactionmenu): add new file views_menu.pyi for type hinting and better code intelligence feat: add methods to manage menu items in ViewMenu class - Add methods to add, remove, enable, disable, and get select items - Add methods to add, remove, enable, disable, and get go to select items - Add methods to add, remove, enable, disable, and get button items - Add methods to update menu, randomize button styles, set button styles, and refresh menu items - Add methods to stop and start the menu - These changes provide a comprehensive interface for managing menu items in the ViewMenu class. docs: Add comprehensive docstring to the start method in the menu class This commit adds a detailed docstring to the start method in the menu class. The docstring includes a description of the method, its parameters, and the exceptions it raises. This will improve code readability and provide better understanding for developers working with this method. refactor(flags.py): replace default "No reason provided" with MISSING for better error handling style(flags.py): rename flag names for better clarity and understanding feat(flags.py): add new class CaseModifyFlags to handle case modifications
2024-07-25 15:04:44 +00:00
"stubs",
]
indent-width = 4
line-length = 120
target-version = "py312"
# Ruff Linting Configuration
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
fixable = ["ALL"]
ignore = ["E501", "N814", "PLR0913", "PLR2004"]
select = [
"I", # isort
"E", # pycodestyle-error
"F", # pyflakes
"PERF", # perflint
"N", # pep8-naming
"TRY", # tryceratops
"UP", # pyupgrade
"FURB", # refurb
"PL", # pylint
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ASYNC", # flake8-async
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RET", # flake8-return
"PTH", # flake8-use-pathlib
"INP", # flake8-no-pep420
"RSE", # flake8-raise
"ICN", # flake8-import-conventions
"RUF", # ruff
]
unfixable = []
# Ruff Formatting Configuration
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "lf"
quote-style = "double"
skip-magic-trailing-comma = false
2023-12-29 14:55:09 +00:00
# Pyright Configuration
[tool.pyright]
defineConstant = {DEBUG = true}
exclude = [
".direnv",
".eggs",
".git",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"examples",
"tests",
".archive",
chore: remove unused pagination.py file from .archive directory feat: add new emoji assets for active_case, added, ban, inactive_case, jail, kick, removed, timeout, warn feat(pyproject.toml): add reactionmenu package to project dependencies refactor(ban.py): update usage instruction for ban command and remove unnecessary line after ban execution feat(moderation/cases.py): add new moderation cases management feature feat(reactionmenu/__init__.pyi): add new reactionmenu library for discord pagination The moderation cases management feature allows for viewing and modifying moderation cases in the server. The reactionmenu library supports pagination with buttons, reactions, and category selection using selects. feat(tux/stubs/reactionmenu/abc.pyi): add new stub file for reactionmenu module This commit adds a new stub file for the reactionmenu module in the tux library. This will help in providing type hints and autocompletion for the reactionmenu module in IDEs that support Python type hints. docs: add detailed docstrings to methods and properties in the menu class This commit adds detailed docstrings to all methods and properties in the menu class. The docstrings include information about the purpose of each method/property, the parameters they accept, the return type, and any exceptions they might raise. This will make it easier for developers to understand how to use the menu class and what each method/property does. feat: add set_relay and remove_relay methods in the code to handle button press events docs: add comprehensive docstrings for set_relay and remove_relay methods explaining their functionality, parameters, and exceptions feat(buttons.pyi): add new type stub file for reactionmenu/buttons.py to provide type hints and improve code readability and maintainability feat: add ReactionButton class and related methods This commit introduces the ReactionButton class, which represents a reaction in the ReactionMenu. It includes several methods for setting button details, generating skip buttons, and factory methods for creating specific types of buttons. This enhancement provides a more structured and flexible way to manage reactions in the ReactionMenu. feat(core.pyi): add new file for ReactionMenu class with methods and properties docs(core.pyi): add docstrings for ReactionMenu class, methods, and properties to improve code readability and provide usage information feat: add multiple overloads to start method in ReactionMenu class to support various types of send_to parameters docs: add comprehensive docstring to start method explaining its parameters, their types, and possible exceptions raised feat(tux/stubs/reactionmenu): add decorators.pyi and errors.pyi stub files for better type checking docs(decorators.pyi, errors.pyi): add MIT license and function/class descriptions for better understanding of the code feat(reactionmenu): add new file views_menu.pyi for type hinting and better code intelligence feat: add methods to manage menu items in ViewMenu class - Add methods to add, remove, enable, disable, and get select items - Add methods to add, remove, enable, disable, and get go to select items - Add methods to add, remove, enable, disable, and get button items - Add methods to update menu, randomize button styles, set button styles, and refresh menu items - Add methods to stop and start the menu - These changes provide a comprehensive interface for managing menu items in the ViewMenu class. docs: Add comprehensive docstring to the start method in the menu class This commit adds a detailed docstring to the start method in the menu class. The docstring includes a description of the method, its parameters, and the exceptions it raises. This will improve code readability and provide better understanding for developers working with this method. refactor(flags.py): replace default "No reason provided" with MISSING for better error handling style(flags.py): rename flag names for better clarity and understanding feat(flags.py): add new class CaseModifyFlags to handle case modifications
2024-07-25 15:04:44 +00:00
"stubs",
]
include = ["tux"]
pythonPlatform = "Linux"
pythonVersion = "3.12"
reportMissingTypeStubs = true
reportShadowedImports = false
stubPath = "tux/stubs"
typeCheckingMode = "strict"
2024-01-09 01:35:14 +00:00
venv = ".venv"
venvPath = "."