Skip to content

Commit c9ec105

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 889fbf2 commit c9ec105

File tree

1 file changed

+139
-39
lines changed

1 file changed

+139
-39
lines changed

pyproject.toml

Lines changed: 139 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,48 @@
22
name = "thealgorithms-python"
33
version = "0.0.1"
44
description = "TheAlgorithms in Python"
5-
authors = [{ name = "TheAlgorithms Contributors" }]
5+
authors = [ { name = "TheAlgorithms Contributors" } ]
66
requires-python = ">=3.11"
77
classifiers = [
88
"Programming Language :: Python :: 3 :: Only",
9+
"Programming Language :: Python :: 3.11",
10+
"Programming Language :: Python :: 3.12",
11+
"Programming Language :: Python :: 3.13",
912
]
1013
dependencies = [
1114
"beautifulsoup4>=4.12.3",
1215
"cython>=3.0.11",
1316
"fake-useragent>=1.5.1",
1417
"httpx>=0.28.1",
1518
"imageio>=2.36.1",
16-
"keras>=3.7.0",
17-
"lxml>=5.3.0",
19+
"keras>=3.7",
20+
"lxml>=5.3",
1821
"matplotlib>=3.9.3",
1922
"numpy>=2.1.3",
2023
"opencv-python>=4.10.0.84",
2124
"pandas>=2.2.3",
22-
"pillow>=11.0.0",
25+
"pillow>=11",
2326
"rich>=13.9.4",
2427
"scikit-learn>=1.5.2",
2528
"scipy>=1.14.1",
26-
"sphinx-pyproject>=0.3.0",
29+
"sphinx-pyproject>=0.3",
2730
"statsmodels>=0.14.4",
2831
"sympy>=1.13.3",
29-
"tweepy>=4.14.0",
32+
"tweepy>=4.14",
3033
"typing-extensions>=4.12.2",
3134
"xgboost>=2.1.3",
3235
]
3336

3437
[dependency-groups]
3538
test = [
3639
"pytest>=8.4.1",
37-
"pytest-cov>=6.0.0",
40+
"pytest-cov>=6",
3841
]
3942

4043
docs = [
41-
"myst-parser>=4.0.0",
42-
"sphinx-autoapi>=3.4.0",
43-
"sphinx-pyproject>=0.3.0",
44+
"myst-parser>=4",
45+
"sphinx-autoapi>=3.4",
46+
"sphinx-pyproject>=0.3",
4447
]
4548

