Spaces:
Sleeping
Sleeping
File size: 1,039 Bytes
7af929b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
### Installation
This project uses [poetry](https://python-poetry.org/) as dependency management tool.
After setting up poetry, run the following command to install the project along with its dependencies:
```bash
poetry install
```
The project also uses of [poethepoet](https://poethepoet.natn.io/index.html) for defining project tasks, such as running local applications for development.
These "_poe tasks_" are defined in the `pyproject.toml` file.
### Code quality and typing checks
This project enforces code quality and typing checks using [ruff](https://docs.astral.sh/ruff/), [mypy](https://mypy.readthedocs.io/en/stable/) and [black](https://black.readthedocs.io/en/stable/).
To format the code, run the following command:
```bash
poetry run poe format
```
To run the checks locally, run the following command:
```bash
poetry run poe check
```
You can also use poe task to run the tests, namely:
```bash
poetry run poe test
```
docker build -t prompt-search-engine .
docker run -d -p 8000:8000 prompt-search-engine
|