-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
87 lines (78 loc) · 2.29 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[project]
name = "bemserver-api"
version = "0.24.2"
description = "BEMServer API"
readme = "README.rst"
license = { file = "LICENSE" }
authors = [
{ name = "Jérôme Lafréchoux", email = "jlafrechoux@nobatek.inef4.com" },
{ name = "David Frédérique", email = "dfrederique@nobatek.inef4.com" },
]
maintainers = [
{ name = "Jérôme Lafréchoux", email = "jlafrechoux@nobatek.inef4.com" },
{ name = "David Frédérique", email = "dfrederique@nobatek.inef4.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"flask>=3.0.2,<4.0",
"python-dotenv>=0.9.0",
"marshmallow>=3.18.0,<4.0",
"sqlalchemy>=2.0,<3.0",
"marshmallow-sqlalchemy>=0.29.0,<0.30",
"flask_smorest>=0.43.0,<0.44",
"apispec>=6.1.0,<7.0",
"authlib>=1.3.0,<2.0",
"bemserver-core>=0.18.1,<0.19",
]
[project.urls]
Issues = "https://github.com/bemserver/bemserver-api/issues"
Source = "https://github.com/bemserver/bemserver-api"
[build-system]
requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"
[tool.flit.sdist]
include = [
"docs/",
"tests/",
"CHANGELOG.rst",
"tox.ini",
]
[tool.ruff]
src = ["src"]
fix = true
show-fixes = true
output-format = "full"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "testing", "db", "pallets", "marshmallow", "science", "third-party", "core", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
testing = ["pytest", "pytest_postgresql"]
db = ["psycopg", "sqlalchemy", "alembic"]
pallets = ["werkzeug", "flask"]
marshmallow = ["marshmallow", "marshmallow_sqlalchemy", "webargs", "apispec", "flask_smorest"]
science = ["numpy", "pandas"]
core = ["bemserver_core"]
[tool.pytest.ini_options]
norecursedirs = ".git .tox docs env venv"
addopts = "-v --tb=short"