forked from strangetom/ingredient-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (75 loc) · 2 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
# Use a slightly different name to avoid conflict with pre-existing package in pypi
name = "ingredient_parser_nlp"
dynamic = ["version"]
description = "A Python package to parse structured information from recipe ingredient sentences"
readme = "README.md"
license = { file="LICENSE"}
requires-python = ">=3.10, <3.13"
keywords = ["recipe", "ingredient", "ingredients", "nlp", "parsing" ]
authors = [
{ name="Tom Strange", email="[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"nltk",
"python-crfsuite",
"pint",
]
[project.urls]
Homepage = "https://github.com/strangetom/ingredient-parser/"
Documentation = "https://ingredient-parser.readthedocs.io/en/latest/"
Source = "https://github.com/strangetom/ingredient-parser"
[tool.setuptools]
packages = ["ingredient_parser", "ingredient_parser.en"]
[tool.setuptools.dynamic]
version = {attr = "ingredient_parser.__version__"}
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-ra",
"-q",
"--import-mode=importlib",
]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
omit = [
"tests/*"
]
[tool.ruff]
exclude = [
"**/__pycache__",
".git",
"venv"
]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E402"]
[tool.ruff.format]
docstring-code-format = true
[tool.pyright]
include = ["ingredient_parser"]
exclude = ["**/__pycache__"]
reportUnusedImport = true
reportUnusedClass = true
reportUnuedFunction = true
reportUnusedVariable = true
reportWildcardImportFromLibrary = true
reportPrivateUsage = true