-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (92 loc) · 2.26 KB
/
pyproject.toml
File metadata and controls
108 lines (92 loc) · 2.26 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "simplexers"
version = "1.0.0"
authors =[{ name="Matthew Caudill", email="mscaudill@gmail.com" }]
description = "Vector Projections onto Positive and Capped Simplices"
readme = "README.md"
requires-python = ">=3.10"
keywords = ["machine learning", "large-scale optimization"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Topic :: Education",
"Topic :: Software Development",
"Topic :: Scientific/Engineering"
]
dependencies = [
"numpy",
"scipy",
]
[project.optional-dependencies]
dev = [
"ipython",
"notebook",
"isort",
"mypy",
"pylint",
"black",
"codespell",
"pytest==7.4.4",
"pytest-lazy-fixture",
"bumpver",
"pip-tools",
"build",
"twine",
]
test = ["pytest==7.4.4", "pytest-lazy-fixture"]
lint = ["pylint"]
[project.urls]
Homepage = "https://github.com/mscaudill/simplexers"
[tool.setuptools.packages.find]
where = ["src"]
# inform type checkers simplexers supports annotations
[tool.setuptools.package-data]
simplexers = ["py.typed"]
# mypy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
# 3rd party's without annotations
module = ["scipy.*"]
ignore_missing_imports = true
# pylint configuration
[tool.pylint.design]
max-attributes = 10
max-args = 10
max-locals = 20
[tool.pylint.basic]
argument-naming-style = "any"
variable-naming-style = "any"
attr-naming-style = "any"
[tool.isort]
profile = 'google'
line_length = 80
[tool.codespell]
skip = '*.json,*.txt,*.npy,*.ipynb'
before-context = 3
after-context = 3
quiet-level = 3
[tool.black]
line-length = 80
skip-string-normalization = true
# Bumpver configuration
[tool.bumpver]
current_version = "1.0.0"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^version = "{version}"',
'^current_version = "{version}"',
]
"src/simplexers/__init__.py" = ['__version__ = "{version}"']