-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (127 loc) · 3.19 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (127 loc) · 3.19 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "nprime"
dynamic = ["version"]
description = "Python library for primes algorithms"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GNU General Public License v3.0"}
authors = [
{name = "sylhare", email = "sylhare@outlook.com"},
]
keywords = ["prime", "fermat", "miller rabin", "math"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Utilities"
]
dependencies = [
"matplotlib>=3.9.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"coverage>=7.0",
"xdoctest>=1.3.0",
"pypandoc>=1.14",
"ruff>=0.8.0",
]
lint = [
"ruff>=0.8.0",
]
build = [
"hatchling>=1.25.0",
"pypandoc>=1.14",
]
test = [
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"xdoctest>=1.3.0",
]
coverage = [
"codecov",
"codacy-coverage",
"coverage>=7.0",
]
[project.urls]
Homepage = "https://github.com/Sylhare/nprime"
Repository = "https://github.com/Sylhare/nprime"
Issues = "https://github.com/Sylhare/nprime/issues"
Documentation = "https://github.com/Sylhare/nprime"
[tool.hatch.version]
path = "nprime/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["nprime"]
[tool.hatch.build.targets.sdist]
include = [
"/nprime",
"/tests",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
]
[tool.pytest.ini_options]
addopts = "--xdoctest --xdoctest-style=google --ignore-glob=setup.py --ignore-glob=docs --ignore-glob=demo"
norecursedirs = ".git build __pycache__ demo docs"
filterwarnings = [
"default",
]
testpaths = ["tests", "nprime"]
[tool.coverage.run]
source = ["nprime"]
omit = [
"*/tests/*",
"*/demo/*",
"*/docs/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.ruff]
target-version = "py310"
line-length = 120
extend-exclude = ["docs", "demo", "dist", "build"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"UP", # pyupgrade
"B", # flake8-bugbear
]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"coverage>=7.0",
"xdoctest>=1.3.0",
"pypandoc>=1.14",
"codecov",
"codacy-coverage",
"ruff>=0.8.0",
]