Skip to content

CI fix#32

Merged
clay-arras merged 2 commits into
mainfrom
codex/ci-fix
Mar 14, 2026
Merged

CI fix#32
clay-arras merged 2 commits into
mainfrom
codex/ci-fix

Conversation

@rowan-cake

Copy link
Copy Markdown
Collaborator

Summary

  • format the module base class so black passes
  • configure mypy to resolve the src package and ignore the optional cupy dependency
  • align module and autograd typing with actual usage so mypy passes

Validation

  • black . --check
  • isort . --check -rc
  • mypy .
  • ruff check .
  • pytest -q

@rowan-cake
rowan-cake requested a review from a team as a code owner March 14, 2026 17:59

@Danny-Nosrati Danny-Nosrati left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks logical 🔥

@clay-arras clay-arras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hey rowan, nice PR!
added a small nit

Comment thread src/common/autograd.py Outdated
return result

def __add__(self, other: "Value") -> "Value":
def __add__(self, other: "Value" | float | int) -> "Value":

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small nit: you can probably define Scalar = float | int, and then replace all these instances with Scalar, like

def __add__(self, other: "Value" | Scalar) -> "Value":

just so if we ever decide to change we can edit one place.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

that's smart will do

@rowan-cake rowan-cake linked an issue Mar 14, 2026 that may be closed by this pull request
@rowan-cake

Copy link
Copy Markdown
Collaborator Author

Addressed Neil's nit in the latest push: I introduced a Scalar alias in src/common/autograd.py and replaced the repeated float | int unions. Validation still passes locally (black, mypy, ruff, pytest).

@clay-arras

Copy link
Copy Markdown
Contributor

lgtm, can merge

@clay-arras
clay-arras merged commit 9a362e7 into main Mar 14, 2026
1 check passed
@rowan-cake
rowan-cake deleted the codex/ci-fix branch March 14, 2026 19:00
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.

Get CI passing

3 participants