Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
fix #29: add style & docs to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Feb 11, 2016
1 parent 41d66fd commit 8431f89
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ env
htmlcov
dashboard/static/lib
node_modules
MANIFEST
3 changes: 0 additions & 3 deletions api/tests.py

This file was deleted.

30 changes: 9 additions & 21 deletions dashboard/settings.py
Expand Up @@ -154,28 +154,16 @@

SOCIALACCOUNT_PROVIDERS = {
'fxa': {
'OAUTH_ENDPOINT': config('FXA_OAUTH_ENDPOINT',
'https://oauth-stable.dev.lcip.org/v1/'),
'PROFILE_ENDPOINT': config('FXA_PROFILE_ENDPOINT',
'https://stable.dev.lcip.org/profile/v1/profile')
}
'OAUTH_ENDPOINT': config(
'FXA_OAUTH_ENDPOINT',
'https://oauth-stable.dev.lcip.org/v1/'
),
'PROFILE_ENDPOINT': config(
'FXA_PROFILE_ENDPOINT',
'https://stable.dev.lcip.org/profile/v1/profile'
)
}
}
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]

ACCOUNT_EMAIL_VERIFICATION = config('ACCOUNT_EMAIL_VERIFICATION',
default='none')
Expand Down
2 changes: 1 addition & 1 deletion dashboard/urls.py
Expand Up @@ -28,6 +28,6 @@
# 3rd-party app urls
url(r'^accounts/', include('allauth.urls')),

#django urls
# django urls
url(r'^admin/', admin.site.urls),
]
2 changes: 2 additions & 0 deletions dashboard/views.py
@@ -1,7 +1,9 @@
from django.views.generic import TemplateView


class Home(TemplateView):
template_name = 'dashboard/home.html'


class Profile(TemplateView):
template_name = 'dashboard/profile.html'
1 change: 0 additions & 1 deletion domains/tests.py
Expand Up @@ -49,7 +49,6 @@ def test_validate_dns_type(self, get_dns_txt_record):
self.assertTrue(self.da.expires > self.tz_aware_now)



class DomainAuthorizationManagerTests(TestCase):
def setUp(self):
self.tz_aware_now = timezone.make_aware(
Expand Down
4 changes: 4 additions & 0 deletions setup.py
@@ -0,0 +1,4 @@
from distutils.core import setup


setup(name='push-dev-dashboard', version='0.1')
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -3,7 +3,7 @@ envlist = py27, style, docs

[testenv]
deps =
-r {toxinidir}/requirements-test.txt
-r{toxinidir}/requirements-test.txt
coveralls
commands =
coverage run ./manage.py test
Expand All @@ -14,12 +14,12 @@ exclude=.?*,migrations

[testenv:style]
deps =
-r {toxinidir}/requirements.txt
-r{toxinidir}/requirements.txt
flake8
commands= flake8 .

[testenv:docs]
deps =
-r {toxinidir}/requirements-docs.txt
-r{toxinidir}/requirements-docs.txt
changedir = docs
commands = sphinx-build . html

0 comments on commit 8431f89

Please sign in to comment.