Files
notifications-admin/app/main/views/inbound_number.py
Chris Hill-Scott f3a0c505bd Enforce order and style of imports
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
2018-02-27 16:35:13 +00:00

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)