Skip to content

Commit ddeade0

Browse files
authored
Conform pyproject to PEP 621 (#621)
1 parent c4c2ce0 commit ddeade0

File tree

5 files changed

+1607
-734
lines changed

5 files changed

+1607
-734
lines changed

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
persist-credentials: false
5555

5656
- name: Install poetry
57-
run: pipx install "poetry<2.0.0"
57+
run: pipx install "poetry>=2.1"
5858

5959
- name: Poetry check
6060
run: poetry check
@@ -70,7 +70,7 @@ jobs:
7070
persist-credentials: false
7171

7272
- name: Install poetry
73-
run: pipx install "poetry<2.0.0"
73+
run: pipx install "poetry>=2.1"
7474

7575
- name: Install poetry-relax
7676
run: poetry self add poetry-relax

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ repos:
2424
args: [--fix]
2525
- id: ruff-format
2626
- repo: https://github.com/python-poetry/poetry
27-
rev: 1.8.5
27+
rev: 2.1.0
2828
hooks:
2929
- id: poetry-check
30-
- id: poetry-lock
31-
args:
32-
- "--check"
33-
- "--no-update"
3430
- repo: https://github.com/gitleaks/gitleaks
3531
rev: v8.23.3
3632
hooks:

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Follow these steps to start contributing:
130130
🚨 **Do not** work on the `main` branch.
131131

132132
4. for development, we use `poetry` instead of just `pip` to easily track our dependencies.
133-
If you don't have it already, follow the [instructions](https://python-poetry.org/docs/#installation) to install it.
133+
If you don't have it already, follow the [instructions](https://python-poetry.org/docs/#installation) to install it (use a version >=2.1.0).
134134

135135
Set up a development environment with conda or miniconda:
136136
```bash
@@ -144,12 +144,12 @@ Follow these steps to start contributing:
144144

145145
You can also install the project with all its dependencies (including environments):
146146
```bash
147-
poetry install --sync --all-extras
147+
poetry sync --all-extras
148148
```
149149

150150
> **Note:** If you don't install simulation environments with `--all-extras`, the tests that require them will be skipped when running the pytest suite locally. However, they *will* be tested in the CI. In general, we advise you to install everything and test locally before pushing.
151151
152-
Whichever command you chose to install the project (e.g. `poetry install --sync --all-extras`), you should run it again when pulling code with an updated version of `pyproject.toml` and `poetry.lock` in order to synchronize your virtual environment with the new dependencies.
152+
Whichever command you chose to install the project (e.g. `poetry sync --all-extras`), you should run it again when pulling code with an updated version of `pyproject.toml` and `poetry.lock` in order to synchronize your virtual environment with the new dependencies.
153153

154154
The equivalent of `pip install some-package`, would just be:
155155
```bash

0 commit comments

Comments
 (0)