-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (105 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
126 lines (105 loc) · 2.77 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[project]
name = "rummikub-solver"
description = "Rummikub solver library"
requires-python = ">=3.11"
authors = [
{"name" = "Martijn Pieters", "email" = "mj@zopatista.com"},
]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.txt"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Games/Entertainment :: Board Games",
]
dependencies = [
"cvxpy-base>=1.8.1",
"numpy",
]
dynamic = ["version"]
[project.optional-dependencies]
# Additional MILP solvers
cbc = ["cylp"]
glpk_mi = ["cvxopt>=1.3.3"]
highs = ["highspy"]
scip = ["PySCIPOpt"]
[dependency-groups]
dev = [
"annotated-types>=0.7.0",
"ruff",
"pyright",
"pytest>=8.4.0",
"pytest-cov>=6.2.1",
"pytest-randomly>=3.16.0",
"hypothesis>=6.135.14",
]
docs = [
"griffe-modernized-annotations>=1.0.8",
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.14",
"mkdocstrings[python]>=0.29.1",
]
[project.urls]
Documentation = "https://rummikub-solver.readthedocs.io"
GitHub = "https://github.com/mjpieters/rummikub-solver"
Issues = "https://github.com/mjpieters/rummikub-solver/issues"
Changelog = "https://github.com/mjpieters/rummikub-solver/blob/main/CHANGELOG.md"
[build-system]
requires = ["hatchling~=1.27", "uv-dynamic-versioning~=0.8"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv]
required-version = "~=0.9"
[tool.uv-dynamic-versioning]
fallback-version = "0.0.0"
[tool.ruff.lint]
extend-select = [
"B", # bugbear
"D", # pydocstyle
"I", # isort
"SIM", # simplify
"UP", # pyupgrade
"RUF", # additional ruff rules
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D1"] # tests do not require a docstring
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
pythonVersion = "3.11"
include = ["src", "tests"]
strict = ["src", "tests"]
# When running under pre-commit, tell pyright where to find the project dependencies
venvPath = "."
venv = ".venv"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--cov",
"--cov-report=term",
"--cov-report=xml",
"--no-cov-on-fail",
]
filterwarnings = [
# cvxpy sometimes calls numpy.sum() with values that trigger runtime warnings
"ignore:(overflow|invalid value) encountered in reduce:RuntimeWarning:numpy._core.fromnumeric"
]
[tool.coverage.report]
show_missing = true
exclude_also = [
'if (t\.)?TYPE_CHECKING:',
'raise NotImplementedError\(\)',
'if __name__ == "__main__":',
]
[tool.coverage.run]
relative_files = true
source = [
"src"
]
[tool.coverage.xml]
output = "coverage.xml"