-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from rafsaf/release-5.0
Release 5.0
- Loading branch information
Showing
15 changed files
with
887 additions
and
991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,28 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/myint/autoflake | ||
rev: "v2.0.1" | ||
hooks: | ||
- id: autoflake | ||
args: | ||
[ | ||
"--recursive", | ||
"--in-place", | ||
"--remove-unused-variables", | ||
"--remove-all-unused-imports", | ||
"--ignore-init-module-imports", | ||
] | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
[ | ||
"--py3-plus", | ||
"--py36-plus", | ||
"--py37-plus", | ||
"--py38-plus", | ||
"--py39-plus", | ||
"--py310-plus", | ||
"--py311-plus", | ||
] | ||
files: ".*" | ||
|
||
- repo: https://github.com/psf/black | ||
rev: "23.1.0" | ||
rev: "23.10.1" | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: "5.12.0" | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: "6.0.0" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.4 | ||
hooks: | ||
- id: flake8 | ||
- id: ruff | ||
args: [--fix] | ||
|
||
- repo: https://github.com/python-poetry/poetry | ||
rev: "1.3.0" | ||
rev: "1.7.0" | ||
hooks: | ||
- id: poetry-export | ||
args: ["-o", "requirements.txt", "--without-hashes"] | ||
|
||
- repo: https://github.com/python-poetry/poetry | ||
rev: "1.3.0" | ||
rev: "1.7.0" | ||
hooks: | ||
- id: poetry-export | ||
args: | ||
["-o", "requirements-dev.txt", "--without-hashes", "--with", "dev"] | ||
args: ["-o", "requirements-dev.txt", "--without-hashes", "--with=dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.11.1-slim-bullseye | ||
FROM python:3.12.0-slim-bullseye | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
WORKDIR /build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from httpx import AsyncClient | ||
from httpx import AsyncClient, codes | ||
from sqlalchemy import select | ||
from sqlalchemy.ext.asyncio import AsyncSession | ||
|
||
|
@@ -15,7 +15,7 @@ async def test_read_current_user(client: AsyncClient, default_user_headers): | |
response = await client.get( | ||
app.url_path_for("read_current_user"), headers=default_user_headers | ||
) | ||
assert response.status_code == 200 | ||
assert response.status_code == codes.OK | ||
assert response.json() == { | ||
"id": default_user_id, | ||
"email": default_user_email, | ||
|
@@ -28,7 +28,7 @@ async def test_delete_current_user( | |
response = await client.delete( | ||
app.url_path_for("delete_current_user"), headers=default_user_headers | ||
) | ||
assert response.status_code == 204 | ||
assert response.status_code == codes.NO_CONTENT | ||
result = await session.execute(select(User).where(User.id == default_user_id)) | ||
user = result.scalars().first() | ||
assert user is None | ||
|
@@ -42,7 +42,7 @@ async def test_reset_current_user_password( | |
headers=default_user_headers, | ||
json={"password": "testxxxxxx"}, | ||
) | ||
assert response.status_code == 200 | ||
assert response.status_code == codes.OK | ||
result = await session.execute(select(User).where(User.id == default_user_id)) | ||
user = result.scalars().first() | ||
assert user is not None | ||
|
@@ -60,7 +60,7 @@ async def test_register_new_user( | |
"password": "asdasdasd", | ||
}, | ||
) | ||
assert response.status_code == 200 | ||
assert response.status_code == codes.OK | ||
result = await session.execute(select(User).where(User.email == "[email protected]")) | ||
user = result.scalars().first() | ||
assert user is not None |
Empty file.
Oops, something went wrong.