feat(config): add initial pyproject.toml configuration 🎉

- Set up project metadata including name, version, and dependencies.
- Configured Ruff for linting and formatting settings.

*Generated by Github Copilot*
This commit is contained in:
2025-10-13 19:54:23 +02:00
parent c85e1c909c
commit e7135a9324
2 changed files with 761 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
[project]
name = "DiscordBot"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"discord.py==2.6.3",
"httpx==0.28.1"
]
[project.optional-dependencies]
dev = [
"ruff==0.14.0"
]
[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",
]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = []
[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"