mirror of
https://github.com/trailbaseio/trailbase
synced 2026-04-21 13:37:44 +00:00
Poetry v2 redefined -C thus switching to -P restoring the original behavior.
This commit is contained in:
parent
98922eedb6
commit
083dddc021
3 changed files with 6 additions and 5 deletions
|
|
@ -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)$
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue