Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
ac68aa84
Commit
ac68aa84
authored
6 years ago
by
roadscape
Browse files
Options
Downloads
Patches
Plain Diff
gitignore test cache. disable R,C for test-lint
parent
0f04cde4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
Makefile
+1
-1
1 addition, 1 deletion
Makefile
hive/indexer/community.py
+1
-1
1 addition, 1 deletion
hive/indexer/community.py
tests/test_imports.py
+2
-2
2 additions, 2 deletions
tests/test_imports.py
with
6 additions
and
4 deletions
.gitignore
+
2
−
0
View file @
ac68aa84
...
@@ -8,6 +8,8 @@ lint
...
@@ -8,6 +8,8 @@ lint
# OSX
# OSX
.DS_Store
.DS_Store
.pytest_cache/
# Byte-compiled / optimized / DLL files
# Byte-compiled / optimized / DLL files
__pycache__/
__pycache__/
*.py[cod]
*.py[cod]
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
ac68aa84
...
@@ -45,7 +45,7 @@ test-without-lint:
...
@@ -45,7 +45,7 @@ test-without-lint:
py.test
--cov
=
hive
py.test
--cov
=
hive
test-pylint
:
test-pylint
:
py.test
--pylint
-m
pylint
$(
PROJECT_NAME
)
py.test
--pylint
-m
pylint
$(
PROJECT_NAME
)
--pylint-error-types
WEF
fmt
:
fmt
:
yapf
--recursive
--in-place
--style
pep8 .
yapf
--recursive
--in-place
--style
pep8 .
...
...
This diff is collapsed.
Click to expand it.
hive/indexer/community.py
+
1
−
1
View file @
ac68aa84
...
@@ -10,7 +10,7 @@ from hive.indexer.posts import Posts
...
@@ -10,7 +10,7 @@ from hive.indexer.posts import Posts
# -----------------
# -----------------
def
process_json_community_op
(
account
,
op_json
,
date
):
def
process_json_community_op
(
account
,
op_json
,
date
):
"""
Validates community op and apply state changes to db.
"""
"""
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: '', ...}]
cmd_name
,
cmd_op
=
op_json
# ['flagPost', {community: '', author: '', ...}]
commands
=
list
(
flatten
(
PERMISSIONS
.
values
()))
commands
=
list
(
flatten
(
PERMISSIONS
.
values
()))
...
...
This diff is collapsed.
Click to expand it.
tests/test_imports.py
+
2
−
2
View file @
ac68aa84
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# pylint: disable=unused-import,unused-variable,wildcard-import
from
hive
import
*
from
hive
import
*
from
hive.db
import
*
from
hive.db
import
*
from
hive.utils
import
*
from
hive.utils
import
*
...
@@ -8,7 +10,5 @@ from hive.server import *
...
@@ -8,7 +10,5 @@ from hive.server import *
from
hive.indexer
import
*
from
hive.indexer
import
*
from
hive.community
import
*
from
hive.community
import
*
# pylint: disable=unused-import,unused-variable
def
test_import
():
def
test_import
():
pass
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment