-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (97 loc) · 2.95 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
[project]
name = "keisei"
version = "1.0.0"
description = "Deep RL Shogi training system with Rust core"
license = {text = "MIT"}
requires-python = ">=3.12"
readme = "README.md"
authors = [
{name = "John Morrissey"},
]
keywords = ["shogi", "reinforcement-learning", "deep-learning", "pytorch", "rust", "ppo"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Topic :: Games/Entertainment :: Board Games",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"torch",
"numpy",
"fastapi",
"uvicorn[standard]",
]
[project.urls]
Repository = "https://github.com/tachyon-beep/keisei"
Changelog = "https://github.com/tachyon-beep/keisei/blob/main/CHANGELOG.md"
Issues = "https://github.com/tachyon-beep/keisei/issues"
[project.optional-dependencies]
dev = ["pytest", "pytest-asyncio", "pytest-xdist", "httpx", "ruff", "mypy", "types-chardet", "types-psutil", "types-tqdm"]
sl = ["chardet>=5.0"]
[project.scripts]
keisei-train = "keisei.training.katago_loop:main"
keisei-serve = "keisei.server.app:main"
keisei-prepare-sl = "keisei.sl.prepare:main"
keisei-evaluate = "keisei.training.evaluate:main"
[build-system]
requires = ["setuptools>=75.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["keisei*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow-running (deselect with '-m \"not slow\"')",
"integration: marks tests requiring DB, filesystem, or subprocess resources (deselect with '-m \"not integration\"')",
]
[tool.ruff]
line-length = 140
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
[tool.mypy]
python_version = "3.12"
# Expanded from strict=true, minus disallow_untyped_call (PyTorch stubs are incomplete)
exclude = [
"shogi-engine/", # PyO3 extension — tested via maturin, not mypy
]
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "scripts.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "shogi_gym.*"
ignore_missing_imports = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = [
"torch.*",
"torch",
]
ignore_missing_imports = true