-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (97 loc) · 2.29 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
[project]
name = "pytorch-partial-tagger"
description = "Sequence Tagger for Partially Annotated Dataset in PyTorch"
authors = [
{name = "Yasufumi Taniguchi", email = "[email protected]"},
]
dependencies = [
"transformers>=4.29.2",
"torch>=2.0.1",
"spacy>=3.5.3",
"sequence-label>=0.1.4",
"sequence-classifier>=0.1.3",
]
requires-python = ">=3.8,<3.12"
readme = "README.md"
license = {text = "MIT"}
dynamic = ["version"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
[project.optional-dependencies]
dev = [
"pytest>=7.3.1",
"pytest-cov>=4.1.0",
"ruff>=0.0.270",
"black>=23.3.0",
"mypy>=1.7.0",
"hypothesis>=6.88.1",
]
docs = [
"sphinx>=6.2.1",
"sphinx-book-theme>=1.0.1",
"myst-parser>=2.0.0",
"sphinx-copybutton>=0.5.2",
]
[project.urls]
Homepage = "https://github.com/yasufumy/pytorch-partial-tagger"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/partial_tagger"]
[tool.hatch.version]
path = "src/partial_tagger/__about__.py"
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"SIM", # flake8-simplify
"Q", # flake8-quotes
"PIE", # flake8-pie
"UP", # pyupgrade
"PT", # flake8-pytest-style
"C90", # mccabe
]
ignore = [
"E501", # Line length regulated by black
]
src = ["src"]
target-version = "py38"
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.isort]
split-on-trailing-comma = false
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.flake8-type-checking]
strict = true
[tool.mypy]
files = [
"src",
"tests",
"docs/source/conf.py",
]
strict = true
pretty = true
python_version = "3.8"
[[tool.mypy.overrides]]
module = ["transformers"]
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
addopts = "--cov=partial_tagger --cov-report=term-missing -vv"