Skip to content

Commit

Permalink
chore: bump poetry version to 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ngshiheng committed Feb 4, 2024
1 parent 03799e0 commit ab8a48b
Show file tree
Hide file tree
Showing 4 changed files with 521 additions and 432 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- "3.9"
- "3.10"
poetry-version:
- 1.2.2
- 1.7.1
steps:
- uses: actions/checkout@v3
- name: "Set up Python ${{ matrix.python-version }}"
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ I have documented some of my thought process and engineering decisions while cre

## Requirements

- [Python](https://www.python.org/) 3.9+
- [poetry](https://python-poetry.org/docs/)
- [PostgreSQL](https://www.postgresql.org/)
- [Python](https://www.python.org/) 3.9+
- [poetry](https://python-poetry.org/docs/)
- [PostgreSQL](https://www.postgresql.org/)

## Database

- Make sure you have a running instance of the latest PostgreSQL in your local machine
- Example to spin up a PostgreSQL Docker instance locally
- Make sure you have a running instance of the latest PostgreSQL in your local machine
- Example to spin up a PostgreSQL Docker instance locally

```sh
docker run -d --name dpostgres -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
```
```sh
docker run -d --name dpostgres -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
```

- Create a new database name as `burplist`
- Ensure that `pg_trgm` is installed as your PostgreSQL extension
- Create a new database name as `burplist`
- Ensure that `pg_trgm` is installed as your PostgreSQL extension

```sql
CREATE EXTENSION pg_trgm;
```
```sql
CREATE EXTENSION pg_trgm;
```

## How to install

Expand All @@ -55,8 +55,8 @@ Before you begin your development work, make sure you have installed [pre-commit

Some example useful invocations:

- `pre-commit install`: Default invocation. Installs the pre-commit script alongside any existing git hooks.
- `pre-commit install --install-hooks --overwrite`: Idempotently replaces existing git hook scripts with pre-commit, and also installs hook environments.
- `pre-commit install`: Default invocation. Installs the pre-commit script alongside any existing git hooks.
- `pre-commit install --install-hooks --overwrite`: Idempotently replaces existing git hook scripts with pre-commit, and also installs hook environments.

## Optional: Environment variables

Expand All @@ -82,11 +82,11 @@ docker start dpostgres
## Optional: Using Docker

```sh
# make build
docker build -t burplist-frontend .
# build docker image.
make build

# Run the image in a container
docker run -d -p 8080:8080 --name burplist-frontend burplist-frontend
# run local development server in docker.
make run
```

Your server should be live at to http://localhost:8080.
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.1.15 \
POETRY_VERSION=1.7.1 \
POETRY_NO_INTERACTION=1

FROM base AS builder
Expand Down
Loading

0 comments on commit ab8a48b

Please sign in to comment.