Poetry v2 redefined -C thus switching to -P restoring the original behavior.

This commit is contained in:
Sebastian Jeltsch
2025-01-05 22:47:29 +01:00
parent 98922eedb6
commit 083dddc021
3 changed files with 6 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ repos:
### Python client
- id: python_format
name: Python format
entry: poetry -C client/trailbase-py run black --check .
entry: poetry -P client/trailbase-py run black --config client/trailbase-py/pyproject.toml --check .
language: system
types: [file]
files: .*\.(py)$
@@ -138,7 +138,7 @@ repos:
- id: python_check
name: Python check
entry: poetry -C client/trailbase-py run pyright
entry: poetry -P client/trailbase-py run pyright --outputjson
language: system
types: [file]
files: .*\.(py)$
@@ -146,7 +146,7 @@ repos:
- id: python_test
name: Python test
entry: poetry -C client/trailbase-py run pytest
entry: poetry -P client/trailbase-py run pytest
language: system
types: [file]
files: .*\.(py)$

View File

@@ -9,14 +9,14 @@ format:
dart format client/trailbase-dart/ examples/blog/flutter/; \
txtpbfmt `find . -regex ".*.textproto"`; \
dotnet format client/trailbase-dotnet; \
poetry -C client/trailbase-py run black --config client/trailbase-py/pyproject.toml .
poetry -P client/trailbase-py run black --config client/trailbase-py/pyproject.toml .
check:
pnpm -r check; \
cargo clippy --workspace --no-deps; \
dart analyze client/trailbase-dart examples/blog/flutter; \
dotnet format client/trailbase-dotnet --verify-no-changes; \
poetry -C client/trailbase-py run pyright
poetry -P client/trailbase-py run pyright
docker:
docker build . -t trailbase/trailbase

View File

@@ -4,6 +4,7 @@ version = "0.1.0"
description = ""
authors = ["TrailBase <contact@trailbase.io>"]
readme = "README.md"
requires-poetry = ">=2.0"
[tool.poetry.dependencies]
python = "^3.12"