A toolset for working with Open Learning Engineering projects in a Nixos environment.
To setup this project, you can simply run these commands:
echo "use flake" > .envrc
direnv allow .
After running those commands, direnv will setup the flake. This will take some time and is resource intensive so it will probably run faster if you shutdown other nonessential programs, particularly if they're CPU heavy. This is largely a one-time operation unless the dependencies in this project change.
Open Learning projects should be cloned into a repos/
directory in this project. This directory is gitignored to
guarantee that nested projects don't get committed. For example:
mkdir -p repos
cd repos
git clone [email protected]:mitodl/mitxpro.git
pre-commit
should generally work out of the box with the standard pre-commit install
.
If a project is using pre-commit
hooks that haven't been accounted for here, you may need to update this project
to support it. This project currently addresses the necessary environment setup to install the following hooks:
- Python-based:
ruff
black
- Nodejs-based:
prettier
prettier-django
eslint
scss-lint