Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5.6.0
with:
python-version: "3.12"
python-version: "3.13"
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install -e .[server]
pip install -e .[test]
- name: Lint/test with pre-commit
run: SKIP=no-commit-to-branch pre-commit run --all-files
run: PRE_COMMIT_LOG_LEVEL=DEBUG SKIP=no-commit-to-branch pre-commit run --all-files --verbose

test:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions matter_server/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ async def _handle_ws(request: web.Request) -> web.WebSocketResponse:
finally:
clients.remove(connection)

@web.middleware
async def _handle_shutdown(app: web.Application) -> None:
# pylint: disable=unused-argument
for client in set(clients):
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ test = [
"pytest-asyncio==1.0.0",
"pytest-aiohttp==1.1.0",
"pytest-cov==6.2.1",
"ruff==0.12.0",
"ruff==0.12.2",
"tomli==2.2.1",
"typing-extensions==4.14.0",
]

[project.scripts]
Expand Down Expand Up @@ -89,7 +90,7 @@ ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
platform = "linux"
python_version = "3.11"
python_version = "3.12"
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
Expand Down Expand Up @@ -146,7 +147,7 @@ asyncio_mode = "auto"
fix = true
line-length = 88
show-fixes = true
target-version = "py311"
target-version = "py312"

[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
Expand Down
Loading