-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (121 loc) · 3.21 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (121 loc) · 3.21 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
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
133
134
135
136
137
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "nervaluate"
version = "1.2.1"
authors = [
{ name="David S. Batista"},
{ name="Matthew Upson"}
]
description = "NER evaluation considering partial match scoring"
readme = "README.md"
requires-python = ">=3.11"
keywords = ["named-entity-recognition", "ner", "evaluation-metrics", "partial-match-scoring", "nlp"]
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
]
[project.optional-dependencies]
dev = [
"black>=25.1.0",
"coverage>=7.8.0",
"gitchangelog",
"mypy>=1.15.0",
"pre-commit==3.3.1",
"pylint>=3.3.7",
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
]
[project.urls]
"Homepage" = "https://github.com/MantisAI/nervaluate"
"Bug Tracker" = "https://github.com/MantisAI/nervaluate/issues"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--cov=nervaluate --cov-report=term-missing"
[tool.coverage.run]
source = ["nervaluate"]
omit = ["*__init__*"]
[tool.coverage.report]
show_missing = true
precision = 2
sort = "Miss"
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.pylint.messages_control]
disable = [
"C0111", # missing-docstring
"C0103", # invalid-name
"W0511", # fixme
"W0603", # global-statement
"W1202", # logging-format-interpolation
"W1203", # logging-fstring-interpolation
"E1126", # invalid-sequence-index
"E1137", # invalid-slice-index
"I0011", # bad-option-value
"I0020", # bad-option-value
"R0801", # duplicate-code
"W9020", # bad-option-value
"W0621", # redefined-outer-name
"W0212", # protected-access
]
[tool.pylint.'DESIGN']
max-args = 38 # Default is 5
max-attributes = 28 # Default is 7
max-branches = 14 # Default is 12
max-locals = 45 # Default is 15
max-module-lines = 2468 # Default is 1000
max-nested-blocks = 9 # Default is 5
max-statements = 206 # Default is 50
min-public-methods = 1 # Allow classes with just one public method
[tool.pylint.format]
max-line-length = 120
[tool.pylint.basic]
accept-no-param-doc = true
accept-no-raise-doc = true
accept-no-return-doc = true
accept-no-yields-doc = true
default-docstring-type = "numpy"
[tool.pylint.master]
load-plugins = ["pylint.extensions.docparams"]
ignore-paths = ["./examples/.*"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
disallow_any_unimported = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = "examples.*"
follow_imports = "skip"
[tool.hatch.envs.dev]
dependencies = [
"black==24.3.0",
"coverage==7.2.5",
"gitchangelog",
"mypy==1.3.0",
"pre-commit==3.3.1",
"pylint==2.17.4",
"pytest==7.3.1",
"pytest-cov==4.1.0",
]
[tool.hatch.envs.dev.scripts]
lint = [
"black -t py311 -l 120 src tests",
"pylint src tests"
]
typing = "mypy src"
test = "pytest"
clean = "rm -rf dist src/nervaluate.egg-info .coverage .mypy_cache .pytest_cache"
changelog = "gitchangelog > CHANGELOG.rst"
all = [
"clean",
"lint",
"typing",
"test"
]