-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (93 loc) · 2.23 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (93 loc) · 2.23 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
[project]
name = "riichienv"
version = "0.4.8"
authors = [
{ name="Kohei Ozaki", email="19337+smly@users.noreply.github.com" },
]
description = "A High-Performance Research Environment for Riichi Mahjong"
readme = "README.md"
requires-python = ">=3.10,<3.15"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "Apache-2.0"
license-files = ["LICENSE"]
dependencies = [
"pyyaml>=6.0.3",
"ipython",
]
[project.urls]
Homepage = "https://github.com/smly/RiichiEnv"
Issues = "https://github.com/smly/RiichiEnv/issues"
[build-system]
requires = ["maturin>=1.9.4,<2.0"]
build-backend = "maturin"
[tool.maturin]
python-source = "src"
manifest-path = "riichienv-python/Cargo.toml"
module-name = "riichienv._riichienv"
include = ["src/riichienv/visualizer/assets/**"]
[dependency-groups]
dev = [
"maturin>=1.9.4,<2.0",
"pre-commit>=4.5.1",
"pytest>=9.0",
"ruff>=0.8.0",
"ty>=0.0.7",
]
debug = [
"jupyterlab",
]
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = [
"trunk",
"scripts",
"riichienv-ui/demos",
"riichienv-ml",
"riichienv-ml-xt",
"riichienv-validation",
]
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = []
select = [
"A", # flake8-builtin
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"W", # pycodestyle warning
"PL", # Pylint
"UP", # pyupgrade
]
ignore = [
"B905", # Zip-without-explicit-strict
"F403", # Unable to detect undefined names
"N812", # Lowercase imported as non-lowercase
"N999", # Invalid module name
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison
]
[tool.ruff.format]
quote-style = "double"
line-ending = "auto"
[tool.pytest]
minversion = "9.0"
testpaths = ["tests"]
norecursedirs = ["trunk"]
[tool.ty.src]
exclude = ["scripts", "tests", "demos", "riichienv-ml", "riichienv-ml-xt", "riichienv-validation", "riichienv-ui/demos"]
[tool.importlinter]
root_packages = ["riichienv"]
[tool.uv.workspace]
members = [
"riichienv-ml",
]
[tool.ty.environment]
python = "./.venv"
root = ["./src", "."]