-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (86 loc) · 2.36 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (86 loc) · 2.36 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pychess"
description = "A UCI chess engine: Lazy SMP negamax with a tapered PeSTO evaluation."
readme = "README.md"
requires-python = ">=3.14"
license = { file = "LICENSE" }
authors = [{ name = "cjunius" }]
keywords = ["chess", "uci", "engine", "negamax", "lazy-smp", "pesto"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.14",
"Topic :: Games/Entertainment :: Board Games",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = ["chess==1.11.2"]
[project.optional-dependencies]
dev = [
"pytest==9.1.1",
"pytest-cov>=7.1.0",
"ruff==0.16.4",
"mypy==2.3.1",
"pre-commit>=4.6.2",
]
[project.scripts]
pychess = "pychess.__main__:main"
[project.urls]
Repository = "https://github.com/cjunius/pyChess"
Issues = "https://github.com/cjunius/pyChess/issues"
Changelog = "https://github.com/cjunius/pyChess/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/pychess/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/pychess"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=pychess --cov-report=term-missing --strict-markers --strict-config"
xfail_strict = true
filterwarnings = ["error"]
[tool.coverage.run]
branch = true
source = ["src/pychess"]
[tool.coverage.report]
fail_under = 85
show_missing = true
exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 100
target-version = "py314"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"RET", # flake8-return
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
[tool.ruff.lint.isort]
known-first-party = ["pychess"]
[tool.mypy]
python_version = "3.14"
files = ["src", "tests"]
strict = true
[[tool.mypy.overrides]]
# Test functions don't need full annotations, but their bodies are still checked.
module = ["tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_calls = false