-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (127 loc) · 4.15 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (127 loc) · 4.15 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
140
141
142
[build-system]
requires = [
"meson-python",
"numpy>=2.0.0",
"packaging",
"setuptools_scm>=8"
]
build-backend = "mesonpy"
[project]
name = "pyswarm"
dynamic = ["version"]
description = "Particle Swarm Optimization (PSO) for Python"
authors = [
{ name = "Abraham Lee", email = "tisimst@gmail.com" },
]
maintainers = [
{ name = "Saud Zahir", email = "m.saud.zahir@gmail.com" },
{ name = "M Laraib Ali", email = "laraibg786@outlook.com" }
]
readme = "README.md"
license = "BSD-3-Clause"
keywords = [
"particle",
"swarm",
"optimization",
"python",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"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",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
"numpy",
]
requires-python = ">=3.10"
[project.urls]
homepage = "https://eggzec.github.io/pyswarm/"
documentation = "https://eggzec.github.io/pyswarm/"
source = "https://github.com/eggzec/pyswarm"
releasenotes = "https://github.com/eggzec/pyswarm/releases/latest"
issues = "https://github.com/eggzec/pyswarm/issues"
[dependency-groups]
dev = [
{include-group = "docs"},
{include-group = "lint"},
{include-group = "test"}
]
docs = [
"zensical>=0.0.42"
]
lint = [
"ruff==0.15.*",
]
test = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.8.0",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
include = [ "pyswarm" ]
[tool.ruff]
line-length = 80
indent-width = 4
preview = true
# Output serialization format for violations. The default serialization
# format is "full" [env: RUFF_OUTPUT_FORMAT=] [possible values:
# concise, full, json, json-lines, junit, grouped, github, gitlab,
# pylint, rdjson, azure, sarif]
output-format = "grouped"
[tool.ruff.lint]
isort.lines-after-imports = 2
isort.split-on-trailing-comma = false
select = [
"ANN", # flake8-annotations (required strict type annotations for public functions)
"S", # flake8-bandit (checks basic security issues in code)
"BLE", # flake8-blind-except (checks the except blocks that do not specify exception)
"FBT", # flake8-boolean-trap (ensure that boolean args can be used with kw only)
"E", # pycodestyle errors (PEP 8 style guide violations)
"W", # pycodestyle warnings (e.g., extra spaces, indentation issues)
"DOC", # pydoclint issues (e.g., extra or missing return, yield, warnings)
"A", # flake8-buitins (check variable and function names to not shadow builtins)
"N", # Naming convention checks (e.g., PEP 8 variable and function names)
"F", # Pyflakes errors (e.g., unused imports, undefined variables)
"I", # isort (Ensures imports are sorted properly)
"B", # flake8-bugbear (Detects likely bugs and bad practices)
"TID", # flake8-tidy-imports (Checks for banned or misplaced imports)
"UP", # pyupgrade (Automatically updates old Python syntax)
"YTT", # flake8-2020 (Detects outdated Python 2/3 compatibility issues)
"FLY", # flynt (Converts old-style string formatting to f-strings)
"PIE", # flake8-pie
"PL", # pylint
"RUF", # Ruff-specific rules (Additional optimizations and best practices)
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["RUF067"]
"tests/*.py" = []
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.pytest.ini_options]
addopts = "--doctest-modules"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.setuptools_scm]
version_scheme = "release-branch-semver"
local_scheme = "no-local-version"
[tool.cibuildwheel]
enable = ["cpython-prerelease"]