From 4fcc568b92fc959171e0688389ce1aff8395b3ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:24:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/psf/black: 22.10.0 → 23.1.0](https://github.com/psf/black/compare/22.10.0...23.1.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1061012..6c0ed16 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,13 +2,13 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.1.0 hooks: - id: black From 059f4b4cdad977c51b6374310e0086ff3b398fd6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:26:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- reproschema/models/activity.py | 1 - reproschema/models/base.py | 3 --- reproschema/models/item.py | 2 -- reproschema/models/protocol.py | 1 - 4 files changed, 7 deletions(-) diff --git a/reproschema/models/activity.py b/reproschema/models/activity.py index 25d27d2..0ad79e2 100644 --- a/reproschema/models/activity.py +++ b/reproschema/models/activity.py @@ -32,7 +32,6 @@ def set_defaults(self, name): self.set_ui_shuffle(False) def update_activity(self, item_info): - # TODO # - remove the hard coding on visibility and valueRequired diff --git a/reproschema/models/base.py b/reproschema/models/base.py index a2d59db..f3ecf93 100644 --- a/reproschema/models/base.py +++ b/reproschema/models/base.py @@ -10,7 +10,6 @@ class to deal with reproschema schemas schema_type = None def __init__(self, version): - URL = "https://raw.githubusercontent.com/ReproNim/reproschema/" VERSION = version or "1.0.0-rc2" @@ -47,12 +46,10 @@ def __set_defaults(self, name): self.set_description(name.replace("_", " ")) def sort_schema(self, schema_order): - reordered_dict = {k: self.schema[k] for k in schema_order} self.schema = reordered_dict def sort_ui(self, ui_order): - reordered_dict = {k: self.schema["ui"][k] for k in ui_order} self.schema["ui"] = reordered_dict diff --git a/reproschema/models/item.py b/reproschema/models/item.py index 595d67d..fc08c70 100644 --- a/reproschema/models/item.py +++ b/reproschema/models/item.py @@ -58,7 +58,6 @@ def set_input_type_as_slider(self): # self.set_response_options({"valueType": "xsd:string"}) def set_input_type_as_language(self): - URL = "https://raw.githubusercontent.com/ReproNim/reproschema/" self.set_input_type("selectLanguage") @@ -123,7 +122,6 @@ def set_input_type_as_multitext(self, max_length=300): # StaticReadOnly: Static/Static.vue def set_basic_response_type(self, response_type): - # default (also valid for "char" input type) self.set_input_type_as_char() diff --git a/reproschema/models/protocol.py b/reproschema/models/protocol.py index 284f2c8..10fa951 100644 --- a/reproschema/models/protocol.py +++ b/reproschema/models/protocol.py @@ -44,7 +44,6 @@ def set_defaults(self, name): self.set_ui_shuffle(False) def append_activity(self, activity): - # TODO # - remove the hard coding on visibility and valueRequired