-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (92 loc) · 2.63 KB
/
pyproject.toml
File metadata and controls
103 lines (92 loc) · 2.63 KB
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
[build-system]
requires = ["setuptools >= 77.0.3"]
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 = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
keywords = ["recipe", "ingredient", "ingredients", "nlp", "parsing" ]
authors = [
{ name="Tom Strange", email="tpstrange@gmail.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"nltk>=3.9.1",
"python-crfsuite",
"pint>=0.25.0",
"numpy",
]
[project.urls]
Homepage = "https://github.com/strangetom/ingredient-parser/"
Documentation = "https://ingredient-parser.readthedocs.io/en/latest/"
Source = "https://github.com/strangetom/ingredient-parser"
Changelog = "https://github.com/strangetom/ingredient-parser/blob/master/CHANGELOG.md"
[tool.setuptools]
packages = ["ingredient_parser", "ingredient_parser.en", "ingredient_parser.en.foundationfoods"]
[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",
"notebooks"
]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "PERF", "PT", "RUF"]
ignore = [
"E402", # To enable path to be modified in doc conf.py before import
"RUF001", # Ambiguous unicode characters are handled explicitly in functions
"RUF002" # Ambiguous unicode characters are handled explicitly in functions
]
[tool.ruff.format]
docstring-code-format = true
[tool.pyright]
include = ["ingredient_parser", "train"]
exclude = ["**/__pycache__", "venv", "tests", "webtools"]
reportUnusedImport = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedVariable = true
reportWildcardImportFromLibrary = true
reportPrivateUsage = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"GL01",
"GL08",
"ES01",
"SA01",
"EX01",
]