mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-08 10:44:44 -04:00
fix linters
This commit is contained in:
parent
3ed197a843
commit
b14da7efdd
4
.flake8
4
.flake8
@ -4,3 +4,7 @@ ignore = [
|
|||||||
E402 # Import Not at Top of File
|
E402 # Import Not at Top of File
|
||||||
]
|
]
|
||||||
exclude = _all_models.py
|
exclude = _all_models.py
|
||||||
|
|
||||||
|
|
||||||
|
per-file-ignores =
|
||||||
|
__init__.py:F403,F401
|
||||||
|
6
makefile
6
makefile
@ -49,11 +49,15 @@ test-all: lint test ## 🧪 Check Lint Format and Testing
|
|||||||
test: ## 🧪 Run tests quickly with the default Python
|
test: ## 🧪 Run tests quickly with the default Python
|
||||||
poetry run pytest
|
poetry run pytest
|
||||||
|
|
||||||
lint: ## 🧺 Check style with flake8
|
lint: ## 🧺 Format, Check and Flake8
|
||||||
poetry run black .
|
poetry run black .
|
||||||
poetry run black . --check
|
poetry run black . --check
|
||||||
poetry run flake8 mealie tests
|
poetry run flake8 mealie tests
|
||||||
|
|
||||||
|
|
||||||
|
lint-frontend: ## 🧺 Run yarn lint
|
||||||
|
cd frontend && yarn lint
|
||||||
|
|
||||||
coverage: ## ☂️ Check code coverage quickly with the default Python
|
coverage: ## ☂️ Check code coverage quickly with the default Python
|
||||||
poetry run pytest
|
poetry run pytest
|
||||||
poetry run coverage report -m
|
poetry run coverage report -m
|
||||||
|
@ -6,10 +6,18 @@ from typing import Callable
|
|||||||
|
|
||||||
from mealie.core.config import app_dirs
|
from mealie.core.config import app_dirs
|
||||||
from mealie.db.database import db
|
from mealie.db.database import db
|
||||||
from mealie.schema.admin import (CustomPageImport, CustomPageOut, GroupImport,
|
from mealie.schema.admin import (
|
||||||
NotificationImport, RecipeImport,
|
CustomPageImport,
|
||||||
SettingsImport, SiteSettings, SiteTheme,
|
CustomPageOut,
|
||||||
ThemeImport, UserImport)
|
GroupImport,
|
||||||
|
NotificationImport,
|
||||||
|
RecipeImport,
|
||||||
|
SettingsImport,
|
||||||
|
SiteSettings,
|
||||||
|
SiteTheme,
|
||||||
|
ThemeImport,
|
||||||
|
UserImport,
|
||||||
|
)
|
||||||
from mealie.schema.events import EventNotificationIn
|
from mealie.schema.events import EventNotificationIn
|
||||||
from mealie.schema.recipe import CommentOut, Recipe
|
from mealie.schema.recipe import CommentOut, Recipe
|
||||||
from mealie.schema.user import UpdateGroup, UserInDB
|
from mealie.schema.user import UpdateGroup, UserInDB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user