Skip to content

Commit 5666634

Browse files
Merge pull request #1209 from uriyyo/dependabot/pip/ruff-0.5.0
[no ci]
2 parents dc8f063 + d8f5a1e commit 5666634

File tree

5 files changed

+27
-32
lines changed

5 files changed

+27
-32
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Install dependencies
3939
run: |
40-
poetry install -E all
40+
poetry install -E all --sync
4141
4242
- name: Lint
4343
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Install dependencies
6161
run: |
62-
poetry install -E all
62+
poetry install -E all --sync
6363
6464
- name: Install pydantic v2
6565
if: ${{ matrix.pydantic_v2 == 'true' }}
@@ -89,12 +89,6 @@ jobs:
8989
poetry run pip install -U odmantic "pydantic<2.7"
9090
poetry run pytest tests -m "odmantic" --cov-append --cov-report=xml --cassandra-dsn=${CQL_TEST_HOST}
9191
92-
- name: Unit tests gino
93-
if: ${{ matrix.pydantic_v2 == 'false' && matrix.python-version != '3.12' }}
94-
run: |
95-
poetry run pip install -U "gino[starlette]" "fastapi==0.84.0"
96-
poetry run pytest -m gino --cov-append --cov-report=xml
97-
9892
- name: Upload coverage to Codecov
9993
uses: codecov/codecov-action@v4
10094
with:

poetry.lock

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ requests = "^2.32.2"
6262
uvicorn = "^0.30.1"
6363
Jinja2 = "^3.1.4"
6464
mypy = "^1.10.1"
65-
ruff = "^0.4.10"
65+
ruff = "^0.5.0"
6666

6767
[tool.poetry.extras]
6868
sqlmodel = ["sqlmodel", "sqlakeyset"]

tests/test_customization.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ def test_additional_fields():
216216
if IS_PYDANTIC_V2:
217217
from pydantic_core import PydanticUndefined
218218

219-
assert CustomPage.model_fields["a"].annotation == int
219+
assert CustomPage.model_fields["a"].annotation is int
220220
assert CustomPage.model_fields["a"].default is PydanticUndefined
221221

222-
assert CustomPage.model_fields["b"].annotation == str
222+
assert CustomPage.model_fields["b"].annotation is str
223223
assert CustomPage.model_fields["b"].default == "my-default"
224224
else:
225-
assert CustomPage.__fields__["a"].type_ == int
225+
assert CustomPage.__fields__["a"].type_ is int
226226
assert CustomPage.__fields__["a"].default is None
227227

228-
assert CustomPage.__fields__["b"].type_ == str
228+
assert CustomPage.__fields__["b"].type_ is str
229229
assert CustomPage.__fields__["b"].default == "my-default"

0 commit comments

Comments
 (0)