move to uv pyproject, drop setup.py/requirements/pytest.ini
This commit is contained in:
+44
-47
@@ -1,6 +1,46 @@
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
requires = ["setuptools>=77"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "fjerkroa-bot"
|
||||
version = "2.0"
|
||||
description = "Discord bot with OpenAI responder for Fjærkroa and GGG"
|
||||
authors = [{ name = "Oleksandr Kozachuk", email = "ddeus.lp@mailnull.com" }]
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"discord.py>=2.5,<3",
|
||||
"openai>=2.45", # 2.x since the FDB-005 envelope rewrite (D-007)
|
||||
"aiohttp>=3.12",
|
||||
"tomlkit>=0.13",
|
||||
"watchdog>=6",
|
||||
"requests>=2.32",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
fjerkroa_bot = "fjerkroa_bot:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=8",
|
||||
"pytest-asyncio>=1",
|
||||
"pytest-bdd>=8",
|
||||
"pytest-cov>=6",
|
||||
"respx>=0.22",
|
||||
"toml>=0.10",
|
||||
"mypy>=1.16",
|
||||
"flake8>=7",
|
||||
"black>=25",
|
||||
"isort>=6",
|
||||
"bandit[toml]>=1.8",
|
||||
"pre-commit>=4",
|
||||
"pip-audit>=2.9",
|
||||
"types-requests",
|
||||
"types-toml",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["fjerkroa_bot"]
|
||||
|
||||
[tool.mypy]
|
||||
files = ["fjerkroa_bot", "tests"]
|
||||
@@ -22,7 +62,6 @@ show_error_codes = true
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"discord.*",
|
||||
"multiline.*",
|
||||
"aiohttp.*",
|
||||
"openai.*",
|
||||
"tomlkit.*",
|
||||
@@ -31,50 +70,9 @@ module = [
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.flake8]
|
||||
max-line-length = 140
|
||||
max-complexity = 10
|
||||
ignore = [
|
||||
"E203",
|
||||
"E266",
|
||||
"E501",
|
||||
"W503",
|
||||
"E306",
|
||||
]
|
||||
exclude = [
|
||||
".git",
|
||||
".mypy_cache",
|
||||
".pytest_cache",
|
||||
"__pycache__",
|
||||
"build",
|
||||
"dist",
|
||||
"venv",
|
||||
]
|
||||
|
||||
[tool.poetry]
|
||||
name = "fjerkroa_bot"
|
||||
version = "2.0"
|
||||
description = ""
|
||||
authors = ["Oleksandr Kozachuk <ddeus.lp@mailnull.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
"discord.py" = "*"
|
||||
openai = "*"
|
||||
aiohttp = "*"
|
||||
mypy = "*"
|
||||
flake8 = "*"
|
||||
pre-commit = "*"
|
||||
pytest = "*"
|
||||
setuptools = "*"
|
||||
wheel = "*"
|
||||
watchdog = "*"
|
||||
tomlkit = "*"
|
||||
multiline = "*"
|
||||
|
||||
[tool.black]
|
||||
line-length = 140
|
||||
target-version = ['py38']
|
||||
target-version = ['py311']
|
||||
include = '\.pyi?$'
|
||||
extend-exclude = '''
|
||||
/(
|
||||
@@ -108,7 +106,7 @@ skips = ["B101", "B601", "B301", "B311", "B403", "B113"] # Skip pickle, random,
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
minversion = "6.0"
|
||||
addopts = "-ra -q --strict-markers --strict-config"
|
||||
addopts = "-ra -q --strict-markers --strict-config -W ignore::DeprecationWarning"
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py", "*_test.py"]
|
||||
python_classes = ["Test*"]
|
||||
@@ -123,7 +121,6 @@ source = ["fjerkroa_bot"]
|
||||
omit = [
|
||||
"*/tests/*",
|
||||
"*/test_*",
|
||||
"setup.py",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
|
||||
Reference in New Issue
Block a user