-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (107 loc) · 2.77 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "toyml"
version = "0.4.0"
description = "ToyML: Machine Learning from Scratch"
keywords=["machine learning", "statistics", "engineering"]
license = {text = "Apache 2.0"}
readme = "README.md"
authors = [
{name = "Xiangzhuang Shen", email = "datahonor@gmail.com"},
]
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
]
requires-python = ">= 3.10"
dependencies = []
[project.optional-dependencies]
dev = [
"pre-commit",
"ipython",
"black",
"flake8",
"mypy",
"isort",
"ruff",
"pytest",
"pytest-cov",
"hypothesis>=6.112.0",
"scikit-learn",
"numpy>=2.1.1",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-material-extensions",
"mkdocs-bibtex",
"mkdocstrings-python",
"mkdocs-autorefs",
"mkdocs-git-committers-plugin-2",
"mkdocs-git-revision-date-localized-plugin",
]
plot = [
"matplotlib",
"networkx",
"scipy",
]
[project.urls]
"Homepage" = "https://github.com/ai-glimpse/toyml"
"Bug Tracker" = "https://github.com/ai-glimpse/toyml/issues"
"Documentation" = "https://ai-glimpse.github.io/toyml/"
"Source Code" = "https://github.com/ai-glimpse/toyml"
"Release Notes" = "https://ai-glimpse.github.io/toyml/changelog/"
[tool.setuptools]
zip-safe = true
include-package-data = true
[tool.setuptools.packages.find]
include = ["toyml*"]
namespaces = false
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_decorators = false
plugins = ["numpy.typing.mypy_plugin"]
strict = true
[tool.ruff]
# Allow lines to be as long as 120.
line-length = 120
# Development tool configuration
[tool.isort]
profile = "black"
lines_between_types = 1
[tool.pytest.ini_options]
addopts = "-v --cov=toyml --cov-fail-under 90 --cov-report=term --cov-report=xml --cov-report=html"
testpaths = [
"tests",
]
[tool.coverage.run]
omit = [
"./toyml/utils/*", # TODO: remove from omit
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'raise AssertionError',
'raise NotImplementedError',
'if __name__ == .__main__.:',
'def __repr__',
]
fail_under = 90
precision = 1
skip_empty = true
sort = "-Cover"