-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
90 lines (79 loc) · 1.95 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
83
84
85
86
87
88
89
90
[tool.poetry]
name = "ChessGPT"
version = "0.1.0"
description = ""
authors = ["Cody Joseph Krainock <me@codyjoseph.com>"]
readme = "README.md"
packages = [
{include = "chess_model", from = "src"},
{include = "pgn_utils", from = "src"}
]
[tool.poetry.dependencies]
python = "^3.10"
tqdm = "^4.66.5"
boto3 = "^1.35.58"
botocore = "^1.35.58"
psutil = "^6.1.0"
[tool.poetry.group.model]
optional = true
[tool.poetry.group.model.dependencies]
transformers = "^4.44.0"
numpy = "^2.0.1"
python-chess = "^1.999"
blessed = "^1.20.0"
torch = "^2.4.0"
[tool.poetry.group.dev.dependencies]
flake8 = "^7.1.1"
black = "^24.8.0"
isort = "^5.13.2"
mypy = "^1.11.1"
jupyter = "^1.0.0"
pytest = "^8.3.2"
[tool.poetry.scripts]
# S3 utilities
s3-tree = "scripts.s3_utils:tree_command"
s3-list-pgns = "scripts.s3_utils:list_pgns_command"
s3-extract-games-from-pgns = "scripts.s3_utils:extract_games_command"
s3-extract-checkmates-from-pgns = "scripts.s3_utils:extract_checkmates_command"
# Model-related scripts (these require the model group to be installed)
reduce-pgn = "scripts.reduce_pgn_to_moves:main"
prepare-training-data = "scripts.prepare_training_data:main"
fit-and-save-tokenizer = "scripts.fit_and_save_tokenizer:main"
train-model = "scripts.train_model:main"
test = "pytest:main"
play = "scripts.play:main"
explore = "scripts.explore:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 88
extend-ignore = ['E203', 'E501']
[tool.mypy]
python_version = 3.8
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
check_untyped_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true