Added Makefile and development dependencies

This commit is contained in:
2025-07-28 00:37:31 +02:00
parent cec35f10d7
commit 6f38ecb33d
4 changed files with 56 additions and 3 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
.PHONY: setup update run dev-setup dev-update
setup:
uv venv
uv sync
update:
uv sync
run:
uv run uvicorn main:app
dev-setup:
uv venv
uv sync
uv sync --extra dev
dev-update:
uv sync
uv sync --extra dev

View File

@@ -1,6 +1,35 @@
[project]
name = "Javelina"
version = "0.0.1"
dynamic = ["dependencies", "optional-dependencies"]
description = "Discord bot that manages the server and provides an additional RESTful API"
readme = "README.md"
license = "AGPL-3.0"
license-files = ["LICENSE"]
requires-python = ">=3.11"
[tool.setuptools.dynamic]
dependencies = { file = "requirements.txt" }
[tool.setuptools.dynamic.optional-dependencies]
dev = { file = "requirements/dev.txt" }
[tool.black]
line-length = 96
target-version = ["py311"]
target-version = ["py311", "py312", "py313"]
[tool.isort]
profile = "black"
profile = "black"
[tool.mypy]
namespace_packages = true
install_types = true
strict = true
show_error_codes = true
[tool.pylint]
disable = ["line-too-long"]
[tool.pylint.main]
extension-pkg-whitelist = ["ujson"]
py-version = 3.11

View File

@@ -1,6 +1,6 @@
aiohttp>=3.6.0
apscheduler~=3.11.0
fastapi[all]~=0.116.0
fastapi[all]==0.115.5
fastapi_discord==0.2.7
libbot[speed,pycord,cache]==4.4.0
mongodb-migrations==1.3.1

4
requirements/dev.txt Normal file
View File

@@ -0,0 +1,4 @@
black==25.1.0
isort==5.13.2
mypy==1.16.1
pylint==3.3.7