-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
88 lines (76 loc) · 1.61 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
[build-system]
requires = [
"setuptools >=65.0",
"wheel >=0.36.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "spacy-to-hf"
dynamic = ["version"]
readme = "README.md"
license = {text = 'Apache 2.0'}
description = "Spacy to HF converter"
requires-python = ">=3.7, <3.13"
dependencies = [
"spacy-alignments",
"spacy < 4",
"transformers",
"datasets",
"flax" # As the backend for transformers. Smaller/Faster than torch or tf
]
[[project.authors]]
name = "Ben Epstein"
email = "ben.epstein97+spacy-hf@gmail.com"
[project.optional-dependencies]
dev = [
"coverage >=6.1.1",
"invoke >=2.0.0",
"mypy >=0.910",
"packaging >=21.0",
"pre-commit >=2.17.0",
"pytest >=6.2.5",
"pytest-cov >=3.0.0",
"ruff >=0.0.98",
"build >=0.7.0",
]
[project.urls]
Documentation = "https://github.com/ben-epstein/spacy-to-hf"
[tool.setuptools.dynamic]
version = {attr = "spacy_to_hf.__version__"}
[tool.ruff]
line-length = 120
include = ["*.py"]
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["D10"]
extend-ignore = [
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
"D415",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
mypy_path = ["spacy_to_hf", "tests"]
exclude = ["dist", "build", ".venv"]
[tool.coverage.run]
source = ["spacy_to_hf", "tests"]
omit = ["*__init__.py"]
parallel = true
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError'
]