-
Notifications
You must be signed in to change notification settings - Fork 250
/
pyproject.toml
129 lines (116 loc) · 2.78 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
129
[build-system]
requires = ["setuptools >= 61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "textacy"
description = "NLP, before and after spaCy"
readme = { file = "README.md", content-type = "text/markdown" }
license = {file = "LICENSE.txt"}
requires-python = ">= 3.9"
maintainers = [{ name = "Burton DeWilde", email = "burtdewilde@gmail.com" }]
dynamic = ["version"]
keywords = ["spacy", "nlp", "text processing", "linguistics"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Natural Language :: English",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"cachetools >= 4.0.0",
"catalogue ~= 2.0",
"cytoolz >= 0.10.1",
"floret ~= 0.10.0",
"jellyfish >= 0.8.0",
"joblib >= 0.13.0",
"networkx >= 2.7",
"numpy >= 1.17.0",
"pyphen >= 0.10.0",
"requests >= 2.10.0",
"scipy >= 1.8.0",
"scikit-learn >= 1.0",
"spacy ~= 3.0",
"tqdm >= 4.19.6",
]
[project.optional-dependencies]
viz = [
"matplotlib ~= 3.0",
]
dev = [
"black ~= 23.0",
"build",
"isort ~= 5.0",
"mypy ~= 1.0.0",
"recommonmark >= 0.6.0, < 0.7.0",
"sphinx ~= 3.0",
"pytest ~= 7.0",
"pytest-cov",
"ruff",
"twine ~= 4.0",
"wheel",
]
check = [
"black ~= 23.0",
"isort ~= 5.0",
"mypy ~= 1.0.0",
"pytest ~= 7.0",
"pytest-cov",
"ruff",
]
docs = [
"Jinja2 < 3.1",
"recommonmark >= 0.6.0, < 0.7.0",
"sphinx ~= 3.0",
]
[project.urls]
Docs = "https://textacy.readthedocs.io"
Repo = "https://github.com/chartbeat-labs/textacy"
Changelog = "https://github.com/chartbeat-labs/textacy/blob/main/CHANGES.md"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "textacy._version.__version__" }
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311"]
extend-exclude = '''
(
src/textacy/preprocessing/resources.py
)
'''
[tool.isort]
profile = "black"
lines_after_imports = 2
[tool.mypy]
files = ["src/**/*.py"]
python_version = "3.9"
pretty = true
ignore_errors = true
allow_redefinition = true
ignore_missing_imports = true
follow_imports = "silent"
[tool.pytest.ini_options]
addopts = "--verbose"
testpaths = ["tests"]
[tool.ruff]
select = [
"E", # pycodestyle rules
"F", # pyflakes rules
]
ignore = ["E501"]
line-length = 88
target-version = "py39"
src = ["src"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # ignore unused imports in `__init__.py` files