Skip to content

Commit

Permalink
Use poetry v2 to manage this project
Browse files Browse the repository at this point in the history
  • Loading branch information
monim67 committed Jan 7, 2025
1 parent e75f449 commit 5fc53b6
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12

RUN pip install "poetry>=1.2"
RUN pip install "poetry>=2.0"

RUN curl -fsSL https://pyenv.run | bash
ENV PYENV_ROOT="/root/.pyenv" PATH="/root/.pyenv/bin:$PATH:/root/.pyenv/shims"
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"postCreateCommand": "make -C .devcontainer post-create",
"postStartCommand": "poetry install --sync",
"postStartCommand": "poetry sync",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Check poetry.lock
run: |
poetry env use ${{ matrix.python-version }}
poetry lock --check
poetry check --lock
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
- id: poetry-lock
name: Check poetry.lock consistency
language: system
entry: poetry lock --check
entry: poetry check --lock
always_run: true
pass_filenames: false
- id: lint
Expand Down
Loading

0 comments on commit 5fc53b6

Please sign in to comment.