diff --git a/.gitattributes b/.gitattributes index 6e6a3da8..6ccbee3d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,4 +6,3 @@ # Enable binary delta compression for PNG files *.png -delta - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 605efde9..9248b113 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,4 @@ repos: - - repo: https://github.com/psf/black - rev: 24.4.2 - hooks: - - id: black - - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.5.0 diff --git a/web/dashboard/main_dashboard.py b/web/dashboard/main_dashboard.py index 102737cf..c98beab8 100644 --- a/web/dashboard/main_dashboard.py +++ b/web/dashboard/main_dashboard.py @@ -496,23 +496,23 @@ def updated_echart_plot(self): if splitting_var == "affiliation_country": splitting_var_filter = self.filter_affiliation_country splitting_var_column = "affiliation_country" - splitting_var_query = lambda cell, selected_item: selected_item in cell + splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731 elif splitting_var == "funder": splitting_var_filter = self.filter_funder splitting_var_column = "funder" - splitting_var_query = lambda cell, selected_item: selected_item in cell + splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731 elif splitting_var == "data_tags": splitting_var_filter = self.filter_tags splitting_var_column = "data_tags" - splitting_var_query = lambda cell, selected_item: selected_item in cell + splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731 else: print("Defaulting to splitting var 'journal' ") splitting_var_filter = self.filter_journal splitting_var_column = "journal" - splitting_var_query = lambda cell, selected_item: cell == selected_item + splitting_var_query = lambda cell, selected_item: cell == selected_item # noqa: E731 last_year_values = {} for selected_item in sorted(splitting_var_filter):