[tool.poetry] name = "dakiny-bot" version = "0.1.0" description = "Dakiny's Discord Bot." authors = ["imcompiling "] readme = "README.md" package-mode = false [tool.poetry.dependencies] python = "^3.12" gitpython = "^3.1.43" fastapi = "^0.111.0" nextcord = "^2.6.0" pandas = "^2.2.2" pytz = "^2024.1" sqlalchemy = "^2.0.30" aiofiles = "^23.2.1" setuptools = "^70.0.0" dataclass-wizard = "^0.22.3" [tool.poetry.group.dev.dependencies] ruff = "^0.6.3" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.ruff] # Exclude a variety of commonly ignored directories. 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", "dakiny-messages", # Don't need to lint this git repo. ] # Same as Black. line-length = 120 indent-width = 4 # Assume Python 3.8 target-version = "py312" [tool.ruff.lint] # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. select = ["ALL"] ignore = [ "ANN101", "B008", # I build SlashOptions as arguments. "COM812", "COM819", "D107", # don't want docstrings on init functions "D203", "D206", "D212", "D300", "E111", "E114", "E117", "ISC001", "ISC002", "Q000", "Q001", "Q002", "Q003", "W191", ] # Allow fix for all enabled rules (when `--fix`) is provided. fixable = ["ALL"] unfixable = [] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" [tool.ruff.lint.pydocstyle] convention = "google" [tool.ruff.lint.flake8-annotations] mypy-init-return = true [tool.ruff.format] # Like Black, use double quotes for strings. quote-style = "double" # Like Black, indent with spaces, rather than tabs. indent-style = "space" # Like Black, respect magic trailing commas. skip-magic-trailing-comma = false # Like Black, automatically detect the appropriate line ending. line-ending = "auto" # Enable auto-formatting of code examples in docstrings. Markdown, # reStructuredText code/literal blocks and doctests are all supported. # # This is currently disabled by default, but it is planned for this # to be opt-out in the future. docstring-code-format = true # Set the line length limit used when formatting code snippets in # docstrings. # # This only has an effect when the `docstring-code-format` setting is # enabled. docstring-code-line-length = "dynamic"