-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (137 loc) · 3.92 KB
/
pyproject.toml
File metadata and controls
159 lines (137 loc) · 3.92 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["setuptools>=67.6.1"]
build-backend = "setuptools.build_meta"
[project]
name = "Annealing"
authors = [{ name = "Jason C Del Rio", email = "spillthetea917@gmail.com" }]
maintainers = [{ name = "Jason C Del Rio", email = "spillthetea917@gmail.com" }]
description = "Clean Extensible Interface for Simulated Annealing."
license = { file = "LICENSE" }
requires-python = ">=3.10"
keywords = [
"simulated annealing",
"optimization",
"TSP",
"combinatorics",
"traveling salesman problem",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dynamic = ["version", "readme", "dependencies"]
[project.urls]
homepage = "https://github.com/Spill-Tea/Simulated-Annealing"
issues = "https://github.com/Spill-Tea/Simulated-Annealing/issues"
[tool.setuptools.dynamic]
version = { attr = "Annealing.__version__" }
readme = { file = ["README.md"], content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["benchmarks", "docs", "tests"]
[tool.setuptools.package-data]
"*" = ["py.typed", "*.pyi"]
[project.optional-dependencies]
dev = ["Annealing[doc,test,lint,type]", "tox", "pre-commit"]
doc = ["sphinx", "furo", "sphinx_multiversion"]
test = ["pytest", "coverage", "pytest-xdist"]
lint = ["pylint", "ruff"]
type = ["mypy"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-n auto -rA"
[tool.coverage.run]
parallel = true
branch = true
source = ["Annealing"]
disable_warnings = ["no-data-collected", "module-not-imported"]
[tool.coverage.paths]
source = ["src", "*/.tox/py*/**/site-packages"]
[tool.coverage.report]
fail_under = 95.0
precision = 1
show_missing = true
skip_empty = true
exclude_also = [
"def __repr__",
'if __name__ == "__main__"',
"raise NotImplementedError"
]
[tool.mypy]
mypy_path = "Annealing"
warn_unused_ignores = true
allow_redefinition = false
[tool.pylint.main]
ignore = ["tests", "dist", "build"]
fail-under = 9.0
jobs = 0
limit-inference-results = 100
persistent = true
suggestion-mode = true
[tool.pylint.basic]
argument-naming-style = "snake_case"
attr-naming-style = "snake_case"
class-const-naming-style = "UPPER_CASE"
class-naming-style = "PascalCase"
variable-naming-style = "snake_case"
module-naming-style = "any"
[tool.pylint.format]
max-line-length = 88
[tool.pylint."messages control"]
disable = [
"R0903", # too-few-public-methods
]
[tool.ruff]
line-length = 88
indent-width = 4
respect-gitignore = true
[tool.ruff.lint]
select = [
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PYI", # flake8-pyi
"RUF", # ruff
"W", # pycodestyle
"PIE", # flake8-pie
"PGH004", # pygrep-hooks - Use specific rule codes when using noqa
"PLE", # pylint error
"PLW", # pylint warning
"PLR1714", # Consider merging multiple comparisons
"UP", # Pyupgrade
]
ignore = [
"D102", # undocumented-public-method (D102)
"D105", # undocumented-magic-method (D105)
"D107", # undocumented-public-init (D107)
"D203", # one-blank-line-before-class (D203)
"D213", # multi-line-summary-second-line (D213)
"PLR0913", # too-many-arguments (PLR0913)
"C408", # unnecessary-collection-call (C408)
]
[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google" | "numpy" | "pep257"
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"E402", # Import Statement not at Top of File
"F401", # Unused Imports
]
"tests/*.py" = [
"D", # PyDocstyle
"PLR2004", # magic-value-comparison (PLR2004)
"F841", # unused-variable (F841)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"