-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
132 lines (105 loc) · 2.58 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
130
131
132
[tool.poetry]
name = "spaczz"
version = "0.6.1"
description = "Adds fuzzy matching and additional regex matching support to spaCy."
license = "MIT"
readme = "README.md"
homepage = "https://github.com/gandersen101/spaczz"
repository = "https://github.com/gandersen101/spaczz"
keywords = ["fuzzy matching", "spacy", "nlp"]
authors = ["Grant Andersen <[email protected]>"]
documentation = "https://spaczz.readthedocs.io"
[tool.poetry.plugins."spacy_factories"]
"spaczz_ruler" = "spaczz.pipeline:SpaczzRuler"
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.masonry.api"
# Dependencies
[tool.poetry.dependencies]
python = "^3.7"
spacy = "^3.0"
catalogue = "*"
srsly = "*"
rapidfuzz = ">=1.0.0"
regex = ">=2020.6.8"
importlib_metadata = {version = "*", python = "<3.8"}
typing_extensions = {version = "*", python = "<3.8"}
## Formatting
[tool.poetry.group.black.dependencies]
black = ">=22.3"
[tool.poetry.group.isort.dependencies]
isort = ">=5.10"
## Linting
[tool.poetry.group.lint.dependencies]
darglint = ">=1.8"
flake8 = ">=5.0"
flake8-annotations = ">=2.9"
flake8-bandit = ">=4.0"
flake8-black = ">=0.3"
flake8-bugbear = ">=22.4"
flake8-docstrings = ">=1.6"
flake8-import-order = ">=0.18"
## Type-Checking
[tool.poetry.group.mypy.dependencies]
mypy = ">=1.0"
# Below need to be installed for mypy to be able to type check them.
nox = "*"
pytest = "*"
## Testing
[tool.poetry.group.test.dependencies]
coverage = {version = "*", extras = ["toml"]}
pytest = "*"
pytest-cov = "*"
## Docs
[tool.poetry.group.xdoctest.dependencies]
xdoctest = ">=1.0"
[tool.poetry.group.readme.dependencies]
ipykernel = "*"
nbconvert = "*"
[tool.poetry.group.docs.dependencies]
sphinx = ">=4.0.2"
sphinx-autobuild = "*"
sphinx-autodoc-typehints = "*"
[tool.poetry.group.automation.dependencies]
nox = "*"
# Config
[tool.black]
extend-exclude = '''
(
notebooks/
)
'''
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
show_missing = true
fail_under = 96
[tool.coverage.run]
branch = true
source = ["spaczz"]
[tool.isort]
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
split_on_trailing_comma = true
force_single_line = true
force_sort_within_sections = true
lexicographical = true
single_line_exclusions = ["typing"]
order_by_type = false
group_by_package = true
reverse_relative = true
[tool.mypy]
[[tool.mypy.overrides]]
module = [
"catalogue",
"regex",
"rich.*",
"srsly",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]