Skip to content

Commit

Permalink
fix rules for flake8. add .flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrKosmylev committed Apr 17, 2024
1 parent 88ca54c commit adbabb6
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
exclude = migrations,settings.py
max-line-length = 120
ignore = E501, F401
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ run:

test_coverage:
poetry run coverage run manage.py test
poetry run coverage report -m --include=task_manager/* --omit=task_manager/settings.py
poetry run coverage xml --include=task_manager/* --omit=task_manager/settings.py
poetry run coverage report
poetry run coverage xml

1 change: 0 additions & 1 deletion task_manager/labels/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion task_manager/labels/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E501
# Generated by Django 5.0.1 on 2024-04-05 12:10

from django.db import migrations, models
Expand Down
1 change: 0 additions & 1 deletion task_manager/labels/tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E401
from django.test import TestCase

# Create your tests here.
1 change: 0 additions & 1 deletion task_manager/labels/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E501
from task_manager.labels.models import Labels
from task_manager.labels.forms import LabelsForm
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
Expand Down
1 change: 0 additions & 1 deletion task_manager/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E501
"""
Django settings for task_manager project.
Expand Down
1 change: 0 additions & 1 deletion task_manager/statuses/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion task_manager/statuses/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E501
from django.urls import path
from task_manager.statuses.views import StatusView, StatusCreateView, StatusUpdateView, StatusDeleteView

Expand Down
1 change: 0 additions & 1 deletion task_manager/tasks/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion task_manager/tasks/tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from django.test import TestCase

# Create your tests here.
1 change: 0 additions & 1 deletion task_manager/users/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from django.contrib import admin

# Register your models here.
1 change: 0 additions & 1 deletion task_manager/users/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: E501
# Generated by Django 5.0.1 on 2024-04-05 12:10

import django.contrib.auth.models
Expand Down
1 change: 0 additions & 1 deletion task_manager/users/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flake8: noqa: F401
from task_manager.users.forms import UsersForm
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from django.contrib.messages.views import SuccessMessageMixin
Expand Down

0 comments on commit adbabb6

Please sign in to comment.