Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: linter suggestions #20

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thunorweb/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.apps import AppConfig
from django.conf import settings
from django.db.models.signals import post_save
from django.db.utils import ProgrammingError, OperationalError, DatabaseError
from django.db.utils import ProgrammingError, OperationalError


class ThunorConfig(AppConfig):
Expand Down
2 changes: 1 addition & 1 deletion thunorweb/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def _dataset_groupings(dataset, regenerate_cache=False):
missing_combos = []
for cl in cell_line_ids:
for dr in drug_ids:
if not (cl, dr) in combos:
if (cl, dr) not in combos:
missing_combos.append((str(cl), (str(dr), )))

if has_drug_combos:
Expand Down
2 changes: 1 addition & 1 deletion thunorweb/views/dataset_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.conf import settings
import os
from thunorweb.serve_file import serve_file
from thunorweb.views.datasets import license_accepted, LICENSE_UNSIGNED
from thunorweb.views.datasets import license_accepted
from django.views.decorators.clickjacking import xframe_options_sameorigin
from thunorweb.views import login_required_unless_public, _assert_has_perm

Expand Down
2 changes: 1 addition & 1 deletion thunorweb/views/plate_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def ajax_save_plate(request):
wells_to_insert = []
for plate in plate_ids:
for well_num, cell_line_id in enumerate(cell_line_ids):
if not (plate, well_num) in existing_wells:
if (plate, well_num) not in existing_wells:
wells_to_insert.append(Well(
well_num=well_num,
plate_id=plate,
Expand Down
2 changes: 1 addition & 1 deletion thunorweb/views/plots.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.shortcuts import render, Http404
from django.http import JsonResponse, HttpResponse
from django.http import HttpResponse
from django.utils.html import strip_tags
from django.views.decorators.csrf import ensure_csrf_cookie
from django.core.cache import cache
Expand Down
2 changes: 1 addition & 1 deletion thunorweb/views/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.db import transaction
from django.db.models import Q
from thunorweb.models import CellLine, Drug, CellLineTag, DrugTag
from thunorweb.views import login_required_unless_public, login_required
from thunorweb.views import login_required_unless_public
import logging
import pandas as pd
from django.db.utils import IntegrityError
Expand Down
Loading