-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (97 loc) · 2.53 KB
/
pyproject.toml
File metadata and controls
115 lines (97 loc) · 2.53 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
[project]
name = "chess_agent"
version = "0.0.1"
description = "An LLM agent built using Model Context Protocol to play chess using the LiChess API."
authors = [{ name = "Fuzzy Labs", email = "info@fuzzylabs.ai" }]
readme = "README.md"
requires-python = ">=3.12,<4.0"
dependencies = [
"berserk>=0.13.2",
"mcp[cli]>=1.6.0",
"pydantic>=2.11.1",
"python-chess>=1.999",
"python-dotenv (>=1.1.0,<2.0.0)",
]
[dependency-groups]
dev = ["pytest>=7.2.0", "pytest-cov>=4.0.0", "licensecheck>=2024.1.2"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
addopts = "--cov=chess_agent --cov-report term-missing"
testpaths = ["tests"]
# mypy configuration
[tool.mypy]
show_error_codes = true
exclude = ["docs", "tests", "LICENSE"]
strict = true
namespace_packages = true
ignore_missing_imports = true
# black configuration
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[tool.ruff]
target-version = "py312"
# Match black. Note that this also checks comment line length, but black does not format comments.
line-length = 88
show-fixes = true
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"Q", # flake8-quotes
"ISC", # flake8-implicit-str-concat
"F", # pyflakes
"D", # pydocstyle
"E", # pycodestyle error
"W", # pycodestyle warning
"N", # pep8-naming
"I", # isort
"PL", # pylint rules from categories "Convention", "Error", and "Warning"
"PLE", # ruff currently implements only a subset of pylint's rules
"PLW", # pylint warning
"PLR", # pylint refactor
"UP", # pyupgrade
"C", # Complexity (mccabe+) & comprehensions
]
ignore = [
"UP006", # See https://github.com/bokeh/bokeh/issues/13143
"UP007", # See https://github.com/bokeh/bokeh/pull/13144
]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 10.
max-complexity = 10
# typos configuration
[tool.typos.files]
extend-exclude = [".gitignore", "LICENSE", ".*"]
[tool.typos.default.extend-words]
center = "center"
color = "color"
initialization = "initialization"
initialize = "initialize"
initialized = "initialized"
[tool.typos.default]
locale = "en-gb"
# Bandit configuration
[tool.bandit]
exclude_dirs = []
skips = ["B101"]
[tool.bandit.assert_used]
skips = ['*test.py', '*/test_*.py']