mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-03 09:03:12 +00:00
196 lines
No EOL
4.2 KiB
TOML
196 lines
No EOL
4.2 KiB
TOML
################################################################
|
|
# Poetry Configuration
|
|
################################################################
|
|
|
|
[tool.poetry]
|
|
authors = ["kaizen <admin@kaizen.wtf>"]
|
|
description = "All Things Linux Discord Bot"
|
|
name = "tux"
|
|
readme = "README.md"
|
|
version = "0.1.0"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.11"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
pre-commit = "^3.6.0"
|
|
pyright = "^1.1.343"
|
|
ruff = "^0.1.9"
|
|
aiohttp = "3.9.1"
|
|
colorlog = ">=6.8.0"
|
|
discord-py = "^2.3.2"
|
|
python-dotenv = ">=1.0.0"
|
|
|
|
[build-system]
|
|
build-backend = "poetry.core.masonry.api"
|
|
requires = ["poetry-core"]
|
|
|
|
################################################################
|
|
# Black Configuration
|
|
# https://docs.astral.sh/ruff/configuration/
|
|
################################################################
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ['py311']
|
|
include = '\.pyi?$'
|
|
|
|
|
|
################################################################
|
|
# Ruff Configuration
|
|
# https://docs.astral.sh/ruff/configuration/
|
|
################################################################
|
|
|
|
[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",
|
|
]
|
|
|
|
# Same as Black.
|
|
indent-width = 4
|
|
line-length = 88
|
|
|
|
# Assume Python 3.11
|
|
target-version = "py311"
|
|
|
|
################################################################
|
|
# Ruff Linting Configuration
|
|
################################################################
|
|
|
|
[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.
|
|
ignore = []
|
|
select = [
|
|
# pycodestyle
|
|
"E",
|
|
# Pyflakes
|
|
"F",
|
|
# pyupgrade
|
|
"UP",
|
|
# flake8-bugbear
|
|
"B",
|
|
# flake8-simplify
|
|
"SIM",
|
|
# isort
|
|
"I",
|
|
]
|
|
|
|
# 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]+?))$"
|
|
|
|
################################################################
|
|
# Ruff Formatting Configuration
|
|
################################################################
|
|
|
|
[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 = false
|
|
|
|
# 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"
|
|
|
|
################################################################
|
|
# Pyright Configuration
|
|
# https://microsoft.github.io/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",
|
|
]
|
|
|
|
include = ["."]
|
|
|
|
typeCheckingMode = "strict"
|
|
|
|
reportMissingImports = true
|
|
|
|
reportMissingParameterType = false
|
|
reportMissingTypeStubs = false
|
|
reportUnknownArgumentType = false
|
|
reportUnknownMemberType = false
|
|
reportUnknownParameterType = false
|
|
|
|
pythonPlatform = "all"
|
|
pythonVersion = "3.11"
|
|
|
|
# Unsure?
|
|
#
|
|
# venv = ".venv"
|
|
# venvPath = "." |