-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
85 lines (75 loc) · 1.76 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
[project]
name = "quickselect"
description = "Select algorithms implementation."
authors = [{ name = "Azat Ibrakov", email = "[email protected]" }]
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"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 :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.8"
dependencies = [
"typing-extensions>=4.10.0",
]
dynamic = ["version"]
[project.optional-dependencies]
docs = [
"Sphinx>=7.2.6,<9.0",
"sphinx-rtd-theme>=2.0.0,<4.0"
]
tests = [
"hypothesis>=6.99.12,<7.0",
"pytest>=8.1.1,<9.0"
]
[build-system]
requires = [
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
source = ["quickselect"]
[tool.mypy]
strict = true
[tool.pytest.ini_options]
addopts = "--verbose -s --hypothesis-profile=default"
[tool.ruff]
line-length = 79
[tool.ruff.format]
docstring-code-format = true
quote-style = "single"
skip-magic-trailing-comma = true
[tool.ruff.lint]
preview = true
select = [
# flake8-bugbear
"B",
# pycodestyle
"E",
# Pyflakes
"F",
# isort
"I",
# flake8-simplify
"SIM",
# pyupgrade
"UP",
]
ignore = [
"E203", # Whitespace before ':'
]
[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
known-local-folder = ["tests"]
relative-imports-order = "closest-to-furthest"
split-on-trailing-comma = false
[tool.setuptools.dynamic]
version = { attr = "quickselect.__version__" }