Conversation
… file from linting Co-authored-by: dantzert <47285626+dantzert@users.noreply.github.com>
…tracking; fix gitignore Co-authored-by: dantzert <47285626+dantzert@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI checks in auto-dev branch and add tests for optimization methods
Repair auto-dev CI: fix linting/type errors and add optimization method comparison tests
Mar 1, 2026
dantzert
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
auto-devbranch was failing all CI checks (black, ruff, mypy, pytest) due to duplicate imports, unused variables, type annotation gaps, and a broken backup file being included in linting scope.Linting & type fixes
modpods.py: Collapsed two duplicate import blocks (with Bayesian helpers interleaved) into a single sorted block; removed unusedn_params; added explicitnp.ndarrayannotations to fix mypy errors onlist→ndarrayreassignments (bounds_list,X_sample,Y_sample,best_params)modpods_bayesian.py: Samelist→ndarrayannotation fixes; removed unusedorig_forcing_columnsandn_params; added# noqa: F401, F403/F405for intentionalfrom modpods import *pyproject.toml: Excludedmodpods_backup.py(unfixableIndentationError) from black/ruff/mypy; addedexplicit_package_bases = trueto resolve mypy's "module found twice" error.gitignore: Added*.TMP,*.h11~,__pycache__/,.vs/— also removed these already-tracked artifacts from git historyNew tests — optimization method comparison
Four tests in
tests/test_modpods.pyexerciseoptimization_method="compass_search"vs"bayesian"on the samesimple_lti_datafixture:Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.