From ac68aa840f686029c519d19e3728d438d17f4a18 Mon Sep 17 00:00:00 2001
From: roadscape <roadscape@users.noreply.github.com>
Date: Fri, 22 Jun 2018 14:46:18 -0500
Subject: [PATCH] gitignore test cache. disable R,C for test-lint

---
 .gitignore                | 2 ++
 Makefile                  | 2 +-
 hive/indexer/community.py | 2 +-
 tests/test_imports.py     | 4 ++--
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 0d16ac092..c27602b70 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 1109510ee..d37ee7b9c 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 113d518b7..b2aff5f8e 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 36ee7f178..40c71ae58 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
-- 
GitLab