Skip to content

Commit

Permalink
add pre-commit and dev install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Feb 21, 2024
1 parent 29b3c02 commit 16c7726
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,19 @@ wsinfer-mil runlocal -m model.pt -c model.config.json \
5. Save the results of the extracted features.

This code includes caching, so feature extractors are not run more than they have to be.

# Developers

Clone and install `wsinfer-mil`:

Clone the repository and make a virtual environment for it. Then install the dependencies, with `dev` extras.

```
pip install -e .[dev]
```

Configure `pre-commit` to run the formatter before commits happen.

```
pre-commit install
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dev = [
"geojson",
"jsonschema",
"mypy",
"pre-commit",
"pytest",
"ruff",
"types-Pillow",
Expand Down

0 comments on commit 16c7726

Please sign in to comment.