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

chore: initial library setup #1

Merged
merged 4 commits into from
Jan 14, 2025
Merged

chore: initial library setup #1

merged 4 commits into from
Jan 14, 2025

Conversation

harens
Copy link
Collaborator

@harens harens commented Jan 12, 2025

Please review this commit-by-commit. Thank you!

This initial PR sets up a basic uv py3.13+ library with brax/mujoco/mujoco-mjx dependencies.

Automated linting/formatting checks are provided by ruff and pre-commit. This is enforced via GitHub CI, and rules can be configured via the pyproject.toml. In our Notion, we suggest the use of black and flake8, but ruff has drop-in parity with both these tools.

Please review the development documentation in the README for more information. Thanks 👍

- Initialise this project as a python 3.13+ library via the uv manager: https://docs.astral.sh/uv/concepts/projects/init/#libraries
    - Blank py.typed file denotes our library distributes type information.
- Add project + developer dependencies.
- Configure ruff formater to also check docstrings: https://docs.astral.sh/ruff/
Run checks automatically before each commit:
- `pre-commit-hooks` performs general file checks (e.g. remove trailing whitespace)
- `uv-pre-commit` ensures dependency lock file is up-to-date.
- `ruff-pre-commit` performs linting and formatting checks.

See: https://pre-commit.com/
Show how to setup project via uv or pip.
Perform linting + formatting checks.
@lysj-cpu lysj-cpu merged commit f4a481b into main Jan 14, 2025
2 checks passed
@harens harens deleted the harens/chore/initial-setup branch January 14, 2025 19:48
@harens
Copy link
Collaborator Author

harens commented Jan 14, 2025

Thanks @lysj-cpu 👍

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.

2 participants