Skip to content

Commit e28641d

Browse files
committed
fix: correct tool configuration fields in pyproject.toml
- Fix ruff target-version to use Python version specifier (py312) instead of package version - Fix mypy python_version to use semantic version (3.12) instead of package version - Fix pytest minversion to use pytest version (7.0) instead of package version - Add critical comments to prevent future version confusion - Resolve CI/CD pipeline TOML parse errors
1 parent 2775691 commit e28641d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ skip_glob = ["src/mockloop_mcp/templates/*"]
9999

100100
[tool.ruff]
101101
line-length = 88
102-
target-version = "2.2.9"
102+
# CRITICAL: target-version must be Python version specifier (py310, py311, py312), NOT package version
103+
target-version = "py312"
103104
src = ["src", "tests"]
104105
exclude = [
105106
".bzr",
@@ -189,7 +190,8 @@ known-first-party = ["mockloop_mcp"]
189190
force-sort-within-sections = true
190191

191192
[tool.mypy]
192-
python_version = "2.2.9"
193+
# CRITICAL: python_version must be semantic version (3.10, 3.11, 3.12), NOT package version
194+
python_version = "3.12"
193195
warn_return_any = true
194196
warn_unused_configs = true
195197
warn_redundant_casts = true
@@ -234,7 +236,8 @@ skips = ["B101", "B601"] # Skip assert_used and shell_injection for templates
234236
skips = ["*_test.py", "test_*.py"]
235237

236238
[tool.pytest.ini_options]
237-
minversion = "2.2.9"
239+
# CRITICAL: minversion must be pytest version (7.0), NOT package version
240+
minversion = "7.0"
238241
addopts = [
239242
"--strict-markers",
240243
"--strict-config",

0 commit comments

Comments
 (0)