generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
150 lines (130 loc) · 5.89 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
[project]
name = "pathpyG"
authors = [
{ name = "Ingo Scholtes", email = "ingo.scholtes@uni-wuerzburg.de" },
{ name = "Jürgen Hackl", email = "hackl@princeton.edu" },
]
description = "GPU-accelerated Next-Generation Network Analytics and Graph Learning for Time Series Data on Complex Networks."
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Environment :: GPU :: NVIDIA CUDA :: 11.7",
"Environment :: GPU :: NVIDIA CUDA :: 11.8",
]
requires-python = ">=3.10" # We are using `match` statements
dynamic = ["version"]
dependencies = [
'singledispatchmethod', # Adds decorator that allows to use different methods for different types of arguments (similar to method overloading in Java)
'zstandard', # Compression library
'numpy', # Numerical computing library
'scipy', # Scientific computing library
'scikit-learn', # Machine learning library
'pandas', # Data analysis library
'matplotlib', # Plotting library
'seaborn', # High-level plotting library
"jupyter", # To run the tutorial notebooks
]
[project.optional-dependencies]
test = [
"pytest", # Testing framework
"pytest-cov", # Code coverage plugin for pytest
"pytest-mock", # Mocking plugin for pytest
"pytest-benchmark", # Benchmarking plugin for pytest
]
dev = [
"flake8", # Linter
"flake8-pyproject", # Enables flake8 to read pyproject.toml
"flake8-bugbear", # Additional flake8 rules to find common bugs
"pylint", # Another linter with mostly different rules
"black", # Code formatter
"pre-commit", # Python package to enable GitHub pre-commit hooks
"pathpy2", # Old pathpy version for comparisons
"mypy", # Static type checker
]
doc = [
"mkdocs", # Documentation generator
"mkdocs-material", # Theme for mkdocs
"mkdocstrings", # Plugin to generate documentation from docstrings
"mkdocstrings-python", # Python language handler for mkdocstrings
"markdown-exec", # Plugin to execute code in markdown files
"mkdocs-gen-files", # Plugin to move python files to documentation automatically
"mkdocs-literate-nav", # Plugin to add navigation for API reference
"mkdocs-section-index", # For better navigation in API reference
"mkdocs-jupyter", # Plugin to include Jupyter notebooks in documentation
"mkdocs-git-revision-date-localized-plugin", # Plugin to add date of last update to documentation
"mike" # Tool for versioning the documentation
]
[project.urls]
Documentation = "https://www.pathpy.net"
Source = "https://github.com/pathpy/pathpyG"
Tracker = "https://github.com/pathpy/pathpyG/issues"
########################################################################################
########################### Build system configuration #################################
########################################################################################
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "pathpyG"
########################################################################################
############################# Test configuration #######################################
########################################################################################
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = "tests"
markers = [
"benchmark: marks tests as benchmarking tests (deselect with '-m \"not benchmark\"')"
]
addopts = "--cov=src -m \"not benchmark\""
[tool.coverage.run]
branch = true
[tool.coverage.report]
fail_under = 65
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if self.debug",
"if settings.DEBUG",
"if TYPE_CHECKING",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
show_missing = true
skip_covered = true
########################################################################################
############################# Linting configuration ####################################
########################################################################################
[tool.flake8] # Linter and code style checker
max-line-length = 120
extend-ignore = "E203" # whitespace before ':' conflicts with black
per-file-ignores = "__init__.py:F401" # Ignore unused imports in __init__.py files
[tool.pylint.format] # Linter
max-line-length = 120
# Disable information about: Unnecessary "else" after "return", remove the "else" and de-indent the code inside
disable = "R1705"
[tool.pyright]
reportGeneralTypeIssues = false
[tool.mypy] # Static type checker
check_untyped_defs = true
warn_unused_ignores = true
show_error_codes = true
ignore_missing_imports = true
[[tool.mypy.overrides]] # Disable mypy for the dir `tests/`
module = "tests.*"
ignore_errors = true
########################################################################################
############################# Formatting configuration #################################
########################################################################################
[tool.isort] # Sorts imports
profile = "black"
skip = [".gitignore", "__init__.py"]
[tool.black] # Code formatter
line-length = 120
target-version = ["py38", "py39", "py310"]