mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-27 11:19:21 -04:00
Done using isort[1], with the following command:
```
isort -rc ./app ./tests
```
Adds linting to the `run_tests.sh` script to stop badly-sorted imports
getting re-introduced.
Chosen style is ‘Vertical Hanging Indent’ with trailing commas, because
I think it gives the cleanest diffs, eg:
```
from third_party import (
lib1,
lib2,
lib3,
lib4,
)
```
1. https://pypi.python.org/pypi/isort
16 lines
479 B
Python
16 lines
479 B
Python
from flask import render_template
|
|
from flask_login import login_required
|
|
|
|
from app import inbound_number_client
|
|
from app.main import main
|
|
from app.utils import user_has_permissions
|
|
|
|
|
|
@main.route('/inbound-sms-admin', methods=['GET', 'POST'])
|
|
@login_required
|
|
@user_has_permissions(admin_override=True)
|
|
def inbound_sms_admin():
|
|
data = inbound_number_client.get_all_inbound_sms_number_service()
|
|
|
|
return render_template('views/inbound-sms-admin.html', inbound_num_list=data)
|