Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
10
57
base_commit
stringlengths
40
40
patch
stringlengths
261
854k
problem_statement
stringlengths
33
51.5k
repo
stringlengths
7
52
test_patch
stringlengths
283
997k
FAIL_TO_PASS
listlengths
1
2.36k
FAIL_TO_FAIL
listlengths
0
589
PASS_TO_PASS
listlengths
0
2.77k
PASS_TO_FAIL
listlengths
0
92
install_config
dict
0b01001001__spectree-64
a091fab020ac26548250c907bae0855273a98778
diff --git a/setup.py b/setup.py index 1b3cb64..4ef21e6 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f: setup( name='spectree', - version='0.3.7', + version='0.3.8', author='Keming Yang', author_email='kemingy94@gmail....
[BUG]description for query paramters can not show in swagger ui Hi, when I add a description for a schema used in query, it can not show in swagger ui but can show in Redoc ```py @HELLO.route('/', methods=['GET']) @api.validate(query=HelloForm) def hello(): """ hello 注释 :return: """ return '...
0b01001001/spectree
diff --git a/tests/common.py b/tests/common.py index 0f2d696..83b4140 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,7 +1,7 @@ from enum import IntEnum, Enum from typing import List -from pydantic import BaseModel, root_validator +from pydantic import BaseModel, root_validator, Field class Order(IntE...
[ "tests/test_utils.py::test_parse_params" ]
[]
[ "tests/test_utils.py::test_comments", "tests/test_utils.py::test_parse_code", "tests/test_utils.py::test_parse_name", "tests/test_utils.py::test_has_model", "tests/test_utils.py::test_parse_resp", "tests/test_utils.py::test_parse_request" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[flask,falcon,starlette]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], ...
12rambau__sepal_ui-411
179bd8d089275c54e94a7614be7ed03d298ef532
diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst index 1a982afb..867227cb 100644 --- a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst +++ b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst @@ -8,6 +8,7 @@ sepal\_ui.sepalwi...
add a disabled trait on the datepicker I'm currently coding it in a module and the process of disabling a datepicker is uterly boring. I think we could add an extra trait to the layout and pilot the enabling and disabling directly from the built-in widget ```python self.w_start = sw.DatePicker(label="start", v_mo...
12rambau/sepal_ui
diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py index f4c6d40e..e5f5d06f 100644 --- a/tests/test_DatePicker.py +++ b/tests/test_DatePicker.py @@ -35,6 +35,14 @@ class TestDatePicker: return + def test_disable(self, datepicker): + + for boolean in [True, False]: + datep...
[ "tests/test_DatePicker.py::TestDatePicker::test_disable" ]
[]
[ "tests/test_DatePicker.py::TestDatePicker::test_init", "tests/test_DatePicker.py::TestDatePicker::test_bind" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "coverage" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-...
12rambau__sepal_ui-501
7eb3f48735e1cfeac75fecf88dd8194c8daea3d3
diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst index 642a3ab6..7f11e39f 100644 --- a/docs/source/modules/sepal_ui.translator.Translator.rst +++ b/docs/source/modules/sepal_ui.translator.Translator.rst @@ -2,19 +2,6 @@ sepal\_ui.translator.Tra...
use box for the translator ? I discovered this lib while working on the geemap drop. I think it could be super handy for the translator keys and maybe faster. https://github.com/cdgriffith/Box side note: we will need it anyway for the geemap drop
12rambau/sepal_ui
diff --git a/tests/test_Translator.py b/tests/test_Translator.py index c6d0e85e..ff6c46f8 100644 --- a/tests/test_Translator.py +++ b/tests/test_Translator.py @@ -35,9 +35,10 @@ class TestTranslator: def test_search_key(self): - # assert that having a wrong key in the json will raise an error + #...
[ "tests/test_Translator.py::TestTranslator::test_search_key" ]
[]
[ "tests/test_Translator.py::TestTranslator::test_init", "tests/test_Translator.py::TestTranslator::test_sanitize", "tests/test_Translator.py::TestTranslator::test_delete_empty", "tests/test_Translator.py::TestTranslator::test_find_target", "tests/test_Translator.py::TestTranslator::test_available_locales" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest", "coverage" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA...
12rambau__sepal_ui-516
9c319b0c21b8b1ba75173f3f85fd184747c398de
diff --git a/docs/source/modules/sepal_ui.aoi.AoiModel.rst b/docs/source/modules/sepal_ui.aoi.AoiModel.rst index 0f5b8f1a..ccdcab52 100644 --- a/docs/source/modules/sepal_ui.aoi.AoiModel.rst +++ b/docs/source/modules/sepal_ui.aoi.AoiModel.rst @@ -12,7 +12,6 @@ sepal\_ui.aoi.AoiModel ~AoiModel.NAME ~AoiM...
deprecate zip_dir https://github.com/12rambau/sepal_ui/blob/a9255e7c566aac31ee7f8303e74fb7e8a3d57e5f/sepal_ui/aoi/aoi_model.py#L64 This folder is created on AOI call but is not used anymore as we are using the tmp module to create the tmp directory.
12rambau/sepal_ui
diff --git a/tests/test_Tile.py b/tests/test_Tile.py index aa22d301..de0de97e 100644 --- a/tests/test_Tile.py +++ b/tests/test_Tile.py @@ -81,7 +81,7 @@ class TestTile: assert res == tile assert tile._metadata["mount_id"] == "nested_tile" - assert tile.elevation is False + assert tile....
[ "tests/test_Tile.py::TestTile::test_nest" ]
[]
[ "tests/test_Tile.py::TestTile::test_init", "tests/test_Tile.py::TestTile::test_set_content", "tests/test_Tile.py::TestTile::test_set_title", "tests/test_Tile.py::TestTile::test_hide", "tests/test_Tile.py::TestTile::test_show", "tests/test_Tile.py::TestTile::test_toggle_inputs", "tests/test_Tile.py::Test...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
12rambau__sepal_ui-518
698d446e33062934d49f9edb91cbe303b73e786f
diff --git a/sepal_ui/mapping/aoi_control.py b/sepal_ui/mapping/aoi_control.py index 01a6aa48..ae143d2c 100644 --- a/sepal_ui/mapping/aoi_control.py +++ b/sepal_ui/mapping/aoi_control.py @@ -36,7 +36,7 @@ class AoiControl(WidgetControl): kwargs["position"] = kwargs.pop("position", "topright") # crea...
add posibility to add text in the map_btn The current implementation of the map_btn only authorize to use logos. It would be nice to let the opportunity to use letters as in the SEPAL main framework (3 letters only in capital)
12rambau/sepal_ui
diff --git a/tests/test_FullScreenControl.py b/tests/test_FullScreenControl.py index 39141edf..148242b8 100644 --- a/tests/test_FullScreenControl.py +++ b/tests/test_FullScreenControl.py @@ -14,7 +14,7 @@ class TestFullScreenControl: assert isinstance(control, sm.FullScreenControl) assert control in m...
[ "tests/test_MapBtn.py::TestMapBtn::test_init" ]
[ "tests/test_FullScreenControl.py::TestFullScreenControl::test_init", "tests/test_FullScreenControl.py::TestFullScreenControl::test_toggle_fullscreen" ]
[]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
12rambau__sepal_ui-574
412e02ef08df68c256f384081d2c7eaecc09428e
diff --git a/sepal_ui/translator/translator.py b/sepal_ui/translator/translator.py index 1ad14c98..ea647223 100644 --- a/sepal_ui/translator/translator.py +++ b/sepal_ui/translator/translator.py @@ -65,7 +65,7 @@ class Translator(Box): # check if forbidden keys are being used # this will raise an er...
_protected_keys are not raising error when used in translator `protected_keys` are not raising errors when used in a json translation file. It is also happening with the "`FORBIDDEN_KEYS`" when are used in nested levels. To reproduce... ```Python # set up the appropriate keys for each language keys = { "en...
12rambau/sepal_ui
diff --git a/tests/test_Translator.py b/tests/test_Translator.py index 3c3704af..865bcd84 100644 --- a/tests/test_Translator.py +++ b/tests/test_Translator.py @@ -40,17 +40,30 @@ class TestTranslator: assert translator._target == "fr-FR" assert translator._match is True + # Check that is fail...
[ "tests/test_Translator.py::TestTranslator::test_search_key" ]
[]
[ "tests/test_Translator.py::TestTranslator::test_init", "tests/test_Translator.py::TestTranslator::test_sanitize", "tests/test_Translator.py::TestTranslator::test_delete_empty", "tests/test_Translator.py::TestTranslator::test_find_target", "tests/test_Translator.py::TestTranslator::test_available_locales", ...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "nbmake" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9"...
12rambau__sepal_ui-646
8a8196e3c7893b7a0aebdb4910e83054f59e0374
diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py index 68e3f115..de6d4abb 100644 --- a/sepal_ui/sepalwidgets/alert.py +++ b/sepal_ui/sepalwidgets/alert.py @@ -94,9 +94,10 @@ class Alert(v.Alert, SepalWidget): self.show() # cast the progress to float + total = tqdm_...
allow other values for progress Now that we are supporting tqdm it should be possible to support progress values that are not between 0 and 1. https://github.com/12rambau/sepal_ui/blob/c15a83dc6c92d076e6932afab4e4b2987585894b/sepal_ui/sepalwidgets/alert.py#L98
12rambau/sepal_ui
diff --git a/tests/test_Alert.py b/tests/test_Alert.py index af360930..52c6931c 100644 --- a/tests/test_Alert.py +++ b/tests/test_Alert.py @@ -153,11 +153,18 @@ class TestAlert: # test a random update alert.update_progress(0.5) - assert alert.progress_bar.n == 50 + assert alert.progres...
[ "tests/test_Alert.py::TestAlert::test_update_progress" ]
[]
[ "tests/test_Alert.py::TestAlert::test_init", "tests/test_Alert.py::TestAlert::test_add_msg", "tests/test_Alert.py::TestAlert::test_add_live_msg", "tests/test_Alert.py::TestAlert::test_append_msg", "tests/test_Alert.py::TestAlert::test_reset", "tests/test_Alert.py::TestAlert::test_rmv_last_msg" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest", "pytest-sugar" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header...
12rambau__sepal_ui-747
a683a7665a9710acd5ca939308e18539e92014b7
diff --git a/sepal_ui/sepalwidgets/sepalwidget.py b/sepal_ui/sepalwidgets/sepalwidget.py index 40826809..00cbe015 100644 --- a/sepal_ui/sepalwidgets/sepalwidget.py +++ b/sepal_ui/sepalwidgets/sepalwidget.py @@ -177,11 +177,11 @@ class SepalWidget(v.VuetifyWidget): is_klass = isinstance(w, klass) ...
make get_children recursively again previous implementation used recursion to find all children within the widget that matches with the query, now it returns only first level of matching children, could we make it reclusively again?
12rambau/sepal_ui
diff --git a/tests/test_SepalWidget.py b/tests/test_SepalWidget.py index 3abd719f..22699d69 100644 --- a/tests/test_SepalWidget.py +++ b/tests/test_SepalWidget.py @@ -108,24 +108,23 @@ class TestSepalWidget: assert len(res) == 0 # search for specific attributes in any class - # one alert that...
[ "tests/test_SepalWidget.py::TestSepalWidget::test_get_children" ]
[]
[ "tests/test_SepalWidget.py::TestSepalWidget::test_init", "tests/test_SepalWidget.py::TestSepalWidget::test_set_viz", "tests/test_SepalWidget.py::TestSepalWidget::test_show", "tests/test_SepalWidget.py::TestSepalWidget::test_hide", "tests/test_SepalWidget.py::TestSepalWidget::test_toggle_viz", "tests/test_...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest", "pytest-sugar", "pytest-icdiff", "pytest-cov", "pytest-deadfixtures", "Flake8-pyproject", "nox",...
12rambau__sepal_ui-774
2576446debe3544f3edeb208c76f671ffc0c8650
diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py index 04e69553..cd561bb5 100644 --- a/sepal_ui/sepalwidgets/inputs.py +++ b/sepal_ui/sepalwidgets/inputs.py @@ -205,6 +205,9 @@ class FileInput(v.Flex, SepalWidget): clear: Optional[v.Btn] = None "clear btn to remove everything and...
Restrict maximum parent level from InputFile I have some apps where I’m interested on only search up to certain level, i.e., module_downloads, and I think that in the most of them, the user doesn’t need to go upper from sepal_user, once they start clicking, they could easily get lost over multiple folders. what if w...
12rambau/sepal_ui
diff --git a/tests/conftest.py b/tests/conftest.py index f8b2c217..bac6feee 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,7 @@ import uuid from itertools import product from pathlib import Path +from typing import Optional import ee import geopandas as gpd @@ -20,7 +21,7 @@ except Exception: ...
[ "tests/test_FileInput.py::TestFileInput::test_root" ]
[]
[ "tests/test_FileInput.py::TestFileInput::test_init", "tests/test_FileInput.py::TestFileInput::test_bind", "tests/test_FileInput.py::TestFileInput::test_on_file_select", "tests/test_FileInput.py::TestFileInput::test_on_reload", "tests/test_FileInput.py::TestFileInput::test_reset", "tests/test_FileInput.py:...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest pytest-cov pytest-sugar pytest-icdiff pytest-deadfixtures Flake8-pyproject nbmake", "pytest" ], "pre_ins...
12rambau__sepal_ui-814
6d825ae167f96ad2e7b76b96ca07de562f74dcf0
diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py index 19718f51..8dafab92 100644 --- a/sepal_ui/sepalwidgets/alert.py +++ b/sepal_ui/sepalwidgets/alert.py @@ -108,14 +108,17 @@ class Alert(v.Alert, SepalWidget): Args: progress: the progress status in float ...
avoid to force developer to set total each time I should be able to init the progress of an Alert first and then simply update the progress. as in: ```python from sepal_ui import sepalwidgets as sw alert = sw.Alert() # init alert.update_progress(0, "toto", total=10) # loop for i in range(10): ...
12rambau/sepal_ui
diff --git a/tests/test_sepalwidgets/test_Alert.py b/tests/test_sepalwidgets/test_Alert.py index 3f8de9a4..cac14ebb 100644 --- a/tests/test_sepalwidgets/test_Alert.py +++ b/tests/test_sepalwidgets/test_Alert.py @@ -175,7 +175,8 @@ def test_update_progress() -> None: # check that if total is set value can be more...
[ "tests/test_sepalwidgets/test_Alert.py::test_update_progress" ]
[]
[ "tests/test_sepalwidgets/test_Alert.py::test_init", "tests/test_sepalwidgets/test_Alert.py::test_add_msg", "tests/test_sepalwidgets/test_Alert.py::test_add_live_msg", "tests/test_sepalwidgets/test_Alert.py::test_append_msg", "tests/test_sepalwidgets/test_Alert.py::test_reset", "tests/test_sepalwidgets/tes...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
15five__scim2-filter-parser-13
3ed1858b492542d0bc9b9e9ab9547641595e28c1
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 12a5d4f..178f172 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ CHANGE LOG ========== +0.3.5 +----- +- Update the sql.Transpiler to collect namedtuples rather than tuples for attr paths + 0.3.4 ----- - Update tox.ini and clean up linting errors di...
Return NamedTuple rather than tuple. It would be nice to return a NamedTuple instead of a tuple here: https://github.com/15five/scim2-filter-parser/blob/7ddc216f8c3dd1cdb2152944187e8f7f5ee07be2/src/scim2_filter_parser/transpilers/sql.py#L148 This way parts of each path could be accessed by name rather than by in...
15five/scim2-filter-parser
diff --git a/tests/test_transpiler.py b/tests/test_transpiler.py index b8e1bb4..280c2d3 100644 --- a/tests/test_transpiler.py +++ b/tests/test_transpiler.py @@ -36,6 +36,16 @@ class RFCExamples(TestCase): self.assertEqual(expected_sql, sql, query) self.assertEqual(expected_params, params, query) + ...
[ "tests/test_transpiler.py::RFCExamples::test_attr_paths_are_created" ]
[]
[ "tests/test_transpiler.py::RFCExamples::test_emails_type_eq_work_value_contians_or_ims_type_eq_and_value_contians", "tests/test_transpiler.py::RFCExamples::test_family_name_contains", "tests/test_transpiler.py::RFCExamples::test_meta_last_modified_ge", "tests/test_transpiler.py::RFCExamples::test_meta_last_mo...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
15five__scim2-filter-parser-20
08de23c5626556a37beced764a22a2fa7021989b
diff --git a/src/scim2_filter_parser/parser.py b/src/scim2_filter_parser/parser.py index 516f65d..12c693e 100644 --- a/src/scim2_filter_parser/parser.py +++ b/src/scim2_filter_parser/parser.py @@ -110,9 +110,8 @@ class SCIMParser(Parser): # which takes precedence over "or" # 3. Attribute operators ...
Issue when using multiple "or" or "and" Hi, I am facing an issue, where the query having two or more "and" or more than two "or" is failing. Have a look at examples below: - 1)```"displayName co \"username\" or nickName co \"username\" or userName co \"username\""``` ```"displayName co \"username\" and nick...
15five/scim2-filter-parser
diff --git a/tests/test_parser.py b/tests/test_parser.py index 4ff562c..19aa198 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -47,6 +47,24 @@ class BuggyQueries(TestCase): with self.assertRaises(parser.SCIMParserError): self.parser.parse(token_stream) + def test_g17_1_log_ex...
[ "tests/test_parser.py::BuggyQueries::test_g17_1_log_exp_order", "tests/test_parser.py::BuggyQueries::test_g17_2_log_exp_order" ]
[]
[ "tests/test_parser.py::RegressionTestQueries::test_command_line", "tests/test_parser.py::BuggyQueries::test_g17_3_log_exp_order", "tests/test_parser.py::BuggyQueries::test_no_quotes_around_comp_value", "tests/test_parser.py::CommandLine::test_command_line" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[django-query]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": [ "docs/requirements.txt" ], "te...
20c__ctl-3
879af37647e61767a1ede59ffd353e4cfd27cd6f
diff --git a/src/ctl/plugins/pypi.py b/src/ctl/plugins/pypi.py index 5d979af..a6117af 100644 --- a/src/ctl/plugins/pypi.py +++ b/src/ctl/plugins/pypi.py @@ -32,7 +32,7 @@ class PyPIPluginConfig(release.ReleasePluginConfig): config_file = confu.schema.Str(help="path to pypi config file (e.g. ~/.pypirc)") # P...
PyPI plugin: `target` config attribute should be `repository` This is so it's in line with the version plugin, which currently uses `repository` to specify the target repository The pypi plugin currently uses `repository` to specify which PyPI repository to use, this should change to `pypi_repository` as well. Sh...
20c/ctl
diff --git a/tests/test_plugin_pypi.py b/tests/test_plugin_pypi.py index 20315ad..19813e2 100644 --- a/tests/test_plugin_pypi.py +++ b/tests/test_plugin_pypi.py @@ -53,35 +53,35 @@ def test_init(): -def test_set_target_git_path(tmpdir, ctlr): +def test_set_repository_git_path(tmpdir, ctlr): """ - Test set...
[ "tests/test_plugin_pypi.py::test_set_repository_git_path[standard]", "tests/test_plugin_pypi.py::test_set_repository_git_plugin[standard]", "tests/test_plugin_pypi.py::test_set_repository_error[standard]" ]
[ "tests/test_plugin_pypi.py::test_build_dist[standard]", "tests/test_plugin_pypi.py::test_validate_dist[standard]" ]
[ "tests/test_plugin_pypi.py::test_init" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "codecov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ]...
3YOURMIND__django-migration-linter-113
799957a5564e8ca1ea20d7cf643abbc21db4e40f
diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index 31f8fea..c5ea333 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -289,8 +289,13 @@ class MigrationLinter(object): @classmethod def read_m...
Bug: --include-migrations-from argument being ignored In version 2.2.2, using the `--include-migration-from` argument and specifying a migration .py file will not work and `lintmigrations` will run on all migration files. On [line 299](https://github.com/3YOURMIND/django-migration-linter/blob/799957a5564e8ca1ea20d7c...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_linter.py b/tests/unit/test_linter.py index 392a43c..d086fbe 100644 --- a/tests/unit/test_linter.py +++ b/tests/unit/test_linter.py @@ -88,8 +88,12 @@ class LinterFunctionsTestCase(unittest.TestCase): def test_read_migrations_unknown_file(self): file_path = "unknown_file" - ...
[ "tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_no_file", "tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_unknown_file" ]
[ "tests/unit/test_linter.py::LinterFunctionsTestCase::test_exclude_migration_tests", "tests/unit/test_linter.py::LinterFunctionsTestCase::test_gather_all_migrations", "tests/unit/test_linter.py::LinterFunctionsTestCase::test_gather_migrations_with_list", "tests/unit/test_linter.py::LinterFunctionsTestCase::tes...
[ "tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_empty_file", "tests/unit/test_linter.py::LinterFunctionsTestCase::test_read_migrations_from_file" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio", "pytest" ], "pre_install": null, "python": "3.6", "r...
3YOURMIND__django-migration-linter-258
366d16b01a72d0baa54fef55761d846b0f05b8dd
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3069d91..beafd65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,21 @@ Instead, the linter crashes and lets the `sqlmigrate` error raise, in order to avoid letting a problematic migration pass. One common reason for such an error is the SQL generation which requ...
Adding an index with a NOT NULL condition incorrectly triggers NOT_NULL rule Adding an index with a `WHERE` clause including `NOT NULL` gets flagged as a `NOT NULL constraint on columns` error. ## Steps to reproduce The follow migration operation: ```python AddIndexConcurrently( model_name="prediction", ...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index d7349fc..012d53c 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -297,6 +297,10 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX CONCURRENTLY title_idx ...
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_concurrently_where" ]
[]
[ "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_many_to_many_field", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null", "tests/unit/test_sql_analyser.py::MySqlAnalyserTestCase::test_add_not_null_followed_by_default", "tests/unit/test_sql_analyser.py::MySqlAnalyserTe...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio" ], "pre_install": [], "python": "3.9", "reqs_path": ...
AI4S2S__lilio-49
329a736d26915944744a4235c11497718e0d7832
diff --git a/lilio/__init__.py b/lilio/__init__.py index f00a7de..ef989aa 100644 --- a/lilio/__init__.py +++ b/lilio/__init__.py @@ -62,8 +62,8 @@ Example: """ import logging -from . import calendar_shifter -from . import traintest +from lilio import calendar_shifter +from lilio import traintest from .calendar imp...
Add (more) attributes to xarray `resample` output As xarray uses the structure of netCDF files, there is quite a lot of space to add extra information, in the form of "attributes". For provenance and traceability, we can make use of this in Lilio. This can consist of, but is not limited to: - Adding attributes to...
AI4S2S/lilio
diff --git a/tests/test_resample.py b/tests/test_resample.py index 59fed6b..b50380f 100644 --- a/tests/test_resample.py +++ b/tests/test_resample.py @@ -209,6 +209,45 @@ class TestResample: with pytest.warns(UserWarning): resample(cal, dataset) + def test_dataset_attrs(self, dummy_calendar, d...
[ "tests/test_resample.py::TestResample::test_dataset_attrs[20151020]", "tests/test_resample.py::TestResample::test_dataset_attrs[20191015]", "tests/test_resample.py::TestResample::test_dataarray_attrs[20151020]", "tests/test_resample.py::TestResample::test_dataarray_attrs[20191015]" ]
[ "tests/test_resample.py::TestResampleChecks::test_month_freq_data" ]
[ "tests/test_resample.py::TestResample::test_non_mapped_calendar", "tests/test_resample.py::TestResample::test_nontime_index[20151020]", "tests/test_resample.py::TestResample::test_nontime_index[20191015]", "tests/test_resample.py::TestResample::test_series[20151020]", "tests/test_resample.py::TestResample::...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
AI4S2S__lilio-58
416ea560d41b57502cf204fbf4e65e79c21373bf
diff --git a/lilio/calendar.py b/lilio/calendar.py index c288ebb..93ee1db 100644 --- a/lilio/calendar.py +++ b/lilio/calendar.py @@ -206,10 +206,15 @@ class Calendar: self._set_mapping(mapping) @property - def n_targets(self): + def n_targets(self) -> int: """Return the number of targets....
Unclear error message when an empty calendar is passed to `resample` function. When executing the following code: ```py import lilio from lilio import Calendar import xarray as xr ds = xr.load_dataset(path_to_data) # just some sample data cal = Calendar("12-25") # note that no intervals are added to the calen...
AI4S2S/lilio
diff --git a/tests/test_resample.py b/tests/test_resample.py index c39bd68..b68441f 100644 --- a/tests/test_resample.py +++ b/tests/test_resample.py @@ -326,6 +326,24 @@ class TestResampleChecks: with pytest.raises(ValueError, match=r".*reserved names..*"): resample(cal, dummy_dataframe.rename(col...
[ "tests/test_resample.py::TestResampleChecks::test_empty_calendar" ]
[ "tests/test_resample.py::TestResample::test_missing_intervals_dataframe[20151020]", "tests/test_resample.py::TestResample::test_missing_intervals_dataframe[20191015]", "tests/test_resample.py::TestResample::test_missing_intervals_dataset[20151020]", "tests/test_resample.py::TestResample::test_missing_interval...
[ "tests/test_resample.py::TestResample::test_non_mapped_calendar", "tests/test_resample.py::TestResample::test_nontime_index[20151020]", "tests/test_resample.py::TestResample::test_nontime_index[20191015]", "tests/test_resample.py::TestResample::test_series[20151020]", "tests/test_resample.py::TestResample::...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=n...
ARMmbed__greentea-263
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
diff --git a/mbed_greentea/mbed_greentea_cli.py b/mbed_greentea/mbed_greentea_cli.py index f6a13c4..446b965 100644 --- a/mbed_greentea/mbed_greentea_cli.py +++ b/mbed_greentea/mbed_greentea_cli.py @@ -23,6 +23,7 @@ import os import sys import random import optparse +import fnmatch from time import time try: f...
Test names are not correctly globbed Test names only respect a wildcard that is placed at the end of the string. Ex. "mbed-os-*". However, it does not respect the wildcard anywhere else. Ex. "*-timer" The build tools accept these wildcards, so greentea should as well. This is the line responsible: https://github....
ARMmbed/greentea
diff --git a/test/mbed_gt_cli.py b/test/mbed_gt_cli.py index 0646c20..8f4a1eb 100644 --- a/test/mbed_gt_cli.py +++ b/test/mbed_gt_cli.py @@ -21,6 +21,36 @@ import sys import unittest from mbed_greentea import mbed_greentea_cli +from mbed_greentea.tests_spec import TestSpec + +test_spec_def = { + "builds": { + ...
[ "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_create_filtered_test_list" ]
[]
[ "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_greentea_version", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_hello_string", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_local_host_tests_dir_default_path", "test/mbed_gt_cli.py::GreenteaCliFunctionality::test_get_local_host_t...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
ARMmbed__mbed-tools-138
94a3bd761d6ab3305c81da93517767aafff58d7e
diff --git a/news/20201201142709.bugfix b/news/20201201142709.bugfix new file mode 100644 index 0000000..0468f3e --- /dev/null +++ b/news/20201201142709.bugfix @@ -0,0 +1,1 @@ +Fix bug where we failed to handle config options that contain quotes (#125) diff --git a/src/mbed_tools/build/_internal/templates/mbed_config.t...
mbed-tools fails to handle config options that contain quotes ### Description From @rajkan01: For the below mbed_lib.json config ``` "iotc-mqtt-host": { "help": "IOTC MQTT host configuration. Defaults to mqtt.2030.ltsapis.goog host and port number 8883 if undefined", "value": "{\"mqtt.2030.lts...
ARMmbed/mbed-tools
diff --git a/tests/build/_internal/test_cmake_file.py b/tests/build/_internal/test_cmake_file.py index 1f59cb3..b0247a8 100644 --- a/tests/build/_internal/test_cmake_file.py +++ b/tests/build/_internal/test_cmake_file.py @@ -2,67 +2,69 @@ # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: ...
[ "tests/build/_internal/test_cmake_file.py::TestRendersCMakeListsFile::test_returns_quoted_content" ]
[]
[ "tests/build/_internal/test_cmake_file.py::TestGenerateCMakeListsFile::test_correct_arguments_passed", "tests/build/_internal/test_cmake_file.py::TestRendersCMakeListsFile::test_returns_rendered_content" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock" ], "pre_install": null, "python": "3.8", "reqs_path": [ "requi...
ARMmbed__mbed-tools-190
d4dd48ce58952851f9cb2a9e98b0f788a61a23a3
diff --git a/news/169.bugfix b/news/169.bugfix new file mode 100644 index 0000000..78b6135 --- /dev/null +++ b/news/169.bugfix @@ -0,0 +1,1 @@ +Support use of user@host:directory syntax with the import subcommand. diff --git a/src/mbed_tools/project/mbed_program.py b/src/mbed_tools/project/mbed_program.py index d095e5b...
mbed-tools import fails to import an example with ssh url ### Description <!-- A detailed description of what is being reported. Please include steps to reproduce the problem. Things to consider sharing: - What version of the package is being used (pip show mbed-tools)? - What is the host platform and version ...
ARMmbed/mbed-tools
diff --git a/tests/project/test_mbed_program.py b/tests/project/test_mbed_program.py index 7f700f0..be83aa9 100644 --- a/tests/project/test_mbed_program.py +++ b/tests/project/test_mbed_program.py @@ -127,6 +127,12 @@ class TestParseURL(TestCase): self.assertEqual(data["url"], url) self.assertEqual(da...
[ "tests/project/test_mbed_program.py::TestParseURL::test_creates_valid_dst_dir_from_ssh_url" ]
[]
[ "tests/project/test_mbed_program.py::TestInitialiseProgram::test_from_existing_raises_if_no_mbed_os_dir_found_and_check_mbed_os_is_true", "tests/project/test_mbed_program.py::TestInitialiseProgram::test_from_existing_raises_if_path_is_not_a_program", "tests/project/test_mbed_program.py::TestInitialiseProgram::t...
[]
{ "env_vars": null, "env_yml_path": [], "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "requests-mock", "factory_boy", "boto3", "jinja2", "PyG...
ARMmbed__mbed-tools-208
584a995d93b9562e9c95385268891dfdae9c55f1
diff --git a/news/201.bugfix b/news/201.bugfix new file mode 100644 index 0000000..0ef9e8e --- /dev/null +++ b/news/201.bugfix @@ -0,0 +1,1 @@ +Define a board as unknown if it cannot be identified locally when unable to access the online database. diff --git a/src/mbed_tools/targets/_internal/board_database.py b/src/mb...
Obtuse error message when board is not found locally or remotely ### Description When a board is being looked for, and it isn't found in the offline database, and no network connectivity is available (say, perhaps [when a proxy is required to access the net](https://github.com/ARMmbed/mbed-tools/issues/200), the err...
ARMmbed/mbed-tools
diff --git a/tests/targets/test_get_board.py b/tests/targets/test_get_board.py index d2e5b69..0398f4a 100644 --- a/tests/targets/test_get_board.py +++ b/tests/targets/test_get_board.py @@ -5,6 +5,8 @@ """Tests for `mbed_tools.targets.get_board`.""" from unittest import mock, TestCase +from mbed_tools.targets._inter...
[ "tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_raises_when_board_not_found_offline_with_no_network" ]
[]
[ "tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_calls_offline_boards_first", "tests/targets/test_get_board.py::TestGetBoard::test_auto_mode_falls_back_to_online_database_when_board_not_found", "tests/targets/test_get_board.py::TestGetBoard::test_offline_mode", "tests/targets/test_get_board.py::...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get update", "a...
ARMmbed__mbed-tools-259
a9b0e1fa3e1d58f80eff5fcc4f82f5952acf8f96
diff --git a/news/258.bugfix b/news/258.bugfix new file mode 100644 index 0000000..cd7d099 --- /dev/null +++ b/news/258.bugfix @@ -0,0 +1,1 @@ +Make details.txt parsing more lenient to avoid issues with various formats. diff --git a/src/mbed_tools/devices/_internal/file_parser.py b/src/mbed_tools/devices/_internal/file...
This introduces a big issue: The PR to list the interface version https://github.com/ARMmbed/mbed-tools/pull/235, shipped with v7.6.0, has a big issue. ```` $ pip list | grep mbed-tools mbed-tools 7.6.0 $ mbedtools detect Traceback (most recent call last): File "xxx\appdata\local\programs\python\p...
ARMmbed/mbed-tools
diff --git a/tests/devices/_internal/test_file_parser.py b/tests/devices/_internal/test_file_parser.py index 7211c81..4872623 100644 --- a/tests/devices/_internal/test_file_parser.py +++ b/tests/devices/_internal/test_file_parser.py @@ -233,8 +233,11 @@ class TestReadDetailsTxt: build_short_details_txt(ver...
[ "tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[newline]", "tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[nosep]", "tests/devices/_internal/test_file_parser.py::TestReadDetailsTxt::test_parses_details_txt[multiline]" ]
[]
[ "tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_finds_daplink_compatible_device_files", "tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_finds_jlink_device_files", "tests/devices/_internal/test_file_parser.py::TestReadDeviceFiles::test_warns_if_no_device_files_foun...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock" ], "pre_install": [ "apt-get update", "apt-get install -y cmak...
ARMmbed__mbed-tools-285
ff2da40abec773902b6fda86d36de154d83a7d9f
diff --git a/news/20210524175020.bugfix b/news/20210524175020.bugfix new file mode 100644 index 0000000..e9b7b63 --- /dev/null +++ b/news/20210524175020.bugfix @@ -0,0 +1,1 @@ +Avoid searching config file paths twice when mbed-os-path is used and it is a subdirectory of the project path. diff --git a/src/mbed_tools/bui...
Does not compile with --mbed-os-path option **Describe the bug** As in title. **To Reproduce** Steps to reproduce the behavior: 1. Import an example project. 1. mbed-tools compile -m K64F -t GCC_ARM --mbed-os-path mbed-os Error: `ValueError: Setting storage_filesystem.rbp_internal_size already defined. You c...
ARMmbed/mbed-tools
diff --git a/tests/build/_internal/config/test_assemble_build_config.py b/tests/build/_internal/config/test_assemble_build_config.py index 79acb8d..47fcc5f 100644 --- a/tests/build/_internal/config/test_assemble_build_config.py +++ b/tests/build/_internal/config/test_assemble_build_config.py @@ -6,7 +6,7 @@ import json...
[ "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_ignores_duplicate_paths_to_lib_files", "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_does_not_search_symlinks_in_proj_dir_twice" ]
[]
[ "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_assembles_config_using_all_relevant_files", "tests/build/_internal/config/test_assemble_build_config.py::TestAssembleConfigFromSourcesAndLibFiles::test_updates_target_labels_from_config" ]
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "pytest-xdist" ], "pre_install": [], "python": "3.9", "reqs_p...
ARMmbed__mbed-tools-292
f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4
diff --git a/news/291.bugfix b/news/291.bugfix new file mode 100644 index 0000000..c7487e4 --- /dev/null +++ b/news/291.bugfix @@ -0,0 +1,1 @@ +Add an option `--app-config` to `configure` and `build` commands to allow users to specify an application configuration file. diff --git a/src/mbed_tools/cli/build.py b/src/mbe...
Missing `--app-config` option **Describe the bug** Mbed CLI 1 offers an `--app-config` option to let users specify the application configuration JSON instead of assuming `mbed_app.json`. This is not currently provided by mbed-tools, but useful when * one application provides multiple configurations for different use ...
ARMmbed/mbed-tools
diff --git a/tests/cli/test_build.py b/tests/cli/test_build.py index 860d275..d680ee9 100644 --- a/tests/cli/test_build.py +++ b/tests/cli/test_build.py @@ -116,18 +116,6 @@ class TestBuildCommand(TestCase): self.assertIsNotNone(result.exception) self.assertRegex(result.output, "--mbed-target"...
[ "tests/cli/test_build.py::TestBuildCommand::test_app_config_used_when_passed", "tests/cli/test_configure.py::TestConfigureCommand::test_app_config_used_when_passed" ]
[]
[ "tests/cli/test_build.py::TestBuildCommand::test_build_flash_both_two_devices", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_only_identifier_device", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_options_bin_target", "tests/cli/test_build.py::TestBuildCommand::test_build_flash_o...
[]
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get update", "a...
End of preview. Expand in Data Studio

This dataset is derived from nebius/SWE-rebench.

It keeps only samples whose gold patch verifies correctly.

Downloads last month
24