Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add likelihood experiments to main repo #69

Open
wants to merge 99 commits into
base: main
Choose a base branch
from

Conversation

esli999
Copy link
Collaborator

@esli999 esli999 commented Jul 21, 2024

Make likelihood experiments more visible to rest of chi-sight

pre-commit-ci bot and others added 14 commits July 21, 2024 11:30
This PR:

- fixes many ruff linter errors, removing unused imports and variables
- disables ruff formatting and linting for ipynb files

I verified that all tests pass on a cloud VM.
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 →
v0.5.4](astral-sh/ruff-pre-commit@v0.5.2...v0.5.4)
<!--pre-commit.ci end-->

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sam Ritchie <[email protected]>
This PR moves all code into a `src` directory, instead of the current
flat package structure. This is a prerequisite for the reproducible
build that @eightysteele is working on, and is a good change anyway for
a project destined to become a library.
This PR ports setup.py to pyproject.toml; this is the modern,
recommended way to configure python projects, and gives us a way to add
proper settings to things like linting, type-checking etc that match the
other projects at probcomp.

I've checked that the tests all run to the same failure as on main, the
scripts are all installed correctly, the versioning works well etc.
This PR:

- Upgrades b3d to https://github.com/probcomp/genjax/releases/tag/v0.5.0
- escapes math backslashes in python strings - these were causing
"unsupported literal" exceptions on import

GenJAX 0.5.0 doesn't break anything that b3d uses, and includes some
nice-to-have type upgrades that will make development a bit more
pleasant.
This PR:

- turns on the ruff configuration that we're using for genjax
- adds it to the pre-commit hooks
- auto-fixes most errors (unsorted imports, unused local variables etc)
- manually fixes the last few
@sritchie @nishadgothoskar after this change, run_tests.sh passes on my
machine.
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.

4 participants