-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
123 lines (110 loc) · 2.25 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
[build-system]
requires = ["hatchling >= 1.13.0"]
build-backend = "hatchling.build"
[project]
name = "FuzzTypes"
description = "FuzzTypes is a Pydantic extension for annotating autocorrecting fields"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "Ian Maurer", email = "ian@genomoncology.com" },
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"pydantic >= 2.6.1",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-mock",
"coverage[toml]",
]
local = [
"build",
"jupyter",
"ipython",
"mypy",
"pip",
"setuptools",
"twine",
]
ext = [
"anyascii",
"dateparser",
"emoji",
"lancedb",
"nameparser", # Note: LGPL.
"number-parser",
"rapidfuzz",
"sentence-transformers",
"tantivy",
"unidecode", # Note: GPL.
]
[tool.setuptools.package-data]
[project.urls]
[project.scripts]
#fuzztypes = "fuzztypes:cli"
[tool.hatch.version]
path = "src/fuzztypes/__init__.py"
[tool.mypy]
check_untyped_defs = true
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
]
xfail_strict = true
junit_family = "xunit2"
norecursedirs = ".venv"
filterwarnings = [
]
[tool.coverage.run]
parallel = true
source = [
"src",
]
context = '${CONTEXT}'
omit = [
'__main__.py',
'__init__.py',
]
[tool.ruff]
line-length = 79
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"except ImportError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.ruff.isort]
known-third-party = ["click", "pydantic"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.isort]
extend_skip = ["__init__.py"]