Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
uses: community-of-python/community-workflow/.github/workflows/preset.yml@main
with:
python-version: '["3.10","3.11","3.12","3.13"]'
secrets: inherit
os: '["ubuntu-latest"]'
secrets: inherit
13 changes: 7 additions & 6 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ default: install lint test

install:
uv lock --upgrade
uv sync --all-extras --all-packages --frozen
uv sync --all-extras --frozen

lint:
uv run ruff format .
uv run ruff check . --fix
uv run ruff format
uv run ruff check --fix
uv run mypy .

lint-ci:
uv run ruff format . --check
uv run ruff check . --no-fix
uv run ruff format --check
uv run ruff check --no-fix
uv run mypy .

test *args:
uv run pytest {{ args }}
uv run --no-sync pytest {{ args }}

publish:
rm -rf dist
uv version $GITHUB_REF_NAME
uv build
uv publish --token $PYPI_TOKEN
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies = [
"multidict",
"circuit-breaker-box",
]
dynamic = ["version"]
version = "0"
authors = [{ name = "community-of-python" }]
keywords = [
"python",
Expand Down Expand Up @@ -42,11 +42,12 @@ dev = [
]

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
requires = ["uv_build"]
build-backend = "uv_build"

[tool.hatch.version]
source = "vcs"
[tool.uv.build-backend]
module-name = "base_client"
module-root = ""

[tool.mypy]
python_version = "3.10"
Expand Down