Commit bd107bb0 authored by Linus Lewandowski's avatar Linus Lewandowski

Automatically sort includes and convert spaces to tabs.

parent 4d2f0a7d
Pipeline #6715529 failed with stage
in 1 minute and 21 seconds
[settings]
line_length=500
known_django=django
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
......@@ -57,3 +57,8 @@ OpenID Clients and external OpenID Providers can be configured in the Django adm
## Example client
You can find an example client in [example_client_django](example_client_django) subdirectory.
## Development
Please set up a git hook that'll automatically enforce project's style:
git config core.hooksPath githooks/
import os
import dj_database_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
......@@ -40,7 +41,7 @@ LOGGING = {
}
RAVEN_CONFIG = {
'dsn': os.getenv("RAVEN_URL"),
'dsn': os.getenv("RAVEN_URL"),
}
MEDIA_URL = os.getenv("MEDIA_URL", '/media/')
......
......@@ -14,11 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView, RedirectView
from django.views.generic import RedirectView, TemplateView
from .openid_provider.views import ConfigurationView
......
#!/bin/sh
find aiakos -type f -and -not -path './.git/*' -exec grep -Iq . {} \; -and -print | while read -r file; do {
echo "Converting spaces to tabs... "$file"";
mv "$file" ""$file"_old" &&
unexpand --first-only -t 4 ""$file"_old" > "$file" &&
rm ""$file"_old";
}; done;
isort -rc aiakos
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment