-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
77 lines (70 loc) · 2.32 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
[project]
name = "WikipediaAnnotatedCorpus"
version = "1.2.0"
description = ""
authors = [
{name = "Nobuhiro Ueda", email = "[email protected]"},
]
maintainers = [
{name = "Nobuhiro Ueda", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"rhoknp>=1.5.1",
"tabulate>=0.9.0"
]
[tool.uv]
dev-dependencies = [
"pytest>=8.0.0",
"pip",
]
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312"]
[tool.mypy]
python_version = "3.10"
[tool.ruff]
line-length = 120
indent-width = 4
src = ["scripts"]
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"E501", # Line too long
"RUF001", # String contains ambiguous `ノ` (KATAKANA LETTER NO). Did you mean `/` (SOLIDUS)?
"RUF002", # Docstring contains ambiguous `,` (FULLWIDTH COMMA). Did you mean `,` (COMMA)?
"RUF003", # Comment contains ambiguous `(` (FULLWIDTH LEFT PARENTHESIS). Did you mean `(` (LEFT PARENTHESIS)?
"COM812", # Trailing comma missing
"PLR2004", # Magic value used in comparison
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"FA100", # Missing `from __future__ import annotations`, but uses `...`
"S101", # Use of `assert` detected
"G004", # Logging statement uses f-string
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"T201", # `print` found
"TD002", # Missing author in TODO
"ERA001", # Found commented-out code
"SIM102", # Use a single `if` statement instead of nested `if` statements
"D", # pydocstyle
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"D104" # Missing docstring in public package
]
"tests/*" = [
"D", # pydocstyle
"S101", # Use of `assert` detected
"INP001", # File `...` is part of an implicit namespace package. Add an `__init__.py`
]
[tool.ruff.lint.mccabe]
max-complexity = 20 # default: 10