-
Notifications
You must be signed in to change notification settings - Fork 52
/
pyproject.toml
110 lines (97 loc) · 3.16 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
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name="natsort"
authors = [
{name = "Seth M. Morton", email = "[email protected]"},
]
dynamic = ["version"]
requires-python = ">=3.8"
description = "Simple yet flexible natural sorting in Python."
readme = "README.rst"
license = {text = "MIT"}
keywords = ["sort", "sorting", "natural sort", "natsort"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Intended Audience :: Information Technology",
"Intended Audience :: Financial and Insurance Industry",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: 3.13",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Utilities",
"Topic :: Text Processing",
]
[project.optional-dependencies]
fast = ["fastnumbers >= 2.0.0"]
icu = ["PyICU >= 1.0.0"]
[project.urls]
Homepage = "https://github.com/SethMMorton/natsort"
Documentation = "https://natsort.readthedocs.io/"
Issues = "https://github.com/SethMMorton/natsort/issues"
Changelog = "https://github.com/SethMMorton/natsort/blob/main/CHANGELOG.md"
[project.scripts]
natsort = "natsort.__main__:main"
[tool.setuptools_scm]
version_file = "natsort/_version.py"
[tool.setuptools.packages]
find = {namespaces = false}
[tool.mypy]
mypy_path = "mypy_stubs"
[tool.ruff]
target-version = "py38"
extend-exclude = ["build", "dist", "docs", "mypy_stubs", "_version.py"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
fixable = ["ALL"]
select = ["ALL"]
ignore = [
"A002", # arguments shadow builtins
"PT004", # leading underscore in fixtures that return nothing
"RUF001", # ambiguous-unicode-character-string
"COM812", # missing trailing comma
"ISC001", # single line implicit string concatenation
"PLR0124", # name compared with itself (used to check for NaN)
"DTZ", # flaek8-datetimez
"D203", # one blank line before docstring in class
"D212" # docstring on same line as quotes
]
# doctests = true # enable when/if available
[tool.ruff.lint.per-file-ignores]
"natsort/__init__.py" = [
"PLC0414", # useless import alias
]
"natsort/natsort.py" = [
"FBT", # Boolean trap
]
"natsort/compat/__init__.py" = [
"D104", # docstring required in public package
]
"tests/**.py" = [
"S101", # use of assert
"D", # docstring checks
"INP", # implicit namespace package
"PLR2004", # magic value comparison
"FBT", # Boolean trap
]
"dev/bump.py" = [
"S603", # validate input to subprocess.run
"S607", # use full path of commands to subprocess.run
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]