Skip to content
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

Fixes #1719 - Removes unused issues.db from the code #1720

Merged
merged 2 commits into from
Aug 24, 2017

Conversation

karlcow
Copy link
Member

@karlcow karlcow commented Aug 17, 2017

  • It also cleans up a bit the syntax. Preparing for linting and future pep stuff.
  • It changes a bit the logic on run.py. It became obvious that we were not checking dependencies when in test mode (ooops)

@miketaylr r?

- pep257 for docstrings Issue webcompat#1473
- order of imports
- Adding nopep8 for import
- removes the initialisation for issues.db
- removes the backup feature for issues.db
- rearrange the logic for testing mode and checking dependencies
Copy link
Member

@miketaylr miketaylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor question about import order... feel free to merge after fixing (or answering why it doesn't need to be fixed).

@@ -4,15 +4,18 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

"""Databases initialization."""

from hashlib import sha512

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

# in test mode everything must be mocked,
# so there is no external api communication.
config_validator()
app.run(host='localhost')

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@karlcow
Copy link
Member Author

karlcow commented Aug 24, 2017

@miketaylr It's mergeable. :)

@karlcow karlcow merged commit ffb0dc3 into webcompat:master Aug 24, 2017
@karlcow karlcow deleted the 1719/1 branch August 24, 2017 05:41
@karlcow
Copy link
Member Author

karlcow commented Aug 24, 2017

(merged myself because @miketaylr is traveling and approved.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants