Skip to content

Commit 5c581d0

Browse files
committed
chore: update to Poetry 2.0 officially
1 parent b56dfa5 commit 5c581d0

2 files changed

Lines changed: 10 additions & 21 deletions

File tree

CONTRIBUTING.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ poetry check --lock
4040

4141
## Shortcut Task Commands
4242

43-
To be able to run shortcut task commands, first install the Poetry plugin [`poethepoet`](https://poethepoet.natn.io/index.html):
44-
45-
```console
46-
poetry self add 'poethepoet[poetry_plugin]'
47-
```
48-
49-
> [!NOTE]
50-
> Upon the release of Poetry [v2.0.0](https://github.com/orgs/python-poetry/discussions/9793#discussioncomment-11043205), Poetry will automatically support bootstrap installation of [project-specific plugins](https://github.com/python-poetry/poetry/pull/9547) and installation of the task runner will become automatic for this project.
51-
> The `pyproject.toml` syntax will be:
52-
>
53-
> ```toml
54-
> [tool.poetry]
55-
> requires-poetry = ">=2.0"
56-
>
57-
> [tool.poetry.requires-plugins]
58-
> poethepoet = ">=0.29"
59-
> ```
60-
6143
### For Running Individual Checks
6244

6345
```console

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ classifiers = [
3636
"repository" = "https://github.com/clintval/typeline"
3737
"Bug Tracker" = "https://github.com/clintval/typeline/issues"
3838

39+
[tool.poetry]
40+
requires-poetry = ">=2.0"
41+
42+
[tool.poetry.requires-plugins]
43+
poethepoet = ">=0.33.0"
44+
3945
[tool.poetry.group.dev.dependencies]
4046
basedpyright = "^1.28"
4147
mypy = "^1.15"
@@ -55,7 +61,7 @@ poetry_command = "task"
5561
fix-format = "ruff format"
5662
fix-lint = "ruff check --fix"
5763

58-
fix-all.ignore_fail = true
64+
fix-all.ignore_fail = "return_non_zero"
5965
fix-all.sequence = ["fix-format", "fix-lint"]
6066

6167
check-lock = "poetry check --lock"
@@ -67,7 +73,7 @@ _check-mypy = "mypy"
6773
_check-pyright = "basedpyright"
6874
check-typing.sequence = ["_check-mypy", "_check-pyright"]
6975

70-
check-all.ignore_fail = true
76+
check-all.ignore_fail = "return_non_zero"
7177
check-all.sequence = [
7278
"check-lock",
7379
"check-format",
@@ -76,7 +82,7 @@ check-all.sequence = [
7682
"check-typing"
7783
]
7884

79-
fix-and-check-all.ignore_fail = true
85+
fix-and-check-all.ignore_fail = "return_non_zero"
8086
fix-and-check-all.sequence = [
8187
"fix-all",
8288
"check-all"
@@ -128,6 +134,7 @@ ignore_missing_imports = true
128134

129135
[tool.pyright]
130136
include = ["typeline/"]
137+
failOnWarnings = false
131138
reportAny = false
132139
pythonVersion = "3.10"
133140

0 commit comments

Comments
 (0)