-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
82 lines (70 loc) · 1.91 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "namedivider-python"
dynamic = ["version"]
description = "A tool for dividing the Japanese full name into a family name and a given name."
readme = "README.md"
license = "MIT"
authors = [
{ name = "rskmoi", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"lightgbm>=3.3",
"numpy",
"pandas",
"regex",
"typer>=0.3.2",
]
[project.scripts]
nmdiv = "namedivider.cli:app"
[project.urls]
Homepage = "https://github.com/rskmoi/namedivider-python"
[tool.coverage.run]
omit = [
"*/dist-packages/*",
"*/site-packages/*",
]
[tool.hatch.version]
path = "namedivider/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/namedivider",
]
[tool.hatch.build.targets.wheel]
packages = ["namedivider"]
[tool.hatch.build.targets.wheel.force-include]
"namedivider/assets/kanji.csv" = "namedivider/assets/kanji.csv"
"namedivider/beta_bert_divider/config.json" = "namedivider/beta_bert_divider/config.json"
"namedivider/beta_bert_divider/vocab.json" = "namedivider/beta_bert_divider/vocab.json"
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
module = "namedivider"
ignore_missing_imports = true
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"B905" # for compatibility with python 3.8 / 3.9
]
[tool.black]
line-length = 120