-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
91 lines (80 loc) · 2.01 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
88
89
90
91
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "sdx-datamodel"
version = "3.0.0.dev2"
description = "Topology and request description data model in JSON"
authors = [
{ name = "Yufeng Xin", email = "[email protected]" },
{ name = "Sajith Sasidharan", email = "[email protected]" },
{ name = "Cong Wang", email = "[email protected]" },
{ name = "Italo Valcy", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
dependencies = [
"grenml",
"networkx",
"transitions",
"fastapi",
"pytz",
"importlib-resources; python_version < '3.9'",
]
[project.urls]
Home = "https://github.com/atlanticwave-sdx/datamodel"
Issues = "https://github.com/atlanticwave-sdx/datamodel/issues"
[project.optional-dependencies]
test = [
"pytest >= 7.1.2",
"pytest-cov >= 3.0.0",
"jsonschema >= 4.19.0",
"jsonref >= 1.1.0",
]
lint = [
"ruff == 0.1.11",
"black == 24.*",
"isort == 5.*",
]
[options.packages.find]
where = "."
[tool.setuptools_scm]
# Write version info collected from git to a file. This happens when
# we run `python -m build`.
write_to = "src/sdx_datamodel/_version.py"
[tool.pytest.ini_options]
addopts = "--cov --cov-report html --cov-report term-missing"
testpaths = [
"tests"
]
[tool.black]
# A line length of 79 is flake8's default, so let's go with that.
line-length = 79
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.coverage.run]
branch = true
source_pkgs = ["sdx_datamodel"]
omit = ["tests/*"]
relative_files = true
[tool.coverage.paths]
source = [
# In checkouts.
"src/",
# In installed paths.
"**/site-packages/",
# In tox environments.
".tox/**/site-packages/"
]
[tool.ruff]
ignore = [
"E501" # Ignore 'line too long' errors since we auto-format
# using black.
]