Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
python -m venv venv
source venv/bin/activate
pip install -e .[test]
pip install -r requirements-dev.txt
coverage run --source=genlm_backend -m pytest --benchmark-disable
coverage json --omit "*/test*"
coverage report --omit "*/test*"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
python -m venv venv
source venv/bin/activate
pip install -e .[test]
pip install -r requirements-dev.txt
pytest tests
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:

- uses: chartboost/ruff-action@v1
with:
version: 0.8.4
version: 0.9.9
args: check --output-format github
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ git clone git@github.com:probcomp/genlm-backend.git
cd genlm_backend
```
and install with pip:

```bash
pip install .
```

This installs the package without development dependencies. For development, install in editable mode with:

```bash
pip install -e ".[test,docs]"
pip install -e ".[docs]"
pip install -r requirements-dev.txt
```

which also installs the dependencies needed for testing (test) and documentation (docs).

## Requirements
Expand All @@ -42,6 +47,7 @@ which also installs the dependencies needed for testing (test) and documentation
## Testing

When test dependencies are installed, the test suite can be run via:

```bash
pytest tests
```
Expand Down
10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ dependencies = [
]

[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-asyncio",
"pytest-benchmark",
"arsenal @ git+https://github.com/timvieira/arsenal",
"datasets",
"viztracer",
"IPython",
]
docs = [
"mkdocs",
"mkdocstrings[python]",
Expand Down
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage
pytest
pytest-asyncio
pytest-benchmark
arsenal @ git+https://github.com/timvieira/arsenal
datasets
viztracer
IPython