-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
128 lines (109 loc) · 3.21 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pyjarowinkler"
dynamic = ["version"]
description = "Finds the Jaro Winkler Distance indicating a distance or similarity score between two strings."
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
requires-python = ">= 3.9"
keywords = [
"delta",
"diff",
"distance",
"similarity",
"jaro",
"score",
"string",
"winkler",
]
authors = [
{ name = "Jean-Bernard Ratte", email = "[email protected]" },
]
maintainers = [
{ name = "Jean-Bernard Ratte", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Text Processing",
]
dependencies = []
[project.optional-dependencies]
dev = ["hatch", "mypy", "ruff"]
[project.urls]
Homepage = "https://pypi.org/project/pyjarowinkler/"
Documentation = "https://github.com/nap/jaro-winkler-distance#readme"
Issues = "https://github.com/nap/jaro-winkler-distance/issues"
Source = "https://github.com/nap/jaro-winkler-distance"
Repository = "https://github.com/nap/jaro-winkler-distance.git"
[tool.hatch.version]
path = "pyjarowinkler/__about__.py"
[tool.hatch.build]
ignore-vcs = true
exclude = [".*", "*.sh"]
[tool.hatch.build.targets.wheel]
only-packages = true
packages = ["pyjarowinkler"]
[tool.hatch.envs.default]
platforms = ["linux", "macos"]
installer = "uv"
[tool.hatch.envs.lint]
detached = true
skip-install = true
dependencies = ["mypy", "ruff"]
[tool.hatch.envs.lint.scripts]
type = ["mypy {args:pyjarowinkler}"]
lint = ["ruff check --diff {args:.}"]
fmt = ["ruff format --diff {args:.}"]
all = ["lint", "fmt", "type"]
[tool.hatch.envs.test]
skip-install = true
dependencies = ["coverage", "coverage[toml]"]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.test.scripts]
unit = "python{env:HATCH_TEST_ARGS:} {args:-m unittest discover -s tests/}"
cov-test = "coverage run -m unittest discover -s tests/"
cov-report = "coverage report"
all = ["cov-test", "cov-report"]
[tool.ruff]
line-length = 120
extend-exclude = [".github"]
[tool.ruff.lint]
select = ["E", "F", "N", "D", "B", "Q", "I", "PL", "ARG", "RUF"]
ignore = ["D212", "D203"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["D", "PT"]
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 1
known-local-folder = ["pyjarowinkler"]
[tool.mypy]
files = ["pyjarowinkler"]
pretty = true
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_no_return = true
[tool.coverage.run]
dynamic_context = "test_function"
source = ["pyjarowinkler", "tests"]
branch = true
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]