From 337efeccdcf5f8110cb628f265c57a4c92df04a0 Mon Sep 17 00:00:00 2001 From: Mateusz Szymaniak Date: Wed, 13 Mar 2024 21:40:06 +0100 Subject: [PATCH] styles: changes after installed pre-commit on main branch --- .docker/Dockerfile | 2 +- .github/workflows/fh_ci.yml | 6 +++--- recipes/admin.py | 1 + recipes/apps.py | 2 +- users/admin.py | 1 + users/apps.py | 2 +- users/forms.py | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index dd7c963..8214388 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -12,4 +12,4 @@ RUN poetry install --no-root COPY . . EXPOSE 8000 -CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] diff --git a/.github/workflows/fh_ci.yml b/.github/workflows/fh_ci.yml index 711fd69..9eed3ba 100644 --- a/.github/workflows/fh_ci.yml +++ b/.github/workflows/fh_ci.yml @@ -52,12 +52,12 @@ jobs: DB_PORT: 5432 - name: Run Bandit - run: | + run: | poetry run bandit -r . - name: Run Safety - run: | + run: | poetry run safety check continue-on-error: true - name: Run Ruff run: | - poetry run ruff check . \ No newline at end of file + poetry run ruff check . diff --git a/recipes/admin.py b/recipes/admin.py index 40ed1e1..ac80ab6 100644 --- a/recipes/admin.py +++ b/recipes/admin.py @@ -1,4 +1,5 @@ from django.contrib import admin + from .models import Recipe admin.site.register(Recipe) diff --git a/recipes/apps.py b/recipes/apps.py index bf771bb..e18e81a 100644 --- a/recipes/apps.py +++ b/recipes/apps.py @@ -6,4 +6,4 @@ class RecipesConfig(AppConfig): name = "recipes" def ready(self): - from .signals import pre_delete_recipe # noqa: F401 + from .signals import pre_delete_recipe # noqa: F401 diff --git a/users/admin.py b/users/admin.py index d914f1f..308a0b3 100644 --- a/users/admin.py +++ b/users/admin.py @@ -1,4 +1,5 @@ from django.contrib import admin + from .models import Profile admin.site.register(Profile) diff --git a/users/apps.py b/users/apps.py index 4c1d129..8f4f86d 100644 --- a/users/apps.py +++ b/users/apps.py @@ -6,4 +6,4 @@ class UserConfig(AppConfig): name = "users" def ready(self): - from .signals import create_profile # noqa: F401 + from .signals import create_profile # noqa: F401 diff --git a/users/forms.py b/users/forms.py index 45e68ee..74e1f2d 100644 --- a/users/forms.py +++ b/users/forms.py @@ -1,5 +1,5 @@ -from django.contrib.auth.forms import UserCreationForm, User, PasswordResetForm from django import forms +from django.contrib.auth.forms import PasswordResetForm, User, UserCreationForm class UserRegisterForm(UserCreationForm):