Skip to content

Commit

Permalink
CI: fix more Python and JS linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomka committed Dec 5, 2024
1 parent e4f2183 commit 4cc695e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions django/applications/catmaid/control/skeletonexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ def _compact_skeleton(project_id, skeleton_id, with_connectors=True,
if with_connectors or with_tags or with_annotations:
# postgres is caching this query
cursor.execute("""
SELECT relation_name, id FROM relation WHERE project_id=%(project_id)s
""", {
'project_id': project_id,
SELECT relation_name, id FROM relation WHERE project_id=%(project_id)s
""", {
'project_id': project_id,
})
relations = dict(cursor.fetchall())

Expand Down
2 changes: 1 addition & 1 deletion django/applications/catmaid/control/useranalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def get_useranalytics_data(request:HttpRequest, project_id) -> HttpResponse:
data['raw_write_events'] = raw_data['otherwrites_events']
data['net_active_time'] = raw_data['net_active_time'].tolist()
data['netactivetime_timeaxis'] = raw_data['netactivetime_timeaxis']
#data['active_bouts'] = raw_data['active_bouts'].tolist()
# data['active_bouts'] = raw_data['active_bouts'].tolist()

return JsonResponse(data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4900,7 +4900,7 @@
var is_tgt_axon = node_target.id().endsWith("_axon");
var is_tgt_dendrite = node_target.id().endsWith("_dendrite");
var set = function() {
if (visible) edge.show()
if (visible) edge.show();
else edge.hide();
};
if (is_src_axon) {
Expand Down
3 changes: 0 additions & 3 deletions django/applications/catmaid/tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ async def test_basic_connection(self):
communicator = AuthWebsocketCommunicator(UpdateConsumer.as_asgi(),
'/channels/updates', user,
headers=headers)

#communicator = WebsocketCommunicator(UpdateConsumer.as_asgi(), "GET", "/channels/updates")
#communicator.instance.scope["user"] = await get_user(username='temporary')
connected, subprotocol = await communicator.connect()
assert connected

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ ignore =
E252,
#at least two spaces before inline comment
E261,
#block comment should start with '# '
E265,
#expected 2 blank lines, found 1
E302,
#too many blank lines (2)
Expand Down

0 comments on commit 4cc695e

Please sign in to comment.