-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
69 lines (61 loc) · 1.54 KB
/
pyproject.toml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[project]
name = "bamboo"
version = "0.1.0"
description = "A CMS optimized for conference hosting"
authors = [
{name = "Bamboo Team", email = "[email protected]"},
]
dependencies = [
"apiflask>=2.1.0",
"flask-sqlalchemy>=3.1.1",
"flask-migrate>=4.0.5",
"python-dotenv>=1.0.0",
"python-jose[cryptography]>=3.3.0",
"Flask-RQ2>=18.3",
"Pillow>=10.1.0",
"setuptools>=69.0.3",
"psycopg2-binary>=2.9.9",
]
requires-python = ">=3.12"
license = {text = "BSD 3-Clause"}
[tool.pdm]
distribution = false
[tool.pdm.scripts]
serve = { cmd = "flask run", help = "Run the development server" }
create-tables = { cmd = "flask create-tables", help = "Create tables" }
drop-tables = { cmd = "flask drop-tables", help = "Drop tables" }
worker = { cmd = "flask rq worker", help = "Run the RQ worker" }
[tool.pdm.dev-dependencies]
test = [
"pytest>=7.4.3",
"pytest-mock>=3.12.0",
"fakeredis>=2.20.1",
]
dev = [
"pre-commit>=3.6.0",
"flask-shell-ipython>=0.5.1",
]
[tool.ruff]
line-length = 100
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019"]
src = ["src"]
exclude = ["tests/fixtures"]
target-version = "py312"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["bamboo"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:pkg_resources is deprecated:DeprecationWarning",
"ignore:datetime.datetime.utc:DeprecationWarning",
]