Merge pull request #161 from mawoka-myblock/pre-commit-ci-update-config
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# See https://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
@@ -10,11 +10,11 @@ repos:
|
|||||||
# - id: check-added-large-files
|
# - id: check-added-large-files
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.10.0
|
rev: 23.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: 'v3.0.0-alpha.2' # Use the sha / tag you want to point at
|
rev: 'v3.0.0-alpha.9-for-vscode' # Use the sha / tag you want to point at
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
files: "^frontend/"
|
files: "^frontend/"
|
||||||
@@ -23,7 +23,7 @@ repos:
|
|||||||
- "prettier-plugin-svelte@latest"
|
- "prettier-plugin-svelte@latest"
|
||||||
- "prettier@latest"
|
- "prettier@latest"
|
||||||
- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: 5.0.4
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
# flake8 is passed in all tracked python files
|
# flake8 is passed in all tracked python files
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ async def cache_account(criteria: str, content: str) -> Union[User, None]:
|
|||||||
await insert_into_redis(res, content)
|
await insert_into_redis(res, content)
|
||||||
return res
|
return res
|
||||||
elif criteria == "id":
|
elif criteria == "id":
|
||||||
|
|
||||||
try:
|
try:
|
||||||
res = await User.objects.get(id=uuid.UUID(content), verified=True)
|
res = await User.objects.get(id=uuid.UUID(content), verified=True)
|
||||||
except ormar.exceptions.NoMatch:
|
except ormar.exceptions.NoMatch:
|
||||||
|
|||||||
@@ -510,7 +510,6 @@ class TestEditor:
|
|||||||
class TestExImport:
|
class TestExImport:
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_export_quiz(self, test_client): # noqa : F811
|
async def test_export_quiz(self, test_client): # noqa : F811
|
||||||
|
|
||||||
resp = test_client.get("/api/v1/eximport/jgfgufgfgfzftzi")
|
resp = test_client.get("/api/v1/eximport/jgfgufgfgfzftzi")
|
||||||
assert resp.status_code == 422
|
assert resp.status_code == 422
|
||||||
resp = test_client.get("/api/v1/eximport/8bd77201-65ed-46fe-9160-cfe71dad501f")
|
resp = test_client.get("/api/v1/eximport/8bd77201-65ed-46fe-9160-cfe71dad501f")
|
||||||
|
|||||||
Reference in New Issue
Block a user