Skip to content

Commit

Permalink
Small style check and docstring adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunedan committed May 21, 2018
1 parent 27ac2ed commit 799142e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .landscape.yml
Expand Up @@ -15,3 +15,4 @@ pep8:
pep257:
disable:
- D100
- D213
1 change: 1 addition & 0 deletions lockdown/middleware.py
Expand Up @@ -43,6 +43,7 @@ class LockdownMiddleware(object):

"""Middleware to lock down a whole Django site."""

# pylint: disable=too-many-arguments
def __init__(self, get_response=None, form=None, until_date=None,
after_date=None, logout_key=None, session_key=None,
url_exceptions=None, extra_context=None, **form_kwargs):
Expand Down
2 changes: 1 addition & 1 deletion lockdown/tests/forms.py
Expand Up @@ -8,7 +8,7 @@ class CustomLockdownForm(forms.Form):
answer = forms.IntegerField()

def clean_answer(self):
"""Cleaning of the answer field, by checking it's value."""
"""Clean the answer field, by checking its value."""
if self.cleaned_data['answer'] == 42:
return 42
raise forms.ValidationError('Wrong answer.')
2 changes: 1 addition & 1 deletion lockdown/tests/test_settings.py
Expand Up @@ -6,7 +6,7 @@
}
}

SECRET_KEY = ''.join([choice('abcdefghijklmnopqrstuvwxyz'
SECRET_KEY = ''.join([choice('abcdefghijklmnopqrstuvwxyz' # nosec
'0123456789!@#$%^&*(-_=+)')
for i in range(64)])

Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Expand Up @@ -9,7 +9,7 @@


def runtests(*test_args):
"""Setup and run django-lockdowns test suite."""
"""Set up and run django-lockdowns test suite."""
os.environ['DJANGO_SETTINGS_MODULE'] = 'lockdown.tests.test_settings'

django.setup()
Expand Down

0 comments on commit 799142e

Please sign in to comment.