-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
152 lines (136 loc) · 3.4 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
# build-system
[build-system]
requires = [
"setuptools>=61",
"setuptools-scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
# Project
[project]
name = "probinet"
description = "Python package for probabilistic network analysis."
version = "1.0"
requires-python = ">=3.10,<3.13"
readme = "README.md"
authors = [
{name = "Diego Baptista Theuerkauf", email = "[email protected]"},
]
maintainers = [
{name= "Diego Baptista Theuerkauf", email= "[email protected]"},
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Typing :: Typed",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
"jupyter",
"matplotlib",
"networkx",
"numpy",
"pandas",
"pyyaml",
"pytest",
"scikit-learn",
"scipy",
"sparse",
"seaborn"
]
[project.optional-dependencies]
dev = [
"autopep8",
"coverage",
"coverage2clover",
"isort",
"jupyter",
"matplotlib",
"mypy",
"myst_nb",
"nbconvert",
"pylint",
"sphinxcontrib.bibtex",
"sphinxcontrib.napoleon",
'sphinx_book_theme',
"sphinx-copybutton",
"tox",
"unittest-xml-reporting"
]
# URLs
[project.urls]
documentation = "https://mpi-is.github.io/probinet/"
source = "https://github.com/MPI-IS/probinet"
tracker = "https://github.com/MPI-IS/probinet/issues"
# CLI
[project.scripts]
run_probinet = "probinet.main:main"
# Setuptools
[tool.setuptools]
packages = ["probinet"]
[tool.setuptools.package-data]
probinet = ["data/input", "data/model", "probinet/py.typed"]
[tool.setuptools.dynamic.readme]
file = "README.md"
# Autopep8
[tool.autopep8]
max_line_length = 100
aggressive = 3
# isort
[tool.isort]
profile = "black" # Align with Black's formatting rules
line_length = 88 # Match Black's line length
multi_line_output = 3 # Ensure parentheses-style formatting (no collapsing into one line)
include_trailing_comma = true # Required for Black compatibility
force_single_line = false # Prevent splitting imports into individual lines
src_paths = ["probinet"]
# Pylint
[tool.pylint.MASTER]
disable = ["attribute-defined-outside-init"]
load-plugins = "pylint.extensions.docparams"
extension-pkg-whitelist = "numpy"
[tool.pylint.FORMAT]
max-line-length = 100
[tool.pylint.MESSAGES_CONTROL]
disable = ["C", # convention
]
# Coverage
[tool.coverage.run]
branch = true
source = ["probinet"]
omit = ["probinet/version.py", "tests"]
[tool.coverage.report]
show_missing = true
skip_empty = true
# MyPy
[tool.mypy]
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310, py311, py312, docs
[testenv]
description =
run unit tests
extras =
dev
commands =
python -m xmlrunner
[testenv:docs]
basepython = python3.10
commands =
sphinx-build -d "{envtmpdir}{/}doctree" docs/source/ "{toxworkdir}{/}docs_out" --color -b html
python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")'
[testenv:type]
deps = mypy
skip_install = true
commands = mypy --install-types probinet
"""