-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
64 lines (57 loc) · 1.36 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "BL"}
]
classifiers = [
"Programming Language :: Python :: 3.10",
]
dependencies = [
"numpy>=1.25",
"tensorboard>=2.10.0",
"torch>=1.12.1",
"wandb",
"gymnasium>=0.28.1",
"pygame>=2.5.0",
"rich-click",
]
description = "Implementation of the Knight Five game from Jane Street."
version = "0.1.0"
name = "knight_five"
readme = "README.md"
requires-python = ">=3.10"
[project.scripts]
km5 = "knight_five.cli:cli"
[tool.black]
line-length = 120
target-version = ['py310']
[tool.ruff]
# see: https://beta.ruff.rs/docs/rules/
ignore = [
"D104" # undocumented-public-package
]
ignore-init-module-imports = true
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"D", # pydocstyle
"T201", # print
"C4", # flake8-comprehensions
"RUF", # Ruff-specific rules
"PL" # pylint
]
target-version = "py310"
[tool.ruff.isort]
known-first-party = ["knight_five"]
[tool.ruff.per-file-ignores]
# Tests can use magic values, assertions, and relative imports, ignore missing docstrings
"**/tests/**/*" = ["PLR2004", "S101", "TID252", "D100", "D101", "D102", "D103"]
# Ignore import violations in all __init__.py files
"__init__.py" = ["E402", "F401"]
[tool.ruff.pydocstyle]
convention = "google"