diff --git a/.gitignore b/.gitignore index 0d16ac092174be6891d7a7d08ae9b410d0a4ffff..c27602b70d00ecdc6d095ee560ee81250b91a79f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ lint # OSX .DS_Store +.pytest_cache/ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/Makefile b/Makefile index 1109510eecd10b6847afeb80d11f6a27a6a183a2..d37ee7b9cc8e21c04b58e6d77b4df7012dfc19ba 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ test-without-lint: py.test --cov=hive test-pylint: - py.test --pylint -m pylint $(PROJECT_NAME) + py.test --pylint -m pylint $(PROJECT_NAME) --pylint-error-types WEF fmt: yapf --recursive --in-place --style pep8 . diff --git a/hive/indexer/community.py b/hive/indexer/community.py index 113d518b79575e77fd96c946a1e216c27351c86c..b2aff5f8e56313e03a49796b1e14a70f0ed8b62c 100644 --- a/hive/indexer/community.py +++ b/hive/indexer/community.py @@ -10,7 +10,7 @@ from hive.indexer.posts import Posts # ----------------- def process_json_community_op(account, op_json, date): """Validates community op and apply state changes to db.""" - #pylint: disable=line-too-long + #pylint: disable=line-too-long,unused-variable cmd_name, cmd_op = op_json # ['flagPost', {community: '', author: '', ...}] commands = list(flatten(PERMISSIONS.values())) diff --git a/tests/test_imports.py b/tests/test_imports.py index 36ee7f178826e7d1d5777e08c33fadea1c3b7a2c..40c71ae5870e12f2d22cf1725c76643ed19fc1f6 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +# pylint: disable=unused-import,unused-variable,wildcard-import + from hive import * from hive.db import * from hive.utils import * @@ -8,7 +10,5 @@ from hive.server import * from hive.indexer import * from hive.community import * - -# pylint: disable=unused-import,unused-variable def test_import(): pass