-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (135 loc) · 4.16 KB
/
Copy pathpyproject.toml
File metadata and controls
147 lines (135 loc) · 4.16 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Setup information - see below for dev tool configuration
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "soft7"
authors = [
{name = "Thomas Fjæstad Hagelien", email = "thomas.f.hagelien@sintef.no"},
{name = "Casper Welzel Andersen", email = "casper.w.andersen@sintef.no"},
{name = "Treesa Rose Joseph", email = "treesa.joseph@sintef.no"},
]
description = "SOFT7 semantic interoperability framework."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Natural Language :: English",
"Operating System :: OS Independent",
]
keywords = ["interoperability", "semantic"]
requires-python = "~=3.10"
dynamic = ["version"]
dependencies = [
"httpx2>=2.3,<3",
"oteapi-core~=1.0",
"otelib~=1.0",
"pyyaml~=6.0",
]
# Other dependencies governed by oteapi-core:
# - pydantic
[project.optional-dependencies]
docs = [
"myst-nb~=1.2",
"pydata-sphinx-theme~=0.19.0",
"sphinx~=8.1",
]
graph = [
"jinja2~=3.1",
"rdflib~=7.1",
"sparqlwrapper~=2.0",
]
testing = [
"httpx2-pytest~=1.0",
"pytest~=9.0",
"pytest-cov~=7.0",
"requests-mock~=1.12",
"soft7[graph]",
]
dev = [
"pre-commit~=4.2",
"soft7[docs,graph,testing]",
]
[project.urls]
Home = "https://github.com/SINTEF/soft7"
Documentation = "https://SINTEF.github.io/soft7"
Source = "https://github.com/SINTEF/soft7"
"Issue Tracker" = "https://github.com/SINTEF/soft7/issues"
Changelog = "https://github.com/SINTEF/soft7/blob/main/CHANGELOG.md"
Package = "https://pypi.org/project/soft7"
# Register OTEAPI strategies
[project.entry-points."oteapi.function"]
"soft7.soft7" = "s7.oteapi_plugin.soft7_function:SOFT7Generator"
"soft7.SOFT7" = "s7.oteapi_plugin.soft7_function:SOFT7Generator"
"soft7.soft" = "s7.oteapi_plugin.soft7_function:SOFT7Generator"
"soft7.SOFT" = "s7.oteapi_plugin.soft7_function:SOFT7Generator"
[project.entry-points."oteapi.parse"]
"soft7.parser/yaml" = "s7.oteapi_plugin.yaml_parser:YAMLDataParseStrategy"
"soft7.parser/yml" = "s7.oteapi_plugin.yaml_parser:YAMLDataParseStrategy"
[tool.flit.module]
name = "s7"
# Dev tool configurations
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
plugins = ["pydantic.mypy"]
[tool.pytest.ini_options]
minversion = "8.1"
addopts = "-rs --cov=s7 --cov-report=term-missing:skip-covered --no-cov-on-fail"
filterwarnings = [
"error", # Fail on any warning
# Ignore deprecation of accessing the 'model_fields' attribute on an instance.
# There is not apparent way out of this in the case of the `s7.pydantic_models.datasource.CallableAttributesBaseModel`.
"ignore:.*Accessing the 'model_fields' attribute on the instance is deprecated.*:pydantic.warnings.PydanticDeprecatedSince211",
]
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"YTT", # flake8-2020
"EXE", # flake8-executable
"PYI", # flake8-pyi
]
ignore = [
"PLC", # Convention related pylint codes
"PLR", # Refactor related pylint codes
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**" = [
"BLE", # flake8-blind-except
"PL", # pylint
"B018", # useless expression
]
"docs/**" = [
"I002", # from __future__ import annotations
]
"graph/**" = [
"T20", # flake8-print
]