Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.15 KB

CONTRIBUTING.md

File metadata and controls

50 lines (33 loc) · 1.15 KB

Contributing to accprob

The accprob project welcomes contributions from everyone.

Setting up the development environment

We use Rye to manage dependencies so you need to install it first.

After installing Rye, you can install the dependencies by running the following command:

$ rye sync --no-lock

Then you can run scripts by activating the virtual environment:

# If you are using Unix-like OS
$ . .venv/bin/activate

# If you are using Windows
$ .venv\Scripts\activate

# Now you can run accprob
$ accprob

Modifying/Adding code

If you want to add dependencies, you can add them by running the following command:

$ rye add package1 package2 ... && rye sync

Linting and Formatting

We highly recommend using VSCode because we have included the settings for linting and formatting in the .vscode directory.

If you don't want to use VSCode, you need to run the following commands before committing your changes:

To lint:

$ rye run ruff check && rye run mypy .

To format:

$ rye run ruff check --select I --fix && rye run ruff format