Skip to content

feat(factorio-cycle-calculator): Use Generated Data Models#117

Merged
hcoona merged 1 commit intomainfrom
dev/shuaizhang/factorio-calculator-use-jsonschema
Feb 14, 2026
Merged

feat(factorio-cycle-calculator): Use Generated Data Models#117
hcoona merged 1 commit intomainfrom
dev/shuaizhang/factorio-calculator-use-jsonschema

Conversation

@hcoona
Copy link
Owner

@hcoona hcoona commented Feb 14, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 14, 2026 01:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Factorio cycle calculator app to use generated (datamodel-code-generator) dataclass models for data-raw-dump.json, and adjusts repo tooling/config to accommodate the generated code.

Changes:

  • Add a dev dependency group for datamodel-code-generator[ruff] and update uv.lock accordingly.
  • Refactor the app’s data-raw parsing to build/use a typed FactorioDataRaw container and generated prototype dataclasses.
  • Exclude **/generated/** from various linters/hooks and adjust VS Code Python analysis settings.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
uv.lock Adds locked dependencies for datamodel-code-generator and its toolchain (e.g., black/isort/argcomplete).
src/private/app/factorio-cycle-calculator/pyproject.toml Introduces a dev dependency group for the code generator.
src/private/app/factorio-cycle-calculator/app.py Loads generated models and migrates parsing/access to dataclass-backed prototypes; refactors solver constraint construction.
hk.pkl Excludes generated/ from hk-based tooling exclude list.
.typos.toml Excludes generated/ from typos scanning.
.pre-commit-config.yaml Regenerated to exclude generated/ in relevant hooks.
.vscode/settings.json Disables Python type checking (workspace-wide).
src/private/app/factorio-cycle-calculator/schema/.gitkeep No functional change; keeps the schema directory present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b3b7d272f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@hcoona hcoona force-pushed the dev/shuaizhang/factorio-calculator-use-jsonschema branch from 6b3b7d2 to 628391f Compare February 14, 2026 05:37
@hcoona hcoona requested a review from Copilot February 14, 2026 05:43
@hcoona
Copy link
Owner Author

hcoona commented Feb 14, 2026

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hcoona hcoona merged commit 11f9a3d into main Feb 14, 2026
23 checks passed
@hcoona hcoona deleted the dev/shuaizhang/factorio-calculator-use-jsonschema branch February 14, 2026 07:31
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.

1 participant