2023-12-27 23:29:04 +00:00
|
|
|
# Poetry Configuration
|
|
|
|
[tool.poetry]
|
|
|
|
authors = ["kaizen <admin@kaizen.wtf>"]
|
|
|
|
description = "All Things Linux Discord Bot"
|
|
|
|
name = "tux"
|
|
|
|
readme = "README.md"
|
2024-03-26 21:36:26 +00:00
|
|
|
repository = "https://github.com/allthingslinux/tux"
|
2023-12-27 23:29:04 +00:00
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2024-04-08 21:12:54 +00:00
|
|
|
aioconsole = "^0.7.0"
|
2024-03-27 20:16:33 +00:00
|
|
|
aiopath = "0.6.11"
|
|
|
|
asynctempfile = "^0.5.0"
|
2024-03-31 19:29:27 +00:00
|
|
|
dateparser = "^1.2.0"
|
2023-12-27 23:29:04 +00:00
|
|
|
discord-py = "^2.3.2"
|
2024-03-26 21:36:26 +00:00
|
|
|
loguru = "^0.7.2"
|
|
|
|
mypy = "^1.9.0"
|
2024-01-10 03:58:09 +00:00
|
|
|
pre-commit = "^3.6.0"
|
2024-03-26 21:36:26 +00:00
|
|
|
prisma = "^0.13.1"
|
2024-04-08 21:12:54 +00:00
|
|
|
psutil = "^5.9.8"
|
2024-04-08 15:51:14 +00:00
|
|
|
pynacl = "^1.5.0"
|
2024-01-10 03:58:09 +00:00
|
|
|
pyright = "^1.1.343"
|
2024-03-26 21:36:26 +00:00
|
|
|
python = "^3.11"
|
2023-12-27 23:29:04 +00:00
|
|
|
python-dotenv = ">=1.0.0"
|
2024-03-25 05:10:40 +00:00
|
|
|
ruff = "^0.3.4"
|
2024-04-08 15:51:14 +00:00
|
|
|
sentry-sdk = {extras = ["loguru"], version = "^1.44.1"}
|
2024-03-27 20:16:33 +00:00
|
|
|
vulture = "^2.11"
|
2024-03-26 21:36:26 +00:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
pyright = "pyright:run"
|
2023-12-27 23:29:04 +00:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
|
|
|
|
# Ruff Configuration
|
|
|
|
[tool.ruff]
|
|
|
|
exclude = [
|
2024-01-10 03:58:09 +00:00
|
|
|
".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",
|
2024-03-31 19:29:27 +00:00
|
|
|
"tmp",
|
|
|
|
"tests",
|
2023-12-01 05:22:07 +00:00
|
|
|
]
|
2023-12-27 23:29:04 +00:00
|
|
|
indent-width = 4
|
2024-03-27 20:16:33 +00:00
|
|
|
line-length = 100
|
2023-12-27 23:29:04 +00:00
|
|
|
target-version = "py311"
|
|
|
|
|
|
|
|
# Ruff Linting Configuration
|
|
|
|
[tool.ruff.lint]
|
2024-03-31 19:29:27 +00:00
|
|
|
ignore = ["E501", "N814"]
|
|
|
|
|
2024-03-26 21:36:26 +00:00
|
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
2024-03-31 19:29:27 +00:00
|
|
|
|
2024-03-26 21:36:26 +00:00
|
|
|
fixable = ["ALL"]
|
2023-12-29 15:12:22 +00:00
|
|
|
select = [
|
2024-03-26 21:36:26 +00:00
|
|
|
"E",
|
|
|
|
"F",
|
|
|
|
"UP",
|
|
|
|
"B",
|
|
|
|
"SIM",
|
2024-01-10 03:58:09 +00:00
|
|
|
"I",
|
2024-03-31 19:29:27 +00:00
|
|
|
"N",
|
|
|
|
"ASYNC",
|
|
|
|
"A",
|
|
|
|
"C4",
|
|
|
|
"DTZ",
|
|
|
|
"EM",
|
|
|
|
"PIE",
|
|
|
|
"T20",
|
|
|
|
"Q",
|
|
|
|
"RET",
|
|
|
|
"PTH",
|
|
|
|
"R",
|
|
|
|
"TRY",
|
|
|
|
"RUF",
|
2023-12-29 15:12:22 +00:00
|
|
|
]
|
2023-12-27 23:29:04 +00:00
|
|
|
unfixable = []
|
|
|
|
|
|
|
|
# Ruff Formatting Configuration
|
|
|
|
[tool.ruff.format]
|
2024-03-26 21:36:26 +00:00
|
|
|
docstring-code-format = true
|
|
|
|
docstring-code-line-length = "dynamic"
|
2023-12-29 15:12:22 +00:00
|
|
|
indent-style = "space"
|
|
|
|
line-ending = "auto"
|
2024-03-26 21:36:26 +00:00
|
|
|
quote-style = "double"
|
|
|
|
skip-magic-trailing-comma = false
|
2023-12-29 14:55:09 +00:00
|
|
|
|
2023-12-27 23:29:04 +00:00
|
|
|
# Pyright Configuration
|
|
|
|
[tool.pyright]
|
2024-01-10 03:58:09 +00:00
|
|
|
defineConstant = {DEBUG = true}
|
2023-12-27 23:29:04 +00:00
|
|
|
exclude = [
|
2024-01-10 03:58:09 +00:00
|
|
|
".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",
|
2023-12-01 05:22:07 +00:00
|
|
|
]
|
2024-01-10 03:58:09 +00:00
|
|
|
include = ["tux"]
|
|
|
|
pythonPlatform = "Linux"
|
2023-12-27 23:29:04 +00:00
|
|
|
pythonVersion = "3.11"
|
2024-03-26 21:36:26 +00:00
|
|
|
typeCheckingMode = "strict"
|
2024-01-09 01:35:14 +00:00
|
|
|
venv = ".venv"
|
|
|
|
venvPath = "."
|
2024-03-26 21:36:26 +00:00
|
|
|
# reportMissingImports = true
|
|
|
|
# reportMissingParameterType = false
|
|
|
|
# reportMissingTypeStubs = false
|
|
|
|
# reportUnknownArgumentType = false
|
|
|
|
# reportUnknownMemberType = false
|
|
|
|
# reportUnknownParameterType = false
|
|
|
|
|
|
|
|
[tool.mypy]
|
2024-03-27 20:16:33 +00:00
|
|
|
ignore_missing_imports = true
|
|
|
|
plugins = ["prisma.mypy", "aiopath.mypy"]
|
2024-03-26 21:36:26 +00:00
|
|
|
python_version = "3.11"
|
2024-03-27 20:16:33 +00:00
|
|
|
|
|
|
|
[tool.vulture]
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
# paths = ["tux"]
|
|
|
|
# ignore_decorators = ["@app.route", "@require_*"]
|
|
|
|
# ignore_names = ["visit_*", "do_*"]
|
|
|
|
# make_whitelist = true
|
|
|
|
# min_confidence = 100
|
|
|
|
# sort_by_size = true
|
|
|
|
# verbose = true
|