Code by Jakob
Install the pre-commit hooks for linting:
pre-commit install
To run all linters manually, use:
pre-commit
Note: only changes added to git are included in linting when using the pre-commit command.
You can also run the single linters one at a time to apply the linter to unstaged files:
black --check .
flake8 .
isort --check-only .
Most conventional packages can be installed by running
pip install -r requirements.txt
Additional packages concerning conventional means of solving PDEs (FEniCSx) can only be installed by running
conda install -c conda-forge fenics-dolfinx mpich pyvista