Skip to content
Open
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
9 changes: 5 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ name: test
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -27,14 +27,15 @@ jobs:
with:
# Install a specific version of uv.
version: "0.5.24"
enable-cache: true
enable-cache: true
- name: Install the dependencies
run: uv sync --all-extras --group dev
- name: Create gcloud key file
run: openssl base64 -d -A <<< '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}' -out key.json
- name: Run code quality
run: |
uv run ruff check
uv run pyrefly check
uv run mypy .
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion hypermedia/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HorizontalRule(Hr):
class Comment(ElementStrict[PrimitiveChildren, NoAttrs]):
"""Defines a comment."""

children = list[str]
children: list[str]

def __init__(self, *children: PrimitiveChildren) -> None:
"""Initialize class."""
Expand Down
2 changes: 1 addition & 1 deletion hypermedia/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def htmx(
it from being evaluated before it is needed.
"""

@wraps(func)
@wraps(func) # type: ignore
async def wrapper(
*,
request: Any,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dev = [
"httpx>=0.28.1",
"mkdocs-material>=9.6.14",
"mypy>=1.14.1",
"pyrefly>=1.0.0",
"pytest-cov>=6.0.0",
"pytest>=8.3.4",
"ruff>=0.9.4",
Expand Down
19 changes: 19 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading