File tree Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Original file line number Diff line number Diff line change
1
+ [settings]
2
+ line_length =80
3
+ multi_line_output =3
4
+ known_first_party =app
5
+ default_section =THIRDPARTY
6
+ import_heading_stdlib =Standard Libs
7
+ import_heading_thirdparty =Third Party Libs
8
+ import_heading_firstparty =First Party Libs
9
+ lines_after_imports =2
Original file line number Diff line number Diff line change
1
+ dist : xenial
2
+
3
+ language : python
4
+
5
+ python :
6
+ - " 3.6"
7
+ - " 3.7"
8
+ - " 3.7-dev"
9
+ - " 3.8-dev"
10
+
11
+ cache : pip
12
+
13
+ install :
14
+ - pip install --cache-dir .pip.cache/ --progress-bar emoji --upgrade pip setuptools
15
+ - pip install --cache-dir .pip.cache/ --progress-bar emoji --requirement requirements/test.txt
16
+
17
+ script :
18
+ - safety check --full-report --file requirements/prod.txt
19
+ - safety check --full-report --file requirements/dev.txt
20
+ - safety check --full-report --file requirements/test.txt
21
+ - black --verbose --line-length 79 --target-version py37 *.py app
22
+ - isort --verbose --force-alphabetical-sort-within-sections --case-sensitive --lines-after-imports 2 --lines-between-types 1 *.py app/*.py app/**/*.py
23
+ - python manage.py test
Original file line number Diff line number Diff line change 1
1
"""
2
2
Module to provide ping controller functionality
3
3
"""
4
- from flask_restplus import Resource
5
-
6
4
from ..service import ping as service
7
5
from ..utils import decorators , dto
6
+ from flask_restplus import Resource
7
+
8
8
9
9
api = dto .PingDto .api
10
10
Original file line number Diff line number Diff line change 1
- import functools
1
+ from . dto import PingDto
2
2
from flask import request
3
3
4
- from .dto import PingDto
4
+ import functools
5
+
5
6
6
7
api = PingDto .api
7
8
Original file line number Diff line number Diff line change 1
1
"Module to implement ping data objects"
2
- from flask_restplus import Namespace , fields
2
+ from flask_restplus import fields , Namespace
3
3
4
4
5
5
class PingDto :
You can’t perform that action at this time.
0 commit comments