-
-
Notifications
You must be signed in to change notification settings - Fork 147
Fix unit test and lint issues #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks! Can you actually break this apart into 3 different PR's? In particular, we need to land the |
@@ -7,7 +7,6 @@ | |||
|
|||
def load_app(name): | |||
app = __import__(name).app | |||
app.config['TESTING'] = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this should be removed, but best to discuss/research in a separate PR that is specific to this TESTING
/setting DEBUG
...
@@ -13,7 +13,7 @@ commands = | |||
deps = | |||
pycodestyle | |||
commands = | |||
pycodestyle flask_debugtoolbar test | |||
pycodestyle src/flask_debugtoolbar test --ignore=E731,W503,W504 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be nicer to annotate with the reasoning for adding these ignores in a separate PR. No need for a code comment on them, but at least a PR comment woudl be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to open a PR for this if you think it's useful!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #219
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed this, and don't have any concerns beyond the good feedback from @jeffwidman
Good point. I will create the separate PRs and let's discuss the details later. |
before_first_request
as it has been removed in Flask 3.0.DEBUG
as Flask-DebugToolbar will only be enabled whenapp.debug
isTrue
(flask-debugtoolbar/src/flask_debugtoolbar/__init__.py
Line 114 in 51d105a