-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
55 lines (47 loc) · 1.13 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling>=1.18",
"hatch-vcs>=0.4",
]
[project]
name = "kitsunekko-tools"
description = "A set of scripts for creating a local kitsunekko mirror."
readme = "README.md"
dynamic = ["version"]
authors = [
{ name = "Ren Tatsumoto", email = "[email protected]" },
]
dependencies = [
"httpx[socks]>=0.28",
"fire>=0.6.0",
]
license = {file = "LICENSE"}
requires-python = ">=3.11"
[project.scripts]
ktools = "kitsunekko_tools.__main__:main"
[tool.hatch.build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
path = "kitsunekko_tools/__version__.py"
[tool.hatch.build.hooks.vcs]
version-file = "kitsunekko_tools/__version__.py"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.isort]
profile = "black"
[tool.hatch.envs.dev]
dependencies = [
"mypy>=1.0.0",
"isort",
"pytest",
"black",
]
[tool.hatch.envs.dev.scripts]
# run as `hatch run dev:scriptname`
check = "mypy --install-types --non-interactive {args:kitsunekko_tools tests}"
format = "bash \"$(git rev-parse --show-toplevel)/format.sh\""
test = "pytest;"