Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

fix: removed F405 from setup.cfg #676

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
ignore = F403, F405
ignore = F403
exclude = .git,docs/*,systers_portal/manage.py,wsgi.py,migrations
max-line-length = 100
3 changes: 2 additions & 1 deletion systers_portal/community/permissions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from community.constants import *
from community.constants import CONTENT_CONTRIBUTOR, CONTENT_MANAGER, USER_CONTENT_MANAGER
from community.constants import COMMUNITY_ADMIN


groups_templates = {"content_contributor": CONTENT_CONTRIBUTOR,
Expand Down
2 changes: 1 addition & 1 deletion systers_portal/meetup/permissions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from meetup.constants import *
from meetup.constants import COMMUNITY_MEMBER, COMMUNITY_MODERATOR, COMMUNITY_LEADER

groups_templates = {"community_member": COMMUNITY_MEMBER,
"community_moderator": COMMUNITY_MODERATOR,
Expand Down
10 changes: 8 additions & 2 deletions systers_portal/membership/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
from django.views.generic import RedirectView, ListView, FormView
from django.views.generic.detail import SingleObjectMixin
from braces.views import LoginRequiredMixin, PermissionRequiredMixin

from community.models import Community
from membership.constants import * # NOQA
from membership.constants import USER_ALREADY_MEMBER_MSG, USER_MEMBER_SUCCESS_MSG, USER_MEMBER_REJECTED_MSG # noqa
from membership.constants import OK, JOIN_REQUEST_OK_MSG, ALREADY_MEMBER, ALREADY_MEMBER_MSG
from membership.constants import JOIN_REQUEST_EXISTS, JOIN_REQUEST_EXISTS_MSG
from membership.constants import JOIN_REQUEST_CANCELED_MSG, NO_PENDING_JOIN_REQUEST
from membership.constants import ALREADY_MEMBER_CANCEL_MSG, NO_PENDING_JOIN_REQUEST_MSG
from membership.constants import LEAVE_OK_MSG, NOT_MEMBER, NOT_MEMBER_MSG, IS_ADMIN
from membership.constants import LEAVE_IS_ADMIN_MSG, NEW_ADMIN_SUCCESS_MSG, REMOVE_OK_MSG
from membership.constants import REMOVE_IS_ADMIN_MSG, REMOVE_NOT_MEMBER_MSG
from membership.forms import TransferOwnershipForm
from membership.models import JoinRequest
from users.models import SystersUser
Expand Down
3 changes: 2 additions & 1 deletion systers_portal/systers_portal/settings/dev.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .base import *
import os
from .base import TEMPLATES
from decouple import config

SCHEDULER_AUTOSTART = True
Expand Down
2 changes: 1 addition & 1 deletion systers_portal/systers_portal/settings/docker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from .base import TEMPLATES

DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
Expand Down
2 changes: 1 addition & 1 deletion systers_portal/systers_portal/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from .base import TEMPLATES

DEBUG = False
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
Expand Down
4 changes: 2 additions & 2 deletions systers_portal/systers_portal/settings/testing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .base import *

from .base import TEMPLATES, INSTALLED_APPS, BASE_DIR
import os
SCHEDULER_AUTOSTART = False
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
Expand Down