-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
42 lines (34 loc) · 1.02 KB
/
pyproject.toml
File metadata and controls
42 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[project]
name = "rcb-discord-bot"
version = "0.1.0"
description = "A Discord bot with modular features."
authors = [{ name = "tjtanjin", email = "cjtanjin@gmail.com" }]
license = { text = "MIT" }
dependencies = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/bot"]
[tool.hatch.envs.default.scripts]
lint = "darglint ./src/bot && ruff check --fix ./src/bot && black --check ./src/bot"
format = "ruff check --fix ./src/bot && black ./src/bot"
start = "docker compose -p rcb-discord-bot --env-file .env.local up -d --build"
stop = "docker compose -p rcb-discord-bot down"
[tool.hatch.envs.dev]
dependencies = ["pre-commit"]
[tool.ruff]
line-length = 120
target-version = "py311"
exclude = ["build", "dist", ".venv"]
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "D", "I"]
ignore = ["D200", "D203", "D205", "D212"]
fixable = ["ALL"]
[tool.darglint]
docstring_style = "google"
strictness = "long"
[tool.black]
line-length = 120
target-version = ['py311']