Skip to content
/ rats Public
generated from kmdouglass/python-rust

High performance probabilistic state machine simulator

License

Notifications You must be signed in to change notification settings

LEB-EPFL/rats

Repository files navigation

Rage against the State Machine (RATS)

build

High performance probabilistic state machine simulator

Development

Setup the development environment

Linux and macOS

  1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Install pyenv: curl https://pyenv.run | bash
  3. Install Python interpreter(s) listed in the file .python-version:
while read line; do
  pyenv install "$line"
done < .python-version
  1. Create a virtual environment: python3 -m venv .venv
  2. Activate the venv: source .venv/bin/activate
  3. Install the dependencies: pip install -e .[develop]

Testing and linting

Rust

Run tests:

cargo test

Run linters:

cargo fmt -v --check
cargo clippy

Python

Run all tests and linters:

tox

Run specific linters:

# Black, isort, mypy, pylint
tox -e black
# etc. ...

Formatting

Rust

cargo fmt

Python

tox -e format

About

High performance probabilistic state machine simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published