-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
78 lines (68 loc) · 1.74 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling>=1.24",
"hatch-vcs>=0.4",
]
[project]
name = "japanese"
dynamic = ["version"]
description = 'Automatically generate furigana and other data on Anki cards.'
readme = "README.md"
requires-python = "~=3.9" # anki officially only runs on 3.9
license = { file = "LICENSE" }
keywords = ["ajatt"]
authors = [
{ name = "Ren Tatsumoto", email = "tatsu@autistici.org" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
]
dependencies = []
[project.urls]
Documentation = "https://github.com/Ajatt-Tools/japanese"
Issues = "https://github.com/Ajatt-Tools/japanese/issues"
Source = "https://github.com/Ajatt-Tools/japanese"
[tool.hatch.version]
source = "vcs"
path = "japanese/__about__.py"
[tool.hatch.build.hooks.vcs]
version-file = "japanese/__about__.py"
[tool.hatch.envs.dev]
dependencies = [
"mypy>=1.0.0",
"isort",
"pytest",
"aqt[qt6]",
]
[[tool.hatch.envs.dev.matrix]]
python = ['3.9',]
[tool.hatch.envs.dev.scripts]
# run as `hatch run dev:scriptname`
check = "mypy --install-types --non-interactive {args:japanese tests}"
test = "pytest"
testv = "pytest -vvv -s"
format = "bash \"$(git rev-parse --show-toplevel)/scripts/format.sh\" "
package = "bash \"$(git rev-parse --show-toplevel)/scripts/package.sh\" "
[tool.coverage.run]
source_pkgs = ["japanese", "tests"]
branch = true
parallel = true
omit = [
"japanese/__about__.py",
]
[tool.coverage.paths]
japanese = ["japanese", "*/japanese/japanese"]
tests = ["tests", "*/japanese/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 120
target-version = ['py39']
[tool.isort]
profile = "black"