Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csentry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
Anders Harrisson
csentry
Commits
550c9e33
Commit
550c9e33
authored
6 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Fix flake8 errors
parent
5b586fb5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.flake8
+4
-0
4 additions, 0 deletions
.flake8
migrations/env.py
+1
-6
1 addition, 6 deletions
migrations/env.py
with
5 additions
and
6 deletions
.flake8
0 → 100644
+
4
−
0
View file @
550c9e33
[flake8]
# E501: let black handle line length
# W503 is incompatible with PEP 8
ignore = E501,W503
This diff is collapsed.
Click to expand it.
migrations/env.py
+
1
−
6
View file @
550c9e33
...
...
@@ -3,6 +3,7 @@ from alembic import context
from
sqlalchemy
import
engine_from_config
,
pool
from
logging.config
import
fileConfig
import
logging
from
flask
import
current_app
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
...
...
@@ -13,12 +14,6 @@ config = context.config
fileConfig
(
config
.
config_file_name
)
logger
=
logging
.
getLogger
(
"
alembic.env
"
)
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
from
flask
import
current_app
config
.
set_main_option
(
"
sqlalchemy.url
"
,
current_app
.
config
.
get
(
"
SQLALCHEMY_DATABASE_URI
"
)
)
...
...
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