-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
107 lines (91 loc) · 1.9 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
[tool.poetry]
name = "pone-apollo"
version = "0.1.0"
description = ""
authors = ["Janik Prottung <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
packages = [{include = "apollo"}]
[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.23.4"
awkward = "^1.10.2"
pandas = "^1.5.1"
pyarrow = "^10.0.0"
plotly = "^5.11.0"
[tool.poetry.group.dev.dependencies]
flake8 = "^5.0.4"
mypy = "^0.991"
black = {extras = ["jupyter"], version = "^22.10.0"}
pytest = "^7.2.0"
jupyter = "^1.0.0"
pytest-cov = "^4.0.0"
isort = "^5.10.1"
sphinx = "^5.3.0"
sphinx-rtd-theme = "^1.1.1"
pydocstyle = {extras = ["toml"], version = "^6.1.1"}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py38"]
preview = true
force-exclude = '''
.*/setup\.py$
'''
[tool.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.8"
plugins = "numpy.typing.mypy_plugin"
files = "apollo"
strict = true
warn_return_any = true
[[tool.mypy.overrides]]
module = [
"apollo.data.importers",
"apollo.graph.*",
"examples.*",
"tests.*"
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"matplotlib",
"matplotlib.*",
"torch",
"plotly",
"plotly.*",
"awkward",
"pandas",
"olympus.*"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
# Personal preference: I am too used to native traceback
testpaths = [
"tests"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"nocov",
"if TYPE_CHECKING:",
]
[tool.coverage.run]
# Activating branch coverage is super important
branch = true
omit = [
# add your files to omit here
]
[tool.isort]
py_version = 38
profile = "black"
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
src_paths = ["apollo", "tests"]
extend_skip = ["setup.py"]
known_third_party = ["poetry.core"]