Browse Source
🎨 Format fixes (#159)
* 📝 Update release notes
* 🎨 Update format and structure
pull/13907/head
Sebastián Ramírez
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
2 additions and
6 deletions
-
{{cookiecutter.project_slug}}/backend/app/app/crud/__init__.py
-
{{cookiecutter.project_slug}}/backend/app/app/schemas/item.py
-
{{cookiecutter.project_slug}}/backend/app/app/tests/api/api_v1/test_items.py
-
{{cookiecutter.project_slug}}/backend/app/scripts/lint.sh
|
@ -1,5 +1,5 @@ |
|
|
from .crud_item import item # noqa: F401 |
|
|
from .crud_item import item |
|
|
from .crud_user import user # noqa: F401 |
|
|
from .crud_user import user |
|
|
|
|
|
|
|
|
# For a new basic set of CRUD operations you could just do |
|
|
# For a new basic set of CRUD operations you could just do |
|
|
|
|
|
|
|
|
|
@ -2,8 +2,6 @@ from typing import Optional |
|
|
|
|
|
|
|
|
from pydantic import BaseModel |
|
|
from pydantic import BaseModel |
|
|
|
|
|
|
|
|
from .user import User # noqa: F401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Shared properties |
|
|
# Shared properties |
|
|
class ItemBase(BaseModel): |
|
|
class ItemBase(BaseModel): |
|
|
|
@ -3,7 +3,6 @@ from sqlalchemy.orm import Session |
|
|
|
|
|
|
|
|
from app.core.config import settings |
|
|
from app.core.config import settings |
|
|
from app.tests.utils.item import create_random_item |
|
|
from app.tests.utils.item import create_random_item |
|
|
from app.tests.utils.user import create_random_user # noqa: F401 |
|
|
|
|
|
from app.tests.utils.utils import get_server_api |
|
|
from app.tests.utils.utils import get_server_api |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -5,5 +5,4 @@ set -x |
|
|
mypy app |
|
|
mypy app |
|
|
black app --check |
|
|
black app --check |
|
|
isort --recursive --check-only app |
|
|
isort --recursive --check-only app |
|
|
vulture app --min-confidence 70 |
|
|
|
|
|
flake8 |
|
|
flake8 |
|
|