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

[pre-commit.ci] pre-commit autoupdate #28

Merged
merged 2 commits into from
Feb 6, 2023
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion reproschema/models/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions reproschema/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions reproschema/models/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()

Expand Down
1 change: 0 additions & 1 deletion reproschema/models/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down