Skip to content

fix(deps): declare statsmodels and jsonschema in [analysis] extra (#1946)#1981

Open
mvillmow wants to merge 1 commit into
mainfrom
1946-pyproject-analysis-extras
Open

fix(deps): declare statsmodels and jsonschema in [analysis] extra (#1946)#1981
mvillmow wants to merge 1 commit into
mainfrom
1946-pyproject-analysis-extras

Conversation

@mvillmow
Copy link
Copy Markdown
Collaborator

Summary

  • statsmodels and jsonschema are imported by src/scylla/ and scripts/ but were declared only in pixi.toml [pypi-dependencies], not in pyproject.toml [project.optional-dependencies].analysis
  • Anyone installing via pip install scylla[analysis] would get ImportError at runtime
  • Adds both to the analysis extra with bounds matching pixi.toml: statsmodels>=0.14,<1 and jsonschema>=4.0,<5
  • pixi.lock regenerated after pyproject.toml change

Import sites verified

  • statsmodels: src/scylla/analysis/stats.py (OLS, add_constant)
  • jsonschema: src/scylla/config/loader.py, src/scylla/analysis/loader_internals/run_loader.py, scripts/validate_config_schemas.py

Test plan

  • CI passes (pre-commit, lint, mypy, tests)
  • check-pyproject-pixi-version-consistency hook passes (verified locally)
  • pixi.lock is up-to-date (verified locally)

Closes #1946

🤖 Generated with Claude Code

…ysis] extra (#1946)

Both packages are imported by src/scylla/ and scripts/ but were declared
only in pixi.toml [pypi-dependencies]. Users installing via
'pip install scylla[analysis]' would hit ImportError at runtime.

- statsmodels: used in src/scylla/analysis/stats.py (OLS, add_constant)
- jsonschema: used in src/scylla/config/loader.py,
  src/scylla/analysis/loader_internals/run_loader.py, and
  scripts/validate_config_schemas.py

Bounds aligned with pixi.toml [pypi-dependencies]: statsmodels>=0.14,<1
and jsonschema>=4.0,<5.

Closes #1946

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mvillmow mvillmow enabled auto-merge (squash) May 12, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audit] §7 MAJOR: statsmodels and jsonschema undeclared in pyproject.toml [project.optional-dependencies].analysis

1 participant