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
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:

jobs:
code-quality:
name: Check code/doc formatting
name: Check code formatting and typechecking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
rev: v0.14.2
hooks:
- id: ruff-format
args: ["--diff", "betterproto2/src", "betterproto2/tests", "betterproto2_compiler/src", "betterproto2_compiler/tests"]
Expand Down
4 changes: 3 additions & 1 deletion betterproto2/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dev = [
"pre-commit>=4.2.0,<5",
"pyright>=1.1.401",
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
"ruff==0.9.3",
"ruff==0.14.2",
]
test = [
"cachelib>=0.13.0",
Expand Down Expand Up @@ -77,6 +77,8 @@ select = [

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["tests"]
known-third-party = ["grpclib", "pydantic", "google"]

[tool.pytest.ini_options]
python_files = "test_*.py"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from datetime import (
datetime,
timedelta,
timezone,
)
from datetime import datetime, timedelta, timezone

import pytest

Expand Down
1,898 changes: 1,069 additions & 829 deletions betterproto2/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion betterproto2_compiler/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
# TODO use the version from the current repo?
"betterproto2>=0.9.0,<0.10",
# "betterproto2",
"ruff~=0.9.3",
"ruff>=0.9.3,<0.15.0",
"jinja2>=3.0.3",
"typing-extensions>=4.7.1,<5",
"strenum>=0.4.15,<0.5 ; python_version == '3.10'",
Expand All @@ -40,6 +40,7 @@ dev = [
"poethepoet>=0.32.2,<0.33",
"pyright>=1.1.391,<2",
"ipykernel>=6.29.5,<7",
"ruff==0.14.2",
]
test = [
"pytest>=8.3.4,<9",
Expand Down
1,058 changes: 575 additions & 483 deletions betterproto2_compiler/uv.lock

Large diffs are not rendered by default.