Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
self-reg-form
Commits
a838bf8d
Commit
a838bf8d
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong-import-position
parent
04d0ec82
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/__init__.py
+3
-3
3 additions, 3 deletions
app/__init__.py
tasks.py
+5
-0
5 additions, 0 deletions
tasks.py
with
8 additions
and
3 deletions
app/__init__.py
+
3
−
3
View file @
a838bf8d
...
@@ -16,16 +16,16 @@ from flask_bootstrap import Bootstrap
...
@@ -16,16 +16,16 @@ from flask_bootstrap import Bootstrap
from
flask_cors
import
CORS
from
flask_cors
import
CORS
# local imports
# local imports
import
messages
import
app_vars
import
app_vars
import
messages
sys
.
path
.
append
(
app_vars
.
rabbitmq_agents_loc
)
sys
.
path
.
append
(
app_vars
.
rabbitmq_agents_loc
)
# pylint: disable=wrong-import-order
# pylint: disable=wrong-import-order
,wrong-import-position
import
rc_util
# noqa: E402
import
rc_util
# noqa: E402
# pylint: enable=wrong-import-order
# pylint: enable=wrong-import-order
,wrong-import-position
def
create_app
(
config_name
):
def
create_app
(
config_name
):
...
...
This diff is collapsed.
Click to expand it.
tasks.py
+
5
−
0
View file @
a838bf8d
...
@@ -16,8 +16,13 @@ from flask_socketio import SocketIO
...
@@ -16,8 +16,13 @@ from flask_socketio import SocketIO
import
app_vars
import
app_vars
sys
.
path
.
append
(
app_vars
.
rabbitmq_agents_loc
)
sys
.
path
.
append
(
app_vars
.
rabbitmq_agents_loc
)
# pylint: disable=wrong-import-position
import
rc_util
# noqa: E402
import
rc_util
# noqa: E402
# pylint: enable=wrong-import-position
broker_url
=
app_vars
.
broker_url
broker_url
=
app_vars
.
broker_url
celery
=
Celery
(
app_vars
.
celery_app
,
broker
=
broker_url
)
celery
=
Celery
(
app_vars
.
celery_app
,
broker
=
broker_url
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment