From d31163e7119b5225986510ac53d27c04efa71621 Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Mon, 18 Sep 2023 13:22:35 -0400 Subject: [PATCH] update readme --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 700774218..57fb02d20 100644 --- a/README.md +++ b/README.md @@ -73,21 +73,37 @@ from the root directory of the code repository. To set up ffsim for development, install it from source in editable mode along with the development requirements: - pip install -e ".[dev]" +```bash +pip install -e ".[dev]" +``` If you add or modify any Rust modules, rebuild them by running the command - maturin develop --release +```bash +maturin develop +``` + +If you are benchmarking the code, then pass the `--release` flag: + +```bash +maturin develop --release +``` Tests and other code checks are managed using [tox](https://tox.wiki/en/latest/). To run the default tox environments, simply run - tox +```bash +tox +``` To run a specific environment, for example, to run the lint checks, do - tox run -e lint +```bash +tox run -e lint +``` You can also use `pytest` to run the tests directly. For example, - pytest tests/ +```bash +pytest tests/ +```