-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
193 lines (162 loc) · 4.86 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[tool.poetry]
name = "omnipy"
version = "0.19.0"
description = "Omnipy is a high level Python library for type-driven data wrangling and scalable workflow orchestration (under development)"
license = "Apache-2.0"
repository = "http://github.com/fairtracks/omnipy"
authors = ["Sveinung Gundersen <[email protected]>", "Federico Bianchini <[email protected]>", "Ahmed Ghanem <[email protected]>", "Joshua Baskaran <[email protected]>"]
readme = "README.md"
homepage = "https://fairtracks.net/fair/#fair-07-transformation"
documentation = "http://omnipy.readthedocs.io/"
keywords = ["data wrangling", "metadata", "workflows", "etl", "research data", "prefect", "pydantic", "FAIR", "ontologies", "JSON", "tabular", "type-driven", "orchestration", "data models", "universal"]
classifiers = ["Development Status :: 2 - Pre-Alpha", "Framework :: Pydantic", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Libraries"]
packages = [{include = "omnipy", from = "src"}]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
#python = ">=3.8.1,<4.0"
#pendulum = "^3.0.0b1"
aiostream = "^0.4.5"
#greenlet = "2.0.2"
inflection = "^0.5.1"
pandas = "<2.2"
prefect = ">2.13.2,<3"
pytest-asyncio = "^0.20.2"
pytest-cases = "^3.6.13"
# To be removed
requests = "^2.25.1"
# Potential dependencies
#dpath = "^2.1.0"
#beartype = "^0.11.0"
#typing-extensions = "^4.4.0"
#phantom-types = "^1.1.0"
#orjson = "^3.8.0"
#python-slugify = "^7.0.0"
isort = "^5.12.0"
chardet = "^5.2.0"
pathspec = "0.12.1"
devtools = "^0.12.2"
objsize = "^0.7.0"
humanize = "^4.9.0"
pydantic = {version = "<2", extras = ["email"]}
griffe = "<1"
ipython = ">=7.34.0"
pydantic-core = "^2.24.2"
aiohttp = "^3.10.6"
aiohttp-retry = "^2.9.0"
aiolimiter = "^1.1.0"
[tool.poetry.group.dev.dependencies]
deepdiff = "^6.2.1"
pytest = "^7.1.0"
pytest-pycharm = "^0.7.0"
types-python-slugify = "^8.0.0.1"
types-requests = "^2.28.11.15"
pandas-stubs = "^2.1.1.230928"
pre-commit = "^3.8.0"
pytest-mypy-plugins = "^3.1.2"
devtools = "^0.12.2"
mypy = "^1.13.0"
pytest-aiohttp = "^1.0.5"
pyright = "^1.1.389"
[tool.poetry.group.docs.dependencies]
pymdown-extensions = "^10.0.1"
mkdocs = "^1.5.3"
mkdocstrings = {version = ">=0.26.1", extras=["python"]}
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.1"
mkdocs-section-index = "^0.3.8"
mkdocs-material = "^9.4.6"
mdx-truly-sane-lists = "^1.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.setuptools.package-data]
"omnipy" = ["py.typed"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.yapf]
allow_split_before_dict_value = true
based_on_style = "google"
align_closing_bracket_with_visual_indent = true
blank_line_before_nested_class_or_def = false
column_limit = 100
indent_dictionary_value = true
join_multiple_lines = true
split_all_comma_separated_values = false
split_all_top_level_comma_separated_values = true
split_before_expression_after_opening_paren = true
split_before_bitwise_operator = true
split_before_logical_operator = true
split_before_arithmetic_operator = true
[tool.isort]
profile = "google"
force_single_line = false
multi_line_output = 1
src_paths = ["src/omnipy", "tests"]
line_length = 100
[flows]
checkpointing = true
[tool.mypy]
# Adapted from https://quantlane.com/blog/type-checking-large-codebase/
# General
python_version = "3.10"
mypy_path = "src:tests"
ignore_missing_imports = true
follow_imports = "silent"
# Ensure full coverage
#disallow_untyped_calls = true
#disallow_untyped_defs = true
#disallow_incomplete_defs = true
#disallow_untyped_decorators = true
#check_untyped_defs = true
# Restrict dynamic typing
#disallow_any_generics = true
#disallow_subclassing_any = true
#warn_return_any = true
# Know exactly what you're doing
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = false
show_error_codes = true
# Explicit is better than implicit
no_implicit_optional = true
# Others
warn_no_return = false
disable_error_code = ["empty-body"]
#show_column_numbers = true
error_summary = true
verbosity = 0
#no_implicit_reexport = true
#plugins = [
# "pydantic.mypy"
#]
[[tool.mypy.overrides]]
module = "tests.*"
# pytest decorators are not typed
disallow_untyped_decorators = false
#[[tool.mypy.overrides]]
#module = "firstmodule.*"
#ignore_missing_imports = true
#follow_imports = 'silent'
#[tool.pydantic-mypy]
##init_forbid_extra = true
#init_typed = false
#warn_required_dynamic_aliases = true
[tool.pyright]
reportFunctionMemberAccess = 'warning'
reportUnusedExpression = 'none'
[tool.pytest.ini_options]
addopts = "--tb=native"
testpaths = [
"tests",
]
asyncio_mode = "auto"
[tool.portray]
docs_dir = "docs/portray"
directory = "."
[tool.portray.pdocs]
template_dir = "docs/templates/pdocs"
[project]
dependencies = [
"mkdocstrings[python]>=0.18",
]