one and only one empty line at the end of the file

This commit is contained in:
Peter Pfeufer 2021-05-17 09:48:57 +02:00
parent 8c3df89d52
commit a99a375375
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
72 changed files with 53 additions and 72 deletions

View File

@ -14,3 +14,5 @@ repos:
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude: \.(min\.css|min\.js|po|mo)$
- id: end-of-file-fixer
exclude: \.(min\.css|min\.js|po|mo)$

View File

@ -337,4 +337,3 @@ proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

View File

@ -43,4 +43,3 @@ AUTHENTICATION_ADMIN_USERS_MAX_GROUPS = \
AUTHENTICATION_ADMIN_USERS_MAX_CHARS = \
_clean_setting('AUTHENTICATION_ADMIN_USERS_MAX_CHARS', 5)

View File

@ -39,4 +39,3 @@ class AutogroupsConfigAdmin(admin.ModelAdmin):
admin.site.register(AutogroupsConfig, AutogroupsConfigAdmin)
admin.site.register(ManagedCorpGroup)
admin.site.register(ManagedAllianceGroup)

View File

@ -1,2 +0,0 @@

View File

@ -7,4 +7,3 @@ class FatlinkForm(forms.Form):
fleet = forms.CharField(label=_("Fleet Name"), max_length=50)
duration = forms.IntegerField(label=_("Duration of fat-link"), required=True, initial=30, min_value=1,
max_value=2147483647, help_text=_('minutes'))

View File

@ -30,4 +30,3 @@
</div>
{% endblock content %}

View File

@ -122,4 +122,3 @@ def get_hooks(name):
"""
register_all_hooks()
return _hooks.get(name, [])

View File

@ -4,4 +4,3 @@ from django.apps import AppConfig
class PermissionsToolConfig(AppConfig):
name = 'allianceauth.permissions_tool'
label = 'permissions_tool'

View File

@ -30,4 +30,3 @@ class NameFormatConfig(models.Model):
return '%s: %s' % (
self.service_name, ', '.join([str(x) for x in self.states.all()])
)

View File

@ -16,4 +16,3 @@ class DiscourseUser(models.Model):
permissions = (
("access_discourse", u"Can access the Discourse service"),
)

View File

@ -64,4 +64,3 @@ class DiscourseTasks:
def get_username(user):
from .auth_hooks import DiscourseService
return NameFormatter(DiscourseService(), user).format_name()

View File

@ -94,4 +94,3 @@ def discourse_sso(request):
# Redirect back to Discourse
url = '%s/session/sso_login' % settings.DISCOURSE_URL
return redirect('%s?%s' % (url, query_string))

View File

@ -102,4 +102,3 @@ def deactivate_ips4(request):
logger.error("Unsuccessful attempt to deactivate IPS4 for user %s" % request.user)
messages.error(request, _('An error occurred while processing your IPSuite4 account.'))
return redirect("services:services")

View File

@ -78,4 +78,3 @@ class MumbleTasks:
logger.debug("Updating ALL mumble display names")
for mumble_user in MumbleUser.objects.exclude(username__exact=''):
MumbleTasks.update_display_name.delay(mumble_user.user.pk)

View File

@ -8,4 +8,3 @@ from ...admin import ServicesUserAdmin
class OpenfireUserAdmin(ServicesUserAdmin):
list_display = ServicesUserAdmin.list_display + ('username',)
search_fields = ServicesUserAdmin.search_fields + ('username', )

View File

@ -47,4 +47,3 @@ def disable_user(user):
for svc in ServicesHook.get_services():
if svc.service_active_for_user(user):
svc.delete_user(user)

View File

@ -1,2 +1 @@
default_app_config = 'allianceauth.srp.apps.SRPConfig'

View File

@ -58,4 +58,3 @@
</div>
</div>
</nav>

View File

@ -34,4 +34,3 @@ zkillboard
.. automodule:: allianceauth.eveonline.evelinks.zkillboard
:members:
:undoc-members:

View File

@ -27,4 +27,3 @@ app.conf.ONCE = {
# Load task modules from all registered Django app configs.
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)