4649
euler-validate = [
@@ -52,25 +55,79 @@ euler-validate = [
5255
target-version = "py311"
5356
output-format = "full"
5457
lint.select = [
55-
"A", "ARG", "ASYNC", "B", "BLE", "C4", "C90", "DJ", "DTZ", "E", "EM", "EXE", "F", "FA",
56-
"FLY", "G", "I", "ICN", "INP", "INT", "ISC", "N", "NPY", "PD", "PGH", "PIE", "PL",
57-
"PT", "PYI", "RSE", "RUF", "S", "SIM", "SLF", "T10", "TD", "TID", "UP", "W", "YTT"
58+
"A",
59+
"ARG",
60+
"ASYNC",
61+
"B",
62+
"BLE",
63+
"C4",
64+
"C90",
65+
"DJ",
66+
"DTZ",
67+
"E",
68+
"EM",
69+
"EXE",
70+
"F",
71+
"FA",
72+
"FLY",
73+
"G",
74+
"I",
75+
"ICN",
76+
"INP",
77+
"INT",
78+
"ISC",
79+
"N",
80+
"NPY",
81+
"PD",
82+
"PGH",
83+
"PIE",
84+
"PL",
85+
"PT",
86+
"PYI",
87+
"RSE",
88+
"RUF",
89+
"S",
90+
"SIM",
91+
"SLF",
92+
"T10",
93+
"TD",
94+
"TID",
95+
"UP",
96+
"W",
97+
"YTT",
5898
]
5999
lint.ignore = [
60-
"B904", "B905", "EM101", "EXE001", "G004", "ISC001", "PLC0415", "PLC1901", "PLW060",
61-
"PLW1641", "PLW2901", "PT011", "PT018", "PT028", "S101", "S311", "SIM905", "SLF001", "UP037"
100+
"B904",
101+
"B905",
102+
"EM101",
103+
"EXE001",
104+
"G004",
105+
"ISC001",
106+
"PLC0415",
107+
"PLC1901",
108+
"PLW060",
109+
"PLW1641",
110+
"PLW2901",
111+
"PT011",
112+
"PT018",
113+
"PT028",
114+
"S101",
115+
"S311",
116+
"SIM905",
117+
"SLF001",
118+
"UP037",
62119
]
63120

64-
lint.per-file-ignores."data_structures/hashing/tests/test_hash_map.py" = ["BLE001"]
65-
lint.per-file-ignores."hashes/enigma_machine.py" = ["BLE001"]
66-
lint.per-file-ignores."machine_learning/sequential_minimum_optimization.py" = ["SIM115"]
67-
lint.per-file-ignores."matrix/sherman_morrison.py" = ["SIM103"]
68-
lint.per-file-ignores."physics/newtons_second_law_of_motion.py" = ["BLE001"]
69-
lint.per-file-ignores."project_euler/problem_099/sol1.py" = ["SIM115"]
70-
lint.per-file-ignores."sorts/external_sort.py" = ["SIM115"]
121+
lint.per-file-ignores."data_structures/hashing/tests/test_hash_map.py" = [ "BLE001" ]
122+
lint.per-file-ignores."hashes/enigma_machine.py" = [ "BLE001" ]
123+
lint.per-file-ignores."machine_learning/sequential_minimum_optimization.py" = [ "SIM115" ]
124+
lint.per-file-ignores."matrix/sherman_morrison.py" = [ "SIM103" ]
125+
lint.per-file-ignores."physics/newtons_second_law_of_motion.py" = [ "BLE001" ]
126+
lint.per-file-ignores."project_euler/problem_099/sol1.py" = [ "SIM115" ]
127+
lint.per-file-ignores."sorts/external_sort.py" = [ "SIM115" ]
71128

72129
lint.mccabe.max-complexity = 17
73-
lint.pylint.allow-magic-value-types = ["float", "int", "str"]
130+
lint.pylint.allow-magic-value-types = [ "float", "int", "str" ]
74131
lint.pylint.max-args = 10
75132
lint.pylint.max-branches = 20
76133
lint.pylint.max-returns = 8
@@ -100,33 +157,76 @@ sort = "Cover"
100157
[tool.sphinx-pyproject]
101158
copyright = "2014, TheAlgorithms"
102159
autoapi_dirs = [
103-
"audio_filters", "backtracking", "bit_manipulation", "blockchain", "boolean_algebra",
104-
"cellular_automata", "ciphers", "computer_vision", "conversions", "data_compression",
105-
"data_structures", "digital_image_processing", "divide_and_conquer",
106-
"dynamic_programming", "electronics", "file_transfer", "financial", "fractals",
107-
"fuzzy_logic", "genetic_algorithm", "geodesy", "geometry", "graphics", "graphs",
108-
"greedy_methods", "hashes", "knapsack", "linear_algebra", "linear_programming",
109-
"machine_learning", "maths", "matrix", "networking_flow", "neural_network", "other",
110-
"physics", "project_euler", "quantum", "scheduling", "searches", "sorts", "strings",
160+
"audio_filters",
161+
"backtracking",
162+
"bit_manipulation",
163+
"blockchain",
164+
"boolean_algebra",
165+
"cellular_automata",
166+
"ciphers",
167+
"computer_vision",
168+
"conversions",
169+
"data_compression",
170+
"data_structures",
171+
"digital_image_processing",
172+
"divide_and_conquer",
173+
"dynamic_programming",
174+
"electronics",
175+
"file_transfer",
176+
"financial",
177+
"fractals",
178+
"fuzzy_logic",
179+
"genetic_algorithm",
180+
"geodesy",
181+
"geometry",
182+
"graphics",
183+
"graphs",
184+
"greedy_methods",
185+
"hashes",
186+
"knapsack",
187+
"linear_algebra",
188+
"linear_programming",
189+
"machine_learning",
190+
"maths",
191+
"matrix",
192+
"networking_flow",
193+
"neural_network",
194+
"other",
195+
"physics",
196+
"project_euler",
197+
"quantum",
198+
"scheduling",
199+
"searches",
200+
"sorts",
201+
"strings",
111202
"web_programming",
112203
]
113204
autoapi_member_order = "groupwise"
114-
exclude_patterns = [".*/*", "docs/"]
205+
exclude_patterns = [ ".*/*", "docs/" ]
115206
extensions = [
116207
"autoapi.extension",
117208
"myst_parser",
118209
]
119-
html_static_path = ["_static"]
210+
html_static_path = [ "_static" ]
120211
html_theme = "alabaster"
121212
myst_enable_extensions = [
122-
"amsmath", "attrs_inline", "colon_fence", "deflist", "dollarmath", "fieldlist",
123-
"html_admonition", "html_image", "replacements", "smartquotes", "strikethrough",
124-
"substitution", "tasklist"
213+
"amsmath",
214+
"attrs_inline",
215+
"colon_fence",
216+
"deflist",
217+
"dollarmath",
218+
"fieldlist",
219+
"html_admonition",
220+
"html_image",
221+
"replacements",
222+
"smartquotes",
223+
"strikethrough",
224+
"substitution",
225+
"tasklist",
125226
]
126-
myst_fence_as_directive = ["include"]
127-
templates_path = ["_templates"]
227+
myst_fence_as_directive = [ "include" ]
228+
templates_path = [ "_templates" ]
128229

129230
[tool.sphinx-pyproject.source_suffix]
130231
".rst" = "restructuredtext"
131232
".md" = "markdown"
132-

0 commit comments

Comments
 (0)