generated from kyegomez/Python-Package-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
131 lines (109 loc) · 3.3 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
[build-system]
requires = [
'maturin>=1,<2',
'typing-extensions >=4.6.0,!=4.7.0'
]
build-backend = 'maturin'
[project]
name = "swarms-core"
version = "0.0.2"
description = "Swarms Core - Python"
license = "MIT"
authors = [
{name = 'Kye Gomez', email = 'kye@apac.ai'}
]
homepage = "https://github.com/kyegomez/swarms-core"
documentation = "https://github.com/kyegomez/swarms-core" # Add this if you have documentation.
readme = "README.md"
repository = "https://github.com/kyegomez/swarms-core"
keywords = ["artificial intelligence", "deep learning", "optimizers", "Prompt Engineering"]
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Rust',
'Framework :: Swarms',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS',
'Typing :: Typed',
]
[project.urls]
Homepage = 'https://github.com/kyegomes/swarms-core'
Funding = 'https://github.com/sponsors/kyegomez'
Source = 'https://github.com/kyegomez/swarms-core'
[dependencies]
python = "^3.6"
swarms = "*"
[dev-dependencies]
pytest = "^6.2.4"
pytest-benchmark = "^3.4.1"
maturin = "*"
[tool.poetry.group.lint.dependencies]
ruff = "^0.1.6"
types-toml = "^0.10.8.1"
types-redis = "^4.3.21.6"
types-pytz = "^2023.3.0.0"
black = "^23.1.0"
types-chardet = "^5.0.4.6"
mypy-protobuf = "^3.0.0"
[tool.autopep8]
max_line_length = 80
ignore = "E501,W6" # or ["E501", "W6"]
in-place = true
recursive = true
aggressive = 3
[tool.ruff]
line-length = 70
[tool.black]
line-length = 70
target-version = ['py38']
preview = true
[tool.maturin]
python-source = "python"
module-name = "swarms_core.pyrust_parallel"
bindings = 'pyo3'
features = ["pyo3/extension-module"]
include = [{ path = "path/**/*", format = "sdist" }]
# [tool.ruff.lint]
# extend-select = ['Q', 'RUF100', 'C90', 'I']
# extend-ignore = [
# 'E721', # using type() instead of isinstance() - we use this in tests
# ]
# flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'}
# mccabe = { max-complexity = 13 }
# isort = { known-first-party = ['swarms_core', 'tests'] }
# [tool.ruff.format]
# quote-style = 'single'
# [tool.pytest.ini_options]
# testpaths = 'tests'
# log_format = '%(name)s %(levelname)s: %(message)s'
# timeout = 30
# xfail_strict = true
# # min, max, mean, stddev, median, iqr, outliers, ops, rounds, iterations
# addopts = [
# '--benchmark-columns', 'min,mean,stddev,outliers,rounds,iterations',
# '--benchmark-group-by', 'group',
# '--benchmark-warmup', 'on',
# '--benchmark-disable', # this is enable by `make benchmark` when you actually want to run benchmarks
# ]
[tool.coverage.run]
source = ['swarms_core']
branch = true
[tool.coverage.report]
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'@overload',
]