mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-29 05:39:53 -06:00
Poetry v2 redefined -C thus switching to -P restoring the original behavior.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user