-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* blackend all code * sorted imports * isort changes * reverted isort changes * renamedcElementTree * updated library install command * updated dependencies * reverted dependency changes * added back application in website.py * added back nosetest config * restored shell.py * removed shell.py * renamed file_obj
- Loading branch information
Bibhas
authored
Aug 20, 2019
1 parent
a4a3cd8
commit 1377d05
Showing
68 changed files
with
1,163 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ imgee/static/test_uploads | |
*.bak | ||
instance/production.env.sh | ||
imgee/static/gen | ||
.pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/lucasmbrown/mirrors-autoflake | ||
rev: v1.3 | ||
hooks: | ||
- id: autoflake | ||
args: ['--in-place', '--remove-all-unused-imports', '--ignore-init-module-imports', '--remove-unused-variable'] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.21 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: | ||
- toml | ||
- repo: https://github.com/ambv/black | ||
rev: master | ||
hooks: | ||
- id: black | ||
language_version: python3.6 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
- id: fix-encoding-pragma | ||
- id: flake8 | ||
additional_dependencies: | ||
- toml | ||
- flake8-assertive | ||
- flake8-blind-except | ||
- flake8-builtins | ||
- flake8-coding | ||
- flake8-comprehensions | ||
- flake8-isort | ||
- flake8-logging-format | ||
- flake8-mutable | ||
- flake8-print | ||
- pep8-naming |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
__all__ = ['__version__', '__version_info__'] | ||
|
||
__version__ = '0.2.0' | ||
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')]) | ||
__version_info__ = tuple( | ||
[ | ||
int(num) if num.isdigit() else num | ||
for num in __version__.replace('-', '.', 1).split('.') | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from flask_sqlalchemy import SQLAlchemy | ||
|
||
from imgee import app | ||
|
||
db = SQLAlchemy(app) | ||
|
||
from imgee.models.user import * | ||
from imgee.models.stored_file import * | ||
from imgee.models.thumbnail import * | ||
from imgee.models.profile import * | ||
from imgee.models.user import * # NOQA # isort:skip | ||
from imgee.models.stored_file import * # NOQA # isort:skip | ||
from imgee.models.thumbnail import * # NOQA # isort:skip | ||
from imgee.models.profile import * # NOQA # isort:skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.