instance_id
stringlengths
10
57
base_commit
stringlengths
40
40
created_at
stringdate
2014-04-30 14:58:36
2025-04-30 20:14:11
environment_setup_commit
stringlengths
40
40
hints_text
stringlengths
0
273k
patch
stringlengths
251
7.06M
problem_statement
stringlengths
11
52.5k
repo
stringlengths
7
53
test_patch
stringlengths
231
997k
meta
dict
version
stringclasses
864 values
install_config
dict
requirements
stringlengths
93
34.2k
environment
stringlengths
760
20.5k
FAIL_TO_PASS
listlengths
1
9.39k
FAIL_TO_FAIL
listlengths
0
2.69k
PASS_TO_PASS
listlengths
0
7.87k
PASS_TO_FAIL
listlengths
0
192
license_name
stringclasses
56 values
docker_image
stringlengths
42
89
image_name
stringlengths
42
89
0b01001001__spectree-64
a091fab020ac26548250c907bae0855273a98778
2020-10-12 13:21:50
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_fi...
0.3
{ "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" ], ...
annotated-types==0.7.0 anyio==4.9.0 blinker==1.9.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 exceptiongroup==1.2.2 falcon==4.0.2 Flask==3.1.0 idna==3.10 importlib_metadata==8.6.1 iniconfig==2.1.0 itsdangerous==2.2.0 Jinja2==3.1.6 MarkupSafe==3.0.2 packaging==24.2 pluggy==1.5.0 pydantic==2.11.1 pydantic_...
name: spectree channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "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" ]
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.0b01001001_1776_spectree-64
swerebench/sweb.eval.x86_64.0b01001001_1776_spectree-64
12rambau__sepal_ui-347
4554f35da3fab21c32c35c4bd557ecfdec9c60c5
2021-11-19 12:32:22
114063b50ee5b1ccbab680424bb048e11939b870
diff --git a/sepal_ui/mapping/__init__.py b/sepal_ui/mapping/__init__.py index 7f72a0eb..aa84ddee 100644 --- a/sepal_ui/mapping/__init__.py +++ b/sepal_ui/mapping/__init__.py @@ -2,6 +2,7 @@ from .aoi_control import * from .draw_control import * from .fullscreen_control import * from .layer import * +from .layer_sta...
display a loading statebar when a layer is loading in the map ## issue I experienced some issues with the FCDM module as the map is super slow to load (it uses a adaptative buffer, the more you zoom the slower it gets it's a nightmare). The consequence is that the user clicks frantically on the `zoom` `unzoom` btn a...
12rambau/sepal_ui
diff --git a/tests/test_LayerStateControl.py b/tests/test_LayerStateControl.py new file mode 100644 index 00000000..ce2aecb2 --- /dev/null +++ b/tests/test_LayerStateControl.py @@ -0,0 +1,84 @@ +from ipyleaflet import RasterLayer +from traitlets import Bool +import ee +import pytest + +from sepal_ui import mapping as s...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 ...
2.9
{ "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, ...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "tests/test_StateBar.py::TestStateBar::test_init" ]
[ "tests/test_LayerStateControl.py::TestLayerStateControl::test_init", "tests/test_SepalMap.py::TestSepalMap::test_init", "tests/test_SepalMap.py::TestSepalMap::test_set_center", "tests/test_SepalMap.py::TestSepalMap::test_zoom_bounds", "tests/test_SepalMap.py::TestSepalMap::test_add_colorbar", "tests/test_...
[ "tests/test_StateBar.py::TestStateBar::test_add_msg" ]
[]
MIT License
null
null
12rambau__sepal_ui-411
179bd8d089275c54e94a7614be7ed03d298ef532
2022-02-28 17:46:40
97371fbaed444727126a2969cd68f856db77221f
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 2 }
2.6
{ "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-...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 bqplot==0.12.44 branca==0.4.2 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_DatePicker.py::TestDatePicker::test_disable" ]
[]
[ "tests/test_DatePicker.py::TestDatePicker::test_init", "tests/test_DatePicker.py::TestDatePicker::test_bind" ]
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-411
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-411
12rambau__sepal_ui-416
8b76805db051d6d15024bd9ec2d78502cd92132e
2022-03-11 19:47:50
97371fbaed444727126a2969cd68f856db77221f
diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst b/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst index a3280cd3..22b87b44 100644 --- a/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst +++ b/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst @@ -7,7 +7,9 @@ sepal\_ui.sepalwi...
Interact with navigation drawers Sometimes is useful to pass some data from the module model to the app environment and so far we do not have this implementation. We can add two simple methods to the drawers so they can update their state with icons, badges, and so.
12rambau/sepal_ui
diff --git a/tests/test_DrawerItem.py b/tests/test_DrawerItem.py index ad26c3a2..0e80ffc9 100644 --- a/tests/test_DrawerItem.py +++ b/tests/test_DrawerItem.py @@ -1,3 +1,6 @@ +import pytest +from sepal_ui.model import Model +from traitlets import Bool import ipyvuetify as v from sepal_ui import sepalwidgets as sw @...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 2 }
2.6
{ "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-...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 bqplot==0.12.44 branca==0.4.2 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_DrawerItem.py::TestDrawerItem::test_add_notif", "tests/test_DrawerItem.py::TestDrawerItem::test_remove_notif" ]
[]
[ "tests/test_DrawerItem.py::TestDrawerItem::test_init_cards", "tests/test_DrawerItem.py::TestDrawerItem::test_display_tile" ]
[]
MIT License
null
null
12rambau__sepal_ui-418
8b76805db051d6d15024bd9ec2d78502cd92132e
2022-03-14 14:24:04
97371fbaed444727126a2969cd68f856db77221f
diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst index 867227cb..322cca23 100644 --- a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst +++ b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst @@ -9,6 +9,7 @@ sepal\_ui.sepalwi...
Can't instantiate a sw.DatePicker with initial v_model Is not possible to instantiate the sepal DatePicker with an initially given date through the `v_model` parameter
12rambau/sepal_ui
diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py index e5f5d06f..48993736 100644 --- a/tests/test_DatePicker.py +++ b/tests/test_DatePicker.py @@ -17,6 +17,11 @@ class TestDatePicker: datepicker = sw.DatePicker("toto") assert isinstance(datepicker, sw.DatePicker) + # datepicke...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files"...
2.6
{ "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-...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 bqplot==0.12.44 branca==0.4.2 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_DatePicker.py::TestDatePicker::test_is_valid_date", "tests/test_DatePicker.py::TestDatePicker::test_check_date" ]
[]
[ "tests/test_DatePicker.py::TestDatePicker::test_init", "tests/test_DatePicker.py::TestDatePicker::test_bind", "tests/test_DatePicker.py::TestDatePicker::test_disable" ]
[]
MIT License
null
null
12rambau__sepal_ui-419
97371fbaed444727126a2969cd68f856db77221f
2022-03-15 11:14:02
97371fbaed444727126a2969cd68f856db77221f
diff --git a/docs/source/modules/sepal_ui.rst b/docs/source/modules/sepal_ui.rst index 366a3fb2..2650327b 100644 --- a/docs/source/modules/sepal_ui.rst +++ b/docs/source/modules/sepal_ui.rst @@ -24,3 +24,11 @@ Content sepal_ui.theme sepal_ui.color sepal_ui.config_file + +.. rubric:: Attributes + +.. ...
automatically detect the theme used and adapt the frontend accordingly I have seen it on several zoom : it's so cool to display everything in dark but look so wrong when people are actually just developing in there own env in light theme. Several situation that I would like to handle : - voila theme - jupyterL...
12rambau/sepal_ui
diff --git a/tests/test_LocaleSelect.py b/tests/test_LocaleSelect.py index 5da8c6e0..1813b58d 100644 --- a/tests/test_LocaleSelect.py +++ b/tests/test_LocaleSelect.py @@ -6,7 +6,7 @@ from sepal_ui import sepalwidgets as sw from sepal_ui import config_file -class TestBtn: +class TestLocalSelect: def test_init(...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 14 }
2.6
{ "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": [ "numpy>=1.16.0", "pandas>=1.0.0", "ipyvuetify", "pytest" ], "pre_install": [ "apt-get update", "...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 bqplot==0.12.44 branca==0.4.2 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_ThemeSelect.py::TestThemeSelect::test_init", "tests/test_ThemeSelect.py::TestThemeSelect::test_change_language", "tests/test_utils.py::TestUtils::test_set_config_theme" ]
[ "tests/test_SepalMap.py::TestSepalMap::test_init", "tests/test_SepalMap.py::TestSepalMap::test_set_drawing_controls", "tests/test_SepalMap.py::TestSepalMap::test_remove_last_layer", "tests/test_SepalMap.py::TestSepalMap::test_zoom_bounds", "tests/test_SepalMap.py::TestSepalMap::test_show_dc", "tests/test_...
[ "tests/test_LocaleSelect.py::TestLocalSelect::test_init", "tests/test_LocaleSelect.py::TestLocalSelect::test_change_language", "tests/test_SepalMap.py::TestSepalMap::test_get_basemap_list", "tests/test_utils.py::TestUtils::test_hide_component", "tests/test_utils.py::TestUtils::test_show_component", "tests...
[]
MIT License
null
null
12rambau__sepal_ui-459
a4b3091755a11ef31a3714858007a93b750b6a79
2022-05-04 08:13:02
7eb3f48735e1cfeac75fecf88dd8194c8daea3d3
diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst index 60fa976c..642a3ab6 100644 --- a/docs/source/modules/sepal_ui.translator.Translator.rst +++ b/docs/source/modules/sepal_ui.translator.Translator.rst @@ -27,6 +27,7 @@ sepal\_ui.translator.Tr...
crowdin untranslated keys are marked as empty string These string are interpreted as "something" by the translator leading to empty strings everywhere in the build-in component. They should be ignored
12rambau/sepal_ui
diff --git a/tests/test_Translator.py b/tests/test_Translator.py index 930a533e..c6d0e85e 100644 --- a/tests/test_Translator.py +++ b/tests/test_Translator.py @@ -49,25 +49,29 @@ class TestTranslator: # a test dict with many embeded numbered list # but also an already existing list test = { -...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files"...
2.8
{ "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" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 bqplot==0.12.44 branca==0.4.2 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_Translator.py::TestTranslator::test_delete_empty" ]
[]
[ "tests/test_Translator.py::TestTranslator::test_init", "tests/test_Translator.py::TestTranslator::test_search_key", "tests/test_Translator.py::TestTranslator::test_sanitize", "tests/test_Translator.py::TestTranslator::test_missing_keys", "tests/test_Translator.py::TestTranslator::test_find_target", "tests...
[]
MIT License
null
null
12rambau__sepal_ui-501
7eb3f48735e1cfeac75fecf88dd8194c8daea3d3
2022-06-09 11:09:52
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 + #...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 3, "test_score": 3 }, "num_modified_files": 3 }
2.8
{ "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...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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" ]
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-501
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-501
12rambau__sepal_ui-516
9c319b0c21b8b1ba75173f3f85fd184747c398de
2022-07-03 07:19:07
114063b50ee5b1ccbab680424bb048e11939b870
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....
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files"...
2.9
{ "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...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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...
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-516
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-516
12rambau__sepal_ui-517
9c319b0c21b8b1ba75173f3f85fd184747c398de
2022-07-03 10:05:47
114063b50ee5b1ccbab680424bb048e11939b870
diff --git a/sepal_ui/message/en/utils.json b/sepal_ui/message/en/utils.json new file mode 100644 index 00000000..0282d86c --- /dev/null +++ b/sepal_ui/message/en/utils.json @@ -0,0 +1,7 @@ +{ + "utils": { + "check_input": { + "error": "The value has not been initialized" + } + } +} \ No ...
refactor check_input to raise error instead of displaying a message? https://github.com/12rambau/sepal_ui/blob/a9255e7c566aac31ee7f8303e74fb7e8a3d57e5f/sepal_ui/sepalwidgets/alert.py#L232 This was initially coded as a message to prevent the execution from stopping when a function was using undefined variables. Along...
12rambau/sepal_ui
diff --git a/tests/test_Alert.py b/tests/test_Alert.py index 6116cbc7..d125b74e 100644 --- a/tests/test_Alert.py +++ b/tests/test_Alert.py @@ -111,28 +111,22 @@ class TestAlert: alert = sw.Alert() - var_test = None - res = alert.check_input(var_test) - assert res is False - asse...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 }, "num...
2.9
{ "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": [ "apt-get update", "apt-get install -y gcc" ], "python": "3....
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_Alert.py::TestAlert::test_check_input", "tests/test_utils.py::TestUtils::test_check_input" ]
[ "tests/test_utils.py::TestUtils::test_init_ee", "tests/test_utils.py::TestUtils::test_geojson_to_ee" ]
[ "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", "tests/t...
[]
MIT License
null
null
12rambau__sepal_ui-518
698d446e33062934d49f9edb91cbe303b73e786f
2022-07-03 10:33:15
114063b50ee5b1ccbab680424bb048e11939b870
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 4 }
2.9
{ "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...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "tests/test_MapBtn.py::TestMapBtn::test_init" ]
[ "tests/test_FullScreenControl.py::TestFullScreenControl::test_init", "tests/test_FullScreenControl.py::TestFullScreenControl::test_toggle_fullscreen" ]
[]
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-518
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-518
12rambau__sepal_ui-533
7710c4abf8f0dfa916a4933c766ab6203bf3a76e
2022-07-06 07:47:43
114063b50ee5b1ccbab680424bb048e11939b870
diff --git a/sepal_ui/__init__.py b/sepal_ui/__init__.py index 5eab7e53..79ccdf6f 100644 --- a/sepal_ui/__init__.py +++ b/sepal_ui/__init__.py @@ -1,8 +1,11 @@ import ipyvuetify as v from sepal_ui.conf import config, config_file -from sepal_ui.frontend.styles import color, get_theme +from sepal_ui.frontend.styles i...
add TYPES to documentation don't haw to deal with variables yet
12rambau/sepal_ui
diff --git a/tests/test_SepalMap.py b/tests/test_SepalMap.py index 30a0d3eb..438ffa7a 100644 --- a/tests/test_SepalMap.py +++ b/tests/test_SepalMap.py @@ -1,3 +1,4 @@ +import json import math import random from pathlib import Path @@ -7,9 +8,9 @@ import ee import pytest from ipyleaflet import GeoJSON, LocalTileLay...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 2 },...
2.9
{ "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": [ "apt-get update", "apt-get install -y gcc" ], "python": "3....
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_style.py::TestStyle::test_folders" ]
[ "tests/test_SepalMap.py::TestSepalMap::test_init", "tests/test_SepalMap.py::TestSepalMap::test_set_center", "tests/test_SepalMap.py::TestSepalMap::test_zoom_bounds", "tests/test_SepalMap.py::TestSepalMap::test_add_colorbar", "tests/test_SepalMap.py::TestSepalMap::test_add_ee_layer", "tests/test_SepalMap.p...
[ "tests/test_style.py::TestStyle::test_colors" ]
[]
MIT License
null
null
12rambau__sepal_ui-535
6a619361e90ab318463e2094fc9dbcbc85dd2e8f
2022-07-06 13:02:30
114063b50ee5b1ccbab680424bb048e11939b870
diff --git a/sepal_ui/mapping/sepal_map.py b/sepal_ui/mapping/sepal_map.py index 57693e56..e2860daf 100644 --- a/sepal_ui/mapping/sepal_map.py +++ b/sepal_ui/mapping/sepal_map.py @@ -227,8 +227,8 @@ class SepalMap(ipl.Map): # Center map to the centroid of the layer(s) self.center = [(maxy - miny) / 2 ...
create a translator function to check the use of the keys If you are updating many time the same application you may end up removing some or all the existing keys. It complex to visually assess if all the remaining keys in the dict are used. Maybe a parser could be interesting to check all the folder files and vali...
12rambau/sepal_ui
diff --git a/tests/test_Translator.py b/tests/test_Translator.py index 7c8e7242..48d34519 100644 --- a/tests/test_Translator.py +++ b/tests/test_Translator.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest from sepal_ui import config_file +from sepal_ui.message import ms from sepal_ui.translator import Tra...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 3, "test_score": 0 }, "num_modified_files": 5 }
2.9
{ "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, ...
affine==2.4.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 c...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "tests/test_Translator.py::TestTranslator::test_key_use" ]
[]
[ "tests/test_Translator.py::TestTranslator::test_init", "tests/test_Translator.py::TestTranslator::test_search_key", "tests/test_Translator.py::TestTranslator::test_sanitize", "tests/test_Translator.py::TestTranslator::test_delete_empty", "tests/test_Translator.py::TestTranslator::test_find_target", "tests...
[]
MIT License
null
null
12rambau__sepal_ui-571
412e02ef08df68c256f384081d2c7eaecc09428e
2022-08-11 17:01:29
8c50a7f032daafcbf7cfb6dc16d5d421f02a32e5
diff --git a/.cz.yaml b/.cz.yaml index 05742add..c2d69e89 100644 --- a/.cz.yaml +++ b/.cz.yaml @@ -3,7 +3,7 @@ commitizen: changelog_incremental: true tag_format: v_$major.$minor.$patch$prerelease update_changelog_on_bump: true - version: 2.10.3 + version: 2.10.2 version_files: - setup.py:version - ...
add_legend feature Now, as we got rid of the geemap library, one important and missing feature is `add_legend`, would be nice to get it back natively.
12rambau/sepal_ui
diff --git a/tests/test_LegendControl.py b/tests/test_LegendControl.py new file mode 100644 index 00000000..142cdce7 --- /dev/null +++ b/tests/test_LegendControl.py @@ -0,0 +1,114 @@ +import re + +from sepal_ui.mapping import LegendControl + + +class TestLegend: + def test_init(self): + + legend_dict = { + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 2 },...
2.10
{ "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"...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_LegendControl.py::TestLegend::test_init", "tests/test_LegendControl.py::TestLegend::test_set_legend", "tests/test_LegendControl.py::TestLegend::test_update_title", "tests/test_LegendControl.py::TestLegend::test_color_box" ]
[ "tests/test_SepalMap.py::TestSepalMap::test_init", "tests/test_SepalMap.py::TestSepalMap::test_set_center", "tests/test_SepalMap.py::TestSepalMap::test_zoom_bounds", "tests/test_SepalMap.py::TestSepalMap::test_add_raster", "tests/test_SepalMap.py::TestSepalMap::test_add_colorbar", "tests/test_SepalMap.py:...
[]
[]
MIT License
null
null
12rambau__sepal_ui-574
412e02ef08df68c256f384081d2c7eaecc09428e
2022-08-16 14:28:01
8c50a7f032daafcbf7cfb6dc16d5d421f02a32e5
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 1 }
2.10
{ "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"...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "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", ...
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-574
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-574
12rambau__sepal_ui-601
89f8d87dc4f83bfc2e96a111692ae252e470e8bc
2022-10-13 11:16:16
8a8196e3c7893b7a0aebdb4910e83054f59e0374
diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py index 95fda88a..6293f828 100644 --- a/sepal_ui/sepalwidgets/inputs.py +++ b/sepal_ui/sepalwidgets/inputs.py @@ -6,6 +6,7 @@ import ee import geopandas as gpd import ipyvuetify as v import pandas as pd +from deprecated.sphinx import versio...
Datepicker is not fully customizable As our main `DatePicker` usage is as in its "menu" form, it is not handy to set some use cases: - set a min_, max_ value directly (you have to `datepicker.children.....min_`...) - set a default initial value with `v_model` since it is hardcoded from the beginning - the `jslink` "...
12rambau/sepal_ui
diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py index d206c10b..3ae0b219 100644 --- a/tests/test_DatePicker.py +++ b/tests/test_DatePicker.py @@ -23,6 +23,28 @@ class TestDatePicker: return + def test_kwargs(self): + """test kwargs to both datepicker and layout""" + + date...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 1 }
2.12
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_DatePicker.py::TestDatePicker::test_kwargs" ]
[]
[ "tests/test_DatePicker.py::TestDatePicker::test_init", "tests/test_DatePicker.py::TestDatePicker::test_bind", "tests/test_DatePicker.py::TestDatePicker::test_disable", "tests/test_DatePicker.py::TestDatePicker::test_is_valid_date", "tests/test_DatePicker.py::TestDatePicker::test_check_date", "tests/test_s...
[]
MIT License
null
null
12rambau__sepal_ui-608
2d5126f5e9521470cbeb5ad374f74046e889f771
2022-11-18 07:51:19
8a8196e3c7893b7a0aebdb4910e83054f59e0374
diff --git a/docs/source/widgets/btn.rst b/docs/source/widgets/btn.rst index 949d5468..91d92967 100644 --- a/docs/source/widgets/btn.rst +++ b/docs/source/widgets/btn.rst @@ -20,8 +20,8 @@ The default color is set to "primary". v.theme.dark = False btn = sw.Btn( - text = "The One btn", - i...
create a function to set the text of the btn dynamically icon and text should be editable dynamically https://github.com/12rambau/sepal_ui/blob/8af255ec0d1cb3ad4dd74d021ad140fafef756f6/sepal_ui/sepalwidgets/btn.py#L38
12rambau/sepal_ui
diff --git a/tests/test_Btn.py b/tests/test_Btn.py index 407c0e3b..058cb775 100644 --- a/tests/test_Btn.py +++ b/tests/test_Btn.py @@ -50,6 +50,47 @@ class TestBtn: return + def test_set_gliph(self, btn): + + # new gliph + gliph = "fas fa-folder" + btn.gliph = gliph + + asser...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files"...
2.12
{ "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", "pip install --fi...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 blinker==1.9.0 branca==0.8....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_Btn.py::TestBtn::test_set_gliph", "tests/test_Btn.py::TestBtn::test_test_msg" ]
[]
[ "tests/test_Btn.py::TestBtn::test_init", "tests/test_Btn.py::TestBtn::test_set_icon", "tests/test_Btn.py::TestBtn::test_toggle_loading" ]
[]
MIT License
null
null
12rambau__sepal_ui-644
8a8196e3c7893b7a0aebdb4910e83054f59e0374
2022-11-29 14:42:21
8a8196e3c7893b7a0aebdb4910e83054f59e0374
diff --git a/sepal_ui/sepalwidgets/btn.py b/sepal_ui/sepalwidgets/btn.py index 137622fa..105f6160 100644 --- a/sepal_ui/sepalwidgets/btn.py +++ b/sepal_ui/sepalwidgets/btn.py @@ -25,6 +25,9 @@ class Btn(v.Btn, SepalWidget): .. deprecated:: 2.13 ``text`` and ``icon`` will be replaced by ``msg`` and ``gli...
sepal_ui.Btn does't work as expected I want to create a simple Icon button, to do so: ```python sw.Btn(icon=True, gliph ="mdi-plus") ``` Doing this, without "msg" parameter will add the default text to the button which is "click", I think is worthless having that value. So if I want to remove the default text...
12rambau/sepal_ui
diff --git a/tests/test_Btn.py b/tests/test_Btn.py index fcaed760..4e3cb9b5 100644 --- a/tests/test_Btn.py +++ b/tests/test_Btn.py @@ -11,7 +11,7 @@ class TestBtn: btn = sw.Btn() assert btn.color == "primary" assert btn.v_icon.children[0] == "" - assert btn.children[1] == "Click" + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
2.12
{ "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": [ "apt...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 blinker==1.9.0 branca==0.8....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_Btn.py::TestBtn::test_init", "tests/test_Btn.py::TestBtn::test_set_gliph" ]
[]
[ "tests/test_Btn.py::TestBtn::test_toggle_loading", "tests/test_Btn.py::TestBtn::test_set_msg" ]
[]
MIT License
null
null
12rambau__sepal_ui-646
8a8196e3c7893b7a0aebdb4910e83054f59e0374
2022-11-29 22:27:29
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
2.12
{ "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...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.31 cffi==1.17.1 cfgv...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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" ]
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-646
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-646
12rambau__sepal_ui-685
549667ffe968ab4d631766a96024819b0fabff00
2023-01-05 11:57:10
6b3f6e8c9f7c3e1dd7a20378153e0129f34c88e9
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 88dda404..e29b052d 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -60,15 +60,7 @@ jobs: - name: Check that there are no unexpected Sphinx warnings if: matrix.python-version == '3.8' - shell: ...
NumberField is not using fontawesome icons
12rambau/sepal_ui
diff --git a/tests/check_warnings.py b/tests/check_warnings.py new file mode 100644 index 00000000..af336d96 --- /dev/null +++ b/tests/check_warnings.py @@ -0,0 +1,56 @@ +import sys +from pathlib import Path + + +def check_warnings(file): + """ + Check the list of warnings produced by the GitHub CI tests + rai...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 },...
2.13
{ "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-sugar", "pytest-icdiff", "pytest-cov", "pytest-deadfixtures", "Flake8-pyproject", ...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 blinker=...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_PasswordField.py::TestPasswordField::test_toogle_viz" ]
[ "tests/test_AoiModel.py::TestAoiModel::test_clear_attributes" ]
[ "tests/test_AoiModel.py::TestAoiModel::test_set_object", "tests/test_PasswordField.py::TestPasswordField::test_init", "tests/test_ReclassifyView.py::TestReclassifyView::test_init_local", "tests/test_ReclassifyView.py::TestReclassifyView::test_set_dst_class_file" ]
[]
MIT License
null
null
12rambau__sepal_ui-747
a683a7665a9710acd5ca939308e18539e92014b7
2023-02-08 10:00:39
22c831cffe193cb87de2720b655ebd069e585f45
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
2.15
{ "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",...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cachetools==5.5.2 certifi==2025.1.3...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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_...
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-747
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-747
12rambau__sepal_ui-758
27a18eba37bec8ef1cabfa6bcc4022164ebc4c3b
2023-02-13 16:42:43
22c831cffe193cb87de2720b655ebd069e585f45
diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py index 04e69553..0cb7a9bf 100644 --- a/sepal_ui/sepalwidgets/inputs.py +++ b/sepal_ui/sepalwidgets/inputs.py @@ -156,6 +156,12 @@ class DatePicker(v.Layout, SepalWidget): return + def today(self) -> Self: + """Update th...
add a today() method for the datepicker It's something I do a lot, setting up the datepicker to today as: ```python from sepal_ui import sepawidgets as sw from datetime import datetime dp = sw.Datepicker() # do stulff and as a fallback do dp.v_model = datetime.today().strftime("%Y-%m-%d") ``` In...
12rambau/sepal_ui
diff --git a/tests/test_DatePicker.py b/tests/test_DatePicker.py index 02ee81c1..cfa47475 100644 --- a/tests/test_DatePicker.py +++ b/tests/test_DatePicker.py @@ -1,3 +1,5 @@ +from datetime import datetime + import pytest from traitlets import Any @@ -96,6 +98,16 @@ class TestDatePicker: return + de...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
2.15
{ "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-sugar", "pytest-icdiff", "pytest-cov", "pytest-deadfixtures", "Flake8-pyproject", ...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 blinker=...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_DatePicker.py::TestDatePicker::test_today" ]
[]
[ "tests/test_DatePicker.py::TestDatePicker::test_init", "tests/test_DatePicker.py::TestDatePicker::test_kwargs", "tests/test_DatePicker.py::TestDatePicker::test_bind", "tests/test_DatePicker.py::TestDatePicker::test_disable", "tests/test_DatePicker.py::TestDatePicker::test_is_valid_date", "tests/test_DateP...
[]
MIT License
null
null
12rambau__sepal_ui-774
2576446debe3544f3edeb208c76f671ffc0c8650
2023-03-01 15:49:43
22c831cffe193cb87de2720b655ebd069e585f45
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: ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
2.15
{ "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...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-timeout==5.0.1 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 blinker=...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "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:...
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-774
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-774
12rambau__sepal_ui-807
1c183817ccae604484ad04729288e7beb3451a64
2023-04-03 20:51:14
b91b2a2c45b4fa80a7a0c699df978ebc46682260
diff --git a/docs/source/conf.py b/docs/source/conf.py index 07f6d872..13defac5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -52,6 +52,7 @@ extensions = [ "sphinx.ext.napoleon", "sphinx.ext.autosummary", "sphinx.ext.viewcode", + "sphinx.ext.todo", "sphinx_favicon", "notfound...
create a custom marker cluster that can be hidden currently the marker cluster cannot be hidden, only the underlying markers can. I twould be good if it was possible to hide all the underlying markers at once by changin the visible trait of the marker_cluster itself
12rambau/sepal_ui
diff --git a/tests/test_mapping/test_MarkerCluster.py b/tests/test_mapping/test_MarkerCluster.py new file mode 100644 index 00000000..532eee9f --- /dev/null +++ b/tests/test_mapping/test_MarkerCluster.py @@ -0,0 +1,22 @@ +"""Test the MarkerCluster control.""" +from ipyleaflet import Marker + +from sepal_ui import mappi...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 3 }
2.16
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 async-timeout==5.0.1 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 branca==0.8.1 cach...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_mapping/test_MarkerCluster.py::test_init", "tests/test_mapping/test_MarkerCluster.py::test_visible" ]
[]
[]
[]
MIT License
null
null
12rambau__sepal_ui-814
6d825ae167f96ad2e7b76b96ca07de562f74dcf0
2023-04-11 07:43:35
b91b2a2c45b4fa80a7a0c699df978ebc46682260
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...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
2.16
{ "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, ...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyascii==0.3.2 anyio==3.7.1 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 async-timeout==5.0.1 attrs==25.3.0 babel==2.17.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 br...
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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...
[]
MIT License
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-814
swerebench/sweb.eval.x86_64.12rambau_1776_sepal_ui-814
12rambau__sepal_ui-856
999deb0011f05d3e7ff94e04b517ac2919e38a59
2023-08-03 07:55:32
b91b2a2c45b4fa80a7a0c699df978ebc46682260
diff --git a/sepal_ui/message/en/decorator.json b/sepal_ui/message/en/decorator.json new file mode 100644 index 00000000..80b1422a --- /dev/null +++ b/sepal_ui/message/en/decorator.json @@ -0,0 +1,6 @@ +{ + "decorator": { + "no_alert": "You should provide the `alert` argument as parent does not have one", + "no_...
Use Optional instead of Union[None, ...] Now that we don't support 3.7 any more, we should drop `typing_extentions` and stop using the Union[none, ...] pattern. 2 option are possible: 1. `none|...` 2. `Optional[...]` I personnaly prefer 2.
12rambau/sepal_ui
diff --git a/tests/test_planetapi/test_PlanetModel.py b/tests/test_planetapi/test_PlanetModel.py index c343f5e3..37da73da 100644 --- a/tests/test_planetapi/test_PlanetModel.py +++ b/tests/test_planetapi/test_PlanetModel.py @@ -1,12 +1,11 @@ """Test the planet PlanetModel model.""" import os -from typing import Unio...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 },...
2.16
{ "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...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyascii==0.3.2 anyio==4.9.0 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 async-timeout==5.0.1 attrs==25.3.0 babel==2.17.0 backcall==0.2....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "tests/test_scripts/test_decorator.py::test_catch_errors" ]
[]
[ "tests/test_scripts/test_decorator.py::test_loading_button", "tests/test_scripts/test_decorator.py::test_switch", "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/...
[]
MIT License
null
null
12rambau__sepal_ui-896
b91b2a2c45b4fa80a7a0c699df978ebc46682260
2023-10-07 12:43:59
b91b2a2c45b4fa80a7a0c699df978ebc46682260
diff --git a/sepal_ui/message/en/locale.json b/sepal_ui/message/en/locale.json index abdea912..b65a232d 100644 --- a/sepal_ui/message/en/locale.json +++ b/sepal_ui/message/en/locale.json @@ -85,14 +85,17 @@ "exception": { "empty": "Please fill the required field(s).", "invalid": "Invalid email or pas...
get_mosaics from planet api fails `get_mosaics` --and probably-- `get_quads` fails when the authentication process is done `from_login`... test has been passed because we are only testing the initialization of the `Planet` `from_key` but not to get elements from it
12rambau/sepal_ui
diff --git a/tests/test_planetapi/test_PlanetModel.py b/tests/test_planetapi/test_PlanetModel.py index 68450a05..3741c62f 100644 --- a/tests/test_planetapi/test_PlanetModel.py +++ b/tests/test_planetapi/test_PlanetModel.py @@ -1,6 +1,7 @@ """Test the planet PlanetModel model.""" import os +from pathlib import Path ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files"...
2.16
{ "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-sugar", "pytest-icdiff", "pytest-cov", "pytest-deadfixtures", "Flake8-pyproject", ...
affine==2.4.0 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 aniso8601==10.0.0 annotated-types==0.7.0 anyascii==0.3.2 anyio==4.9.0 argcomplete==3.5.3 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 async-timeout==5.0.1 attrs==25.3.0 babel==2.17.0 backcall==0.2....
name: sepal_ui channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_planetapi/test_PlanetView.py::test_validate_event" ]
[]
[]
[]
MIT License
null
null
139bercy__pypel-78
92fc416b197c73156d83579d2e439698d171e09d
2021-09-08 14:40:05
92fc416b197c73156d83579d2e439698d171e09d
diff --git a/Makefile b/Makefile index b31b86f..7619a79 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -.PHONY: report local_elastic +.PHONY: report test_cli report: - pytest --cov=. --html=tests/reports/report.html --cov-report html -W error tests/ + pytest --cov=. --html=tests/reports/report.html --cov-repor...
Add tests for all Loaders & Transformers Transformers implemented in #71 are not test covered. Neither is the CSVWriter loader.
139bercy/pypel
diff --git a/tests/__init__.py b/tests/__init__.py index faa4ca5..9c5125e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,1 +1,2 @@ -# obligé de la rajouter si on veut tester avec la commande "pytest" sinon il irra chercher les import dans le dossier d'instalation de pytest \ No newline at end of file +# o...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_removed_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3...
unknown
{ "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-mock" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": ...
certifi==2025.1.31 elastic-transport==8.17.1 elasticsearch==8.17.2 et_xmlfile==2.0.0 exceptiongroup==1.2.2 iniconfig==2.1.0 numpy==1.19.5 openpyxl==3.1.5 packaging==24.2 pandas==1.2.5 pluggy==1.5.0 -e git+https://github.com/139bercy/pypel.git@92fc416b197c73156d83579d2e439698d171e09d#egg=pypel pytest==8.3.5 pytest-mock=...
name: pypel channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11....
[ "tests/integration/test_cli.py::TestGetArgs::test_raises_if_file_not_specified", "tests/integration/test_cli.py::TestGetArgs::test_process", "tests/integration/test_cli.py::TestGetArgs::test_indice", "tests/integration/test_cli.py::TestGetArgs::test_source_path", "tests/integration/test_cli.py::TestGetArgs:...
[ "tests/unit/test_process.py::TestProcessMethods::test_load_class_loader_passes_if_valid_es_instance_is_passed" ]
[]
[]
null
null
null
15five__scim2-filter-parser-13
3ed1858b492542d0bc9b9e9ab9547641595e28c1
2020-07-30 14:25:04
c794bf3e50e3cb71bdcf919feb43d11912907dd2
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) + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files"...
0.3
{ "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...
asgiref==3.7.2 attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi Django==3.2.25 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig @ ...
name: scim2-filter-parser channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0...
[ "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...
[]
MIT License
swerebench/sweb.eval.x86_64.15five_1776_scim2-filter-parser-13
swerebench/sweb.eval.x86_64.15five_1776_scim2-filter-parser-13
15five__scim2-filter-parser-20
08de23c5626556a37beced764a22a2fa7021989b
2020-10-18 03:21:13
c794bf3e50e3cb71bdcf919feb43d11912907dd2
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.3
{ "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...
alabaster==0.7.13 asgiref==3.7.2 Babel==2.14.0 certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 Django==3.2.25 docutils==0.19 exceptiongroup==1.2.2 idna==3.10 imagesize==1.4.1 importlib-metadata==6.7.0 iniconfig==2.0.0 Jinja2==3.1.6 MarkupSafe==2.1.5 packaging==24.0 pluggy==1.2.0 Pyg...
name: scim2-filter-parser channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee...
[ "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" ]
[]
MIT License
swerebench/sweb.eval.x86_64.15five_1776_scim2-filter-parser-20
swerebench/sweb.eval.x86_64.15five_1776_scim2-filter-parser-20
15five__scim2-filter-parser-31
c794bf3e50e3cb71bdcf919feb43d11912907dd2
2022-07-09 01:20:42
c794bf3e50e3cb71bdcf919feb43d11912907dd2
logston: Hey @powellc, if you have the time, can you give this a rigorous review? It changes core logic in a pretty large way. I'd like to make sure my assumptions are sound and my changes are worth the costs. andersk: When converting a string to a `LIKE` or `ILIKE` pattern, it’s necessary to escape `%`, `_`, and `\` ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 14f28e6..35eb5c5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,5 +1,12 @@ CHANGE LOG ========== +0.4.0 +----- +- Update userName to be case insensitive. #31 + +BREAKING CHANGE: This allows queries that did not match rows before to +match rows now! + 0.3.9 ...
userName attribute should be case-insensitive, per the RFC From https://github.com/15five/django-scim2/issues/76 > See https://datatracker.ietf.org/doc/html/rfc7643#section-4.1.1: (userName) > This attribute is REQUIRED and is case insensitive. > Currently this case-insensitive behavior is not implemented and...
15five/scim2-filter-parser
diff --git a/tests/test_query.py b/tests/test_query.py index ee4161d..7cd9595 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -16,6 +16,7 @@ class RFCExamples(unittest.TestCase): username TEXT, first_name TEXT, last_name TEXT, + nickname TEXT, title TEXT, ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 0 }, ...
0.3
{ "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...
alabaster==0.7.13 asgiref==3.7.2 Babel==2.14.0 certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 Django==3.2.25 docutils==0.19 exceptiongroup==1.2.2 idna==3.10 imagesize==1.4.1 importlib-metadata==6.7.0 iniconfig==2.0.0 Jinja2==3.1.6 MarkupSafe==2.1.5 packaging==24.0 pluggy==1.2.0 Pyg...
name: scim2-filter-parser channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee...
[ "tests/test_query.py::CommandLine::test_command_line", "tests/test_transpiler.py::RFCExamples::test_schema_username_startswith", "tests/test_transpiler.py::RFCExamples::test_username_eq", "tests/test_transpiler.py::RFCExamples::test_username_startswith", "tests/test_transpiler.py::RFCExamples::test_username...
[]
[ "tests/test_query.py::RFCExamples::test_emails_type_eq_work_value_contians_or_ims_type_eq_and_value_contians", "tests/test_query.py::RFCExamples::test_family_name_contains", "tests/test_query.py::RFCExamples::test_meta_last_modified_ge", "tests/test_query.py::RFCExamples::test_meta_last_modified_gt", "tests...
[]
MIT License
null
null
20c__ctl-3
879af37647e61767a1ede59ffd353e4cfd27cd6f
2019-10-08 09:23:56
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...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 2 }
0.1
{ "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" ]...
attrs==22.2.0 certifi==2021.5.30 cfu==1.5.0 charset-normalizer==2.0.12 click==8.0.4 codecov==2.1.13 coverage==6.2 -e git+https://github.com/20c/ctl.git@879af37647e61767a1ede59ffd353e4cfd27cd6f#egg=ctl future==0.18.3 git-url-parse==1.2.2 grainy==1.8.1 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 munge==0.6.0 pa...
name: ctl channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi...
[ "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" ]
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.20c_1776_ctl-3
swerebench/sweb.eval.x86_64.20c_1776_ctl-3
20c__ctl-7
be7f350f8f2d92918922d82fce0266fcd72decd2
2019-10-21 11:05:40
be7f350f8f2d92918922d82fce0266fcd72decd2
diff --git a/Ctl/Pipfile b/Ctl/Pipfile index 0c7a304..1bd6308 100644 --- a/Ctl/Pipfile +++ b/Ctl/Pipfile @@ -14,7 +14,7 @@ tmpl = "==0.3.0" [packages] munge = "<1,>=0.4" -cfu = ">=1.2.0,<2" +cfu = ">=1.3.0,<2" grainy = ">=1.4.0,<2" git-url-parse = ">=1.1.0,<2" pluginmgr = ">=0.6" diff --git a/Ctl/requirements.tx...
Better error handling for config errors outside of `plugins` Example: having a schema error in `permissions` exits ctl with traceback that's not very telling as to what is failing reproduce: ``` permissions: namespace: ctl permission: crud ```
20c/ctl
diff --git a/tests/test_plugin_version.py b/tests/test_plugin_version.py index 6745c78..4b9617a 100644 --- a/tests/test_plugin_version.py +++ b/tests/test_plugin_version.py @@ -138,6 +138,30 @@ def test_bump(tmpdir, ctlr): plugin.bump(version="invalid", repo="dummy_repo") +def test_bump_truncated(tmpdir, c...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 1, "test_score": 3 },...
0.2
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
attrs==22.2.0 certifi==2021.5.30 cfu==1.5.0 charset-normalizer==2.0.12 click==8.0.4 coverage==6.2 -e git+https://github.com/20c/ctl.git@be7f350f8f2d92918922d82fce0266fcd72decd2#egg=ctl future==0.18.3 git-url-parse==1.2.2 grainy==1.8.1 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 munge==0.6.0 packaging==21.3 pb...
name: ctl channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi...
[ "tests/test_plugin_version.py::test_bump_truncated[standard]", "tests/test_util_versioning.py::test_validate_semantic[1.0-expected4-None]" ]
[]
[ "tests/test_plugin_version.py::test_init", "tests/test_plugin_version.py::test_repository[standard]", "tests/test_plugin_version.py::test_tag[standard]", "tests/test_plugin_version.py::test_bump[standard]", "tests/test_plugin_version.py::test_execute[standard]", "tests/test_plugin_version.py::test_execute...
[]
Apache License 2.0
null
null
20c__munge-15
882070dbec6a3600217e406c9501091d8c27feab
2021-05-30 00:41:39
882070dbec6a3600217e406c9501091d8c27feab
lgtm-com[bot]: This pull request **introduces 3 alerts** when merging d7aa2690b71bd7b42f81e7005434d6e5925af783 into 882070dbec6a3600217e406c9501091d8c27feab - [view on LGTM.com](https://lgtm.com/projects/g/20c/munge/rev/pr-88a56d100d93b266882122d87962bf72e675324f) **new alerts:** * 3 for Unused import codecov-comment...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index feee7f9..f2b20e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -fail_fast: true repos: - repo: local hooks: @@ -21,4 +20,12 @@ repos: name: Black entry: poetry run black . langua...
add round trip support For formats that libraries exist.
20c/munge
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93ac1a6..22e2143 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -71,8 +71,8 @@ jobs: key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} # install dependencies if cache does not exist ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_removed_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3...
1.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[toml,yaml]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "codecov", "coverage", "tox" ], "pre_install": [ "apt-get update",...
cachetools==5.5.2 certifi==2025.1.31 chardet==5.2.0 charset-normalizer==3.4.1 click==8.1.8 codecov==2.1.13 colorama==0.4.6 coverage==7.8.0 distlib==0.3.9 exceptiongroup==1.2.2 filelock==3.18.0 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/20c/munge.git@882070dbec6a3600217e406c9501091d8c27feab#egg=munge packagin...
name: munge channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11....
[ "tests/test_codecs.py::test_roundtrip[Json-Datadict0]", "tests/test_codecs.py::test_roundtrip[Json-Datalist0]", "tests/test_codecs.py::test_roundtrip[Toml-Datadict0]", "tests/test_codecs.py::test_roundtrip[Yaml-Datalist0]", "tests/test_codecs.py::test_roundtrip[Yaml-Datadict0]" ]
[ "tests/test_globals.py::test_toml_library" ]
[ "tests/test_cli.py::test_cli", "tests/test_codecs.py::test_codec_registry", "tests/test_codecs.py::test_extesion[Json-Datadict0]", "tests/test_codecs.py::test_open[Json-Datadict0]", "tests/test_codecs.py::test_load[Json-Datadict0]", "tests/test_codecs.py::test_loads[Json-Datadict0]", "tests/test_codecs....
[]
Apache License 2.0
null
null
2gis__k8s-handle-120
0ce48ecc5cd78eac5894241468a53080c3ccec64
2020-03-18 13:04:21
0ce48ecc5cd78eac5894241468a53080c3ccec64
diff --git a/k8s_handle/templating.py b/k8s_handle/templating.py index 7f2d6b7..445a09e 100644 --- a/k8s_handle/templating.py +++ b/k8s_handle/templating.py @@ -195,7 +195,10 @@ class Renderer: @staticmethod def _evaluate_tags(tags, only_tags, skip_tags): - if only_tags is None and skip_tags is None:...
skip-tags does not work Hello, it seems `--skip-tags` does not work. Steps to reproduce: ``` git clone git@github.com:2gis/k8s-handle-example.git ``` Edit config.yaml, add some tag ``` staging: templates: - template: configmap.yaml.j2 - template: deployment.yaml.j2 - template: service.yaml.j2 ta...
2gis/k8s-handle
diff --git a/tests/test_templating.py b/tests/test_templating.py index cd1ecfe..6a46a01 100644 --- a/tests/test_templating.py +++ b/tests/test_templating.py @@ -111,6 +111,9 @@ class TestTemplating(unittest.TestCase): self.assertFalse(r._evaluate_tags(tags, only_tags=['tag1'], skip_tags=['tag1'])) sel...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
0.10
{ "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" ], "pre_install": null, "python...
attrs==22.2.0 cachetools==4.2.4 certifi==2021.5.30 chardet==3.0.4 coverage==6.2 execnet==1.9.0 google-auth==2.22.0 idna==2.8 importlib-metadata==4.8.3 iniconfig==1.1.1 Jinja2==2.10.1 -e git+https://github.com/2gis/k8s-handle.git@0ce48ecc5cd78eac5894241468a53080c3ccec64#egg=k8s_handle kubernetes==10.0.1 MarkupSafe==2.0....
name: k8s-handle channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_templating.py::TestTemplating::test_evaluate_tags" ]
[]
[ "tests/test_templating.py::TestTemplating::test_filters", "tests/test_templating.py::TestTemplating::test_generate_group_templates", "tests/test_templating.py::TestTemplating::test_generate_templates", "tests/test_templating.py::TestTemplating::test_generate_templates_with_kubectl_section", "tests/test_temp...
[]
Apache License 2.0
null
null
2gis__k8s-handle-73
dec5c73ec1bcd694bd45651901d68cd933721b3e
2019-01-11 19:57:42
dec5c73ec1bcd694bd45651901d68cd933721b3e
codecov-io: # [Codecov](https://codecov.io/gh/2gis/k8s-handle/pull/73?src=pr&el=h1) Report > Merging [#73](https://codecov.io/gh/2gis/k8s-handle/pull/73?src=pr&el=desc) into [master](https://codecov.io/gh/2gis/k8s-handle/commit/e727854bd0493af8f836abf496582f53c2d9c711?src=pr&el=desc) will **decrease** coverage by `0.06...
diff --git a/.dockerignore b/.dockerignore index d3f33a2..fea1e67 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,5 +6,10 @@ Dockerfile* .gitignore .idea/ .tox/ +.travis.yml +tox.ini __pychache__ htmlcov/ +tests/ +*.png + diff --git a/k8s_handle/config.py b/k8s_handle/config.py index acbf34f..6c2564f 100644 -...
It is not possible to concatenate several environment variables into one value Привет. Столкнулся с невозможностью одновременного использования нескольких переменных окружения при объявлении переменной в config.yaml. Небольшой пример: Мы при развертывании сервиса иногда создаем более одного деплоя, registry используе...
2gis/k8s-handle
diff --git a/tests/test_config.py b/tests/test_config.py index 2f2e2b3..ce3e228 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -118,13 +118,17 @@ class TestContextGeneration(unittest.TestCase): 'section1-key4': [0, 1, 2, 3], 'section1-key5': "{{ env='CUSTOM_ENV...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 4 }
0.3
{ "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" ], "pre_install": [ "apt-get ...
adal==1.2.7 attrs==22.2.0 cachetools==4.2.4 certifi==2021.5.30 cffi==1.15.1 chardet==3.0.4 coverage==6.2 cryptography==40.0.2 execnet==1.9.0 google-auth==2.22.0 idna==2.7 importlib-metadata==4.8.3 iniconfig==1.1.1 Jinja2==2.10 -e git+https://github.com/2gis/k8s-handle.git@dec5c73ec1bcd694bd45651901d68cd933721b3e#egg=k8...
name: k8s-handle channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_config.py::TestContextGeneration::test_context_update_recursion" ]
[]
[ "tests/test_config.py::TestContextGeneration::test_check_empty_var", "tests/test_config.py::TestContextGeneration::test_common_section", "tests/test_config.py::TestContextGeneration::test_concatination_with_env", "tests/test_config.py::TestContextGeneration::test_config_incorrect", "tests/test_config.py::Te...
[]
Apache License 2.0
null
null
2gis__k8s-handle-84
92f764f44301bcd406d588a4db5cf0333fc1ccc2
2019-02-12 04:05:12
b9a79303b69d7ba25ab015c938df53ffe1e26962
diff --git a/k8s_handle/config.py b/k8s_handle/config.py index df08de4..17cdb33 100644 --- a/k8s_handle/config.py +++ b/k8s_handle/config.py @@ -156,6 +156,9 @@ def _update_context_recursively(context, include_history=[]): def load_context_section(section): + if not section: + raise RuntimeError('Empty s...
Empty section passes validation Empty section string (-s "") passes validation and causes not wrapped KeyError.
2gis/k8s-handle
diff --git a/tests/test_config.py b/tests/test_config.py index ce3e228..82e978e 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -65,6 +65,11 @@ class TestContextGeneration(unittest.TestCase): config.load_context_section('no_templates_section') self.assertTrue('Section "templates" o...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "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": [ "flake8", "coveralls", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], ...
adal==1.2.7 attrs==22.2.0 cachetools==4.2.4 certifi==2021.5.30 cffi==1.15.1 chardet==3.0.4 coverage==6.2 coveralls==3.3.1 cryptography==40.0.2 docopt==0.6.2 flake8==5.0.4 google-auth==2.22.0 idna==2.7 importlib-metadata==4.2.0 iniconfig==1.1.1 Jinja2==2.10 -e git+https://github.com/2gis/k8s-handle.git@92f764f44301bcd40...
name: k8s-handle channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_config.py::TestContextGeneration::test_empty_section" ]
[]
[ "tests/test_config.py::TestContextGeneration::test_check_empty_var", "tests/test_config.py::TestContextGeneration::test_common_section", "tests/test_config.py::TestContextGeneration::test_concatination_with_env", "tests/test_config.py::TestContextGeneration::test_config_incorrect", "tests/test_config.py::Te...
[]
Apache License 2.0
null
null
2gis__k8s-handle-93
081dee8bde857ef20d287669ac35d16f9e879fc1
2019-04-05 09:11:36
bfaedd11c9c45683f34a3dd007719d495b94dd73
codecov-io: # [Codecov](https://codecov.io/gh/2gis/k8s-handle/pull/93?src=pr&el=h1) Report > Merging [#93](https://codecov.io/gh/2gis/k8s-handle/pull/93?src=pr&el=desc) into [master](https://codecov.io/gh/2gis/k8s-handle/commit/081dee8bde857ef20d287669ac35d16f9e879fc1?src=pr&el=desc) will **decrease** coverage by `1.63...
diff --git a/README.md b/README.md index 7596e92..4cafe9d 100644 --- a/README.md +++ b/README.md @@ -586,4 +586,13 @@ $ k8s-handle delete -r service.yaml --use-kubeconfig 2019-02-15 14:24:06 INFO:k8s_handle.k8s.resource:Using namespace "test" 2019-02-15 14:24:06 INFO:k8s_handle.k8s.resource:Trying to delete Service "...
Add custom resources support After #85 will be done we will want to deploy our [custom resources](https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#create-custom-objects) too. Example ([link](https://docs.cert-manager.io/en/latest/tasks/issuing-certificates/index.ht...
2gis/k8s-handle
diff --git a/k8s_handle/k8s/test_adapter.py b/k8s_handle/k8s/test_adapters.py similarity index 53% rename from k8s_handle/k8s/test_adapter.py rename to k8s_handle/k8s/test_adapters.py index 0111676..435212b 100644 --- a/k8s_handle/k8s/test_adapter.py +++ b/k8s_handle/k8s/test_adapters.py @@ -1,31 +1,28 @@ import unitt...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issu...
0.5
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", "reqs_path": [ ...
adal==1.2.7 attrs==22.2.0 cachetools==4.2.4 certifi==2021.5.30 cffi==1.15.1 chardet==3.0.4 cryptography==40.0.2 google-auth==2.22.0 idna==2.7 importlib-metadata==4.8.3 iniconfig==1.1.1 Jinja2==2.10 -e git+https://github.com/2gis/k8s-handle.git@081dee8bde857ef20d287669ac35d16f9e879fc1#egg=k8s_handle kubernetes==7.0.0 Ma...
name: k8s-handle channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "k8s_handle/k8s/test_adapters.py::TestAdapterBuiltInKind::test_app_create", "k8s_handle/k8s/test_adapters.py::TestAdapterBuiltInKind::test_app_create_fail", "k8s_handle/k8s/test_adapters.py::TestAdapterBuiltInKind::test_app_delete", "k8s_handle/k8s/test_adapters.py::TestAdapterBuiltInKind::test_app_delete_fai...
[]
[]
[]
Apache License 2.0
null
null
3YOURMIND__django-migration-linter-113
799957a5564e8ca1ea20d7cf643abbc21db4e40f
2020-06-12 08:01:19
9c4788d851bdacc0ff2c5877a7e9568892af6530
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" - ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
2.2
{ "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...
appdirs==1.4.4 asgiref==3.4.1 attrs==22.2.0 certifi==2021.5.30 coverage==6.2 Django==3.2.25 -e git+https://github.com/3YOURMIND/django-migration-linter.git@799957a5564e8ca1ea20d7cf643abbc21db4e40f#egg=django_migration_linter execnet==1.9.0 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 pluggy==1.0.0 py==1.1...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h...
[ "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" ]
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.3yourmind_1776_django-migration-linter-113
swerebench/sweb.eval.x86_64.3yourmind_1776_django-migration-linter-113
3YOURMIND__django-migration-linter-156
a119b4ba1fdfd27bf950e109771c6fd3e41d48dc
2021-06-11 20:55:03
12255d9af4be14738b4c783045362c035e4a0cd6
codecov-commenter: # [Codecov](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/156?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Report > Merging [#156](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/156?src=pr&el=desc&utm_mediu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 75223f0..1ee0f0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ * the positional argument `GIT_COMMIT_ID` becomes an optional argument with the named parameter ` --git-commit-id [GIT_COMMIT_ID]` * the `lintmigrations` command takes now two positional argume...
Raise backend specific deployment implications For instance, certain operations will potentially lock a table, which can have implications during deployment (lots of operations require the table => we don't acquire the lock waiting to migrate / one we have the lock, long migration, locking the table and making producti...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index 4b646ca..bb30d99 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -13,14 +13,22 @@ class SqlAnalyserTestCase(unittest.TestCase): sql_statements=sql, database_vendor=self.database_vendor...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 8 }
2.5
{ "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", "pytest" ], "pre_install": null, "python": "3.9",...
appdirs==1.4.4 asgiref==3.8.1 coverage==7.8.0 Django==4.2.20 -e git+https://github.com/3YOURMIND/django-migration-linter.git@a119b4ba1fdfd27bf950e109771c6fd3e41d48dc#egg=django_migration_linter exceptiongroup==1.2.2 execnet==2.1.1 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-asyncio==0.26.0 pytes...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1...
[ "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...
[]
[]
[]
Apache License 2.0
null
null
3YOURMIND__django-migration-linter-186
aef3db3e4198d06c38bc4b0874e72ed657891eea
2021-12-20 21:27:38
aef3db3e4198d06c38bc4b0874e72ed657891eea
codecov-commenter: # [Codecov](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/186?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Report > Merging [#186](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/186?src=pr&el=desc&utm_mediu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1ec8e5..15fefc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ -## 4.0.0 +## 4.0.0 (unreleased) - Drop support for Python 2.7 and 3.5 - Drop support for Django 1.11, 2.0, 2.1, 3.0 +- Fix index creation detection when table is being created in the transac...
Linter fails on CREATE INDEX when creating a new table Here is an example `CreateModel` from Django: ```python migrations.CreateModel( name='ShipmentMetadataAlert', fields=[ ('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True)), ('created_at', common.fields.CreatedFi...
3YOURMIND/django-migration-linter
diff --git a/tests/unit/test_sql_analyser.py b/tests/unit/test_sql_analyser.py index 00dd50e..65ab7f0 100644 --- a/tests/unit/test_sql_analyser.py +++ b/tests/unit/test_sql_analyser.py @@ -233,6 +233,23 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase): sql = "CREATE UNIQUE INDEX title_idx ON films (tit...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
3.0
{ "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", "pytest" ], "pre_install": null, "python": "3.9",...
appdirs==1.4.4 asgiref==3.8.1 black==21.12b0 click==8.1.8 coverage==7.8.0 Django==4.2.20 -e git+https://github.com/3YOURMIND/django-migration-linter.git@aef3db3e4198d06c38bc4b0874e72ed657891eea#egg=django_migration_linter exceptiongroup==1.2.2 execnet==2.1.1 flake8==4.0.1 iniconfig==2.1.0 isort==5.10.1 mccabe==0.6.1 my...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1...
[ "tests/unit/test_sql_analyser.py::PostgresqlAnalyserTestCase::test_create_index_non_concurrently_with_table_creation" ]
[]
[ "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...
[]
Apache License 2.0
null
null
3YOURMIND__django-migration-linter-222
3baf9487bde6ae27c3ba7623a410ab6c39bb0584
2022-07-09 13:34:11
366d16b01a72d0baa54fef55761d846b0f05b8dd
codecov-commenter: # [Codecov](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/222?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Report > Merging [#222](https://codecov.io/gh/3YOURMIND/django-migration-linter/pull/222?src=pr&el=desc&utm_mediu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a1b5213..300fe00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.1.1 (unreleased) + +- Fixed `RunPython` model import check when using a `through` object like `MyModel.many_to_many.through.objects.filter(...)` (issue #218) + ## 4.1.0 - Allow configur...
Linter failing when using django 'through' ### through doc https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.ManyToManyField.through ### Example code ``` def forwards_func(apps, schema_editor): Question = apps.get_model("solution", "Question") ... Question.many_to_may.throug...
3YOURMIND/django-migration-linter
diff --git a/tests/functional/test_data_migrations.py b/tests/functional/test_data_migrations.py index 5478eff..2bb039c 100644 --- a/tests/functional/test_data_migrations.py +++ b/tests/functional/test_data_migrations.py @@ -137,7 +137,7 @@ class DataMigrationModelImportTestCase(unittest.TestCase): def test_not_...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
4.1
{ "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", "pytest" ], "pre_install": null, "python": "3.9",...
appdirs==1.4.4 asgiref==3.8.1 black==22.6.0 click==8.1.8 coverage==7.8.0 Django==4.2.20 -e git+https://github.com/3YOURMIND/django-migration-linter.git@3baf9487bde6ae27c3ba7623a410ab6c39bb0584#egg=django_migration_linter exceptiongroup==1.2.2 execnet==2.1.1 flake8==4.0.1 iniconfig==2.1.0 isort==5.10.1 mccabe==0.6.1 myp...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1...
[ "tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_m2m_through_orm_usage" ]
[ "tests/functional/test_data_migrations.py::DataMigrationDetectionTestCase::test_all_warnings_as_errors", "tests/functional/test_data_migrations.py::DataMigrationDetectionTestCase::test_exclude_warning_from_test", "tests/functional/test_data_migrations.py::DataMigrationDetectionTestCase::test_reverse_data_migrat...
[ "tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_correct_get_model_import", "tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_correct_one_param_get_model_import", "tests/functional/test_data_migrations.py::DataMigrationModelImportTestCase::test_mi...
[]
Apache License 2.0
null
null
3YOURMIND__django-migration-linter-258
366d16b01a72d0baa54fef55761d846b0f05b8dd
2023-07-03 18:35:18
366d16b01a72d0baa54fef55761d846b0f05b8dd
codecov-commenter: ## [Codecov](https://app.codecov.io/gh/3YOURMIND/django-migration-linter/pull/258?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Report Patch coverage: **`100.00`**% and no project coverage change. > Comparison is base [(`366d16b`)](http...
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 ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 2 }
4.1
{ "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": ...
appdirs==1.4.4 asgiref==3.8.1 coverage==7.8.0 Django==4.2.20 -e git+https://github.com/3YOURMIND/django-migration-linter.git@366d16b01a72d0baa54fef55761d846b0f05b8dd#egg=django_migration_linter exceptiongroup==1.2.2 execnet==2.1.1 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-asyncio==0.26.0 pytes...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1...
[ "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...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.3yourmind_1776_django-migration-linter-258
swerebench/sweb.eval.x86_64.3yourmind_1776_django-migration-linter-258
3YOURMIND__django-migration-linter-47
fbf0f4419336fcb1235fa57f5575ad2593354e44
2019-01-21 21:29:34
3591a4422a34b718cd3400266ac6f92c8421e82a
diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index f9c0ab1..03c2054 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -20,7 +20,7 @@ from subprocess import Popen, PIPE import sys from .cache import ...
Add --version option Pretty straightforward. Have a `--version` that prints the current version of the linter.
3YOURMIND/django-migration-linter
diff --git a/tests/functional/test_cmd_line_call.py b/tests/functional/test_cmd_line_call.py index a2861fa..47d7944 100644 --- a/tests/functional/test_cmd_line_call.py +++ b/tests/functional/test_cmd_line_call.py @@ -16,7 +16,7 @@ import os import shutil import unittest from subprocess import Popen, PIPE -from djang...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 1 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[test]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "django-fake-database-backends" ], "pre_install": null, "python": "3.6", "reqs_path": null, "te...
appdirs==1.4.3 asgiref==3.4.1 attrs==22.2.0 certifi==2021.5.30 distlib==0.3.9 Django==3.2.25 django-fake-database-backends==0.1.1 -e git+https://github.com/3YOURMIND/django-migration-linter.git@fbf0f4419336fcb1235fa57f5575ad2593354e44#egg=django_migration_linter filelock==3.4.1 importlib-metadata==4.8.3 importlib-resou...
name: django-migration-linter channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h...
[ "tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_with_short_version_option", "tests/functional/test_cmd_line_call.py::VersionOptionLinterFromCommandLineTest::test_call_with_version_option" ]
[ "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_from_within_project", "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_cache_path", "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line...
[ "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_cache", "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_errors", "tests/functional/test_cmd_line_call.py::CallLinterFromCommandLineTest::test_call_linter_cmd_line_i...
[]
Apache License 2.0
null
null
42DIGITAL__bqtools-11
98ce0de1d976f33cf04217ef50f864f74bd5ed52
2019-06-11 11:55:50
98ce0de1d976f33cf04217ef50f864f74bd5ed52
diff --git a/fourtytwo/bqtools/__init__.py b/fourtytwo/bqtools/__init__.py index 9542242..136e18c 100644 --- a/fourtytwo/bqtools/__init__.py +++ b/fourtytwo/bqtools/__init__.py @@ -104,14 +104,21 @@ class BQTable(object): def __init__(self, schema=None, data=None): if DEBUG: logging.debug('bq...
append data to empty table.data fails - required for schema_only ```python >>> from fourtytwo import bqtools >>> table = bqtools.read_bq(table_ref='project.dataset.table', schema_only=True) >>> table.append([]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/bqtools/fourtytwo/bqt...
42DIGITAL/bqtools
diff --git a/tests/test_bqtools.py b/tests/test_bqtools.py index 0202f79..f990c0c 100644 --- a/tests/test_bqtools.py +++ b/tests/test_bqtools.py @@ -1,6 +1,6 @@ from fourtytwo import bqtools -def test_bqorm_construct_columns(): +def test_bqtools_construct_columns(): schema = [ {'name': 'number', 'field...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
0.3
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[test]", "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" ], "test_cmd": "pyt...
-e git+https://github.com/42DIGITAL/bqtools.git@98ce0de1d976f33cf04217ef50f864f74bd5ed52#egg=bqtools cachetools==5.5.2 certifi==2025.1.31 charset-normalizer==3.4.1 exceptiongroup==1.2.2 google-api-core==2.24.2 google-auth==2.38.0 google-cloud-bigquery==3.31.0 google-cloud-core==2.4.3 google-crc32c==1.7.1 google-resumab...
name: bqtools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=1...
[ "tests/test_bqtools.py::test_bqtools_append_list", "tests/test_bqtools.py::test_bqtools_append_dict" ]
[ "tests/test_bqtools.py::test_bqtools_append_schema" ]
[ "tests/test_bqtools.py::test_bqtools_construct_columns", "tests/test_bqtools.py::test_bqtools_construct_rows_dicts" ]
[]
MIT License
null
null
4Catalyzer__flask-resty-248
ac43163453fab1b23434d29f71a3c1b34b251c0a
2019-04-06 20:23:05
ac43163453fab1b23434d29f71a3c1b34b251c0a
diff --git a/.travis.yml b/.travis.yml index 708e4a9..00ffb59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,16 +4,21 @@ services: - postgresql matrix: include: - - { python: "2.7", env: "TOXENV=py-full DATABASE_URL=postgres://localhost/travis_ci_test" } - - { python: "3.5", env: "TOXENV=py-full DATA...
Support Marshmallow 3 [From here](https://marshmallow.readthedocs.io/en/latest/upgrading.html#schemas-are-always-strict): > Schema().load and Schema().dump don’t return a (data, errors) tuple any more. Only data is returned.
4Catalyzer/flask-resty
diff --git a/tests/test_args.py b/tests/test_args.py index 827aa4c..900b617 100644 --- a/tests/test_args.py +++ b/tests/test_args.py @@ -2,6 +2,7 @@ from marshmallow import fields, Schema import pytest from flask_resty import Api, ApiView +from flask_resty.compat import MA2 from flask_resty.testing import assert_r...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 },...
0.20
{ "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": [ "apt-get update", "apt-get i...
attrs==22.2.0 certifi==2021.5.30 click==8.0.4 coverage==6.2 dataclasses==0.8 execnet==1.9.0 Flask==2.0.3 -e git+https://github.com/4Catalyzer/flask-resty.git@ac43163453fab1b23434d29f71a3c1b34b251c0a#egg=Flask_RESTy Flask-SQLAlchemy==2.5.1 greenlet==2.0.2 importlib-metadata==4.8.3 iniconfig==1.1.1 itsdangerous==2.0.1 Ji...
name: flask-resty channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/test_args.py::test_get_name_one", "tests/test_args.py::test_get_name_extra", "tests/test_args.py::test_get_names_one", "tests/test_args.py::test_get_names_many", "tests/test_args.py::test_get_name_default", "tests/test_args.py::test_get_name_default_specified", "tests/test_args.py::test_caching",...
[]
[]
[]
MIT License
null
null
4degrees__clique-26
a89507304acce5931f940c34025a6547fa8227b5
2016-04-30 17:21:04
a89507304acce5931f940c34025a6547fa8227b5
diff --git a/source/clique/collection.py b/source/clique/collection.py index 0c3b296..db9276c 100644 --- a/source/clique/collection.py +++ b/source/clique/collection.py @@ -251,15 +251,25 @@ class Collection(object): else: data['padding'] = '%d' - if self.indexes: + if '{holes}' in...
collection.format hits maximum recursion depth for collections with lots of holes. The following code gives an example. ```python paths = ["name.{0:04d}.jpg".format(x) for x in range(2000)[::2]] collection = clique.assemble(paths)[0][0] collection.format("{head}####{tail}") ```
4degrees/clique
diff --git a/test/unit/test_collection.py b/test/unit/test_collection.py index ce4daa7..11cb01e 100644 --- a/test/unit/test_collection.py +++ b/test/unit/test_collection.py @@ -2,6 +2,7 @@ # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. +import sys import inspect import py...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
1.3
{ "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>=2.3.5" ], "pre_install": null, "python": "2.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --t...
attrs==22.2.0 certifi==2021.5.30 -e git+https://github.com/4degrees/clique.git@a89507304acce5931f940c34025a6547fa8227b5#egg=Clique importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 zipp==3.6.0
name: clique channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - lib...
[ "test/unit/test_collection.py::test_format_sparse_collection" ]
[ "test/unit/test_collection.py::test_change_property[head-diff_head.-^diff\\\\_head\\\\.(?P<index>(?P<padding>0*)\\\\d+?)\\\\.tail$-diff_head.1.tail]", "test/unit/test_collection.py::test_change_property[tail-.diff_tail-^head\\\\.(?P<index>(?P<padding>0*)\\\\d+?)\\\\.diff\\\\_tail$-head.1.diff_tail]" ]
[ "test/unit/test_collection.py::test_change_property[padding-4-^head\\\\.(?P<index>(?P<padding>0*)\\\\d+?)\\\\.tail$-head.0001.tail]", "test/unit/test_collection.py::test_unsettable_indexes", "test/unit/test_collection.py::test_str", "test/unit/test_collection.py::test_repr", "test/unit/test_collection.py::t...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.4degrees_1776_clique-26
swerebench/sweb.eval.x86_64.4degrees_1776_clique-26
6si__shipwright-79
7d3ccf39acc79bb6d33a787e773227358764dd2c
2016-08-22 09:51:49
7d3ccf39acc79bb6d33a787e773227358764dd2c
diff --git a/CHANGES.rst b/CHANGES.rst index f034d37..89cf5f1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,8 @@ 0.5.1 (unreleased) ------------------ -- Nothing changed yet. +- Add --pull-cache to pull images from repository before building. + (`Issue #49 <https://github.com/6si/shipwright/issues/49>`_). ...
docker pull all images for current branch and master before building Because our buildserver forgets the docker cache between builds we pull the previous build for all the images. it would be great if we could get shipwright to do it. Otherwise a command like "shipright images" which lists all the images that shi...
6si/shipwright
diff --git a/tests/integration/test_docker_builds.py b/tests/integration/test_docker_builds.py index 00aa6be..3a22616 100644 --- a/tests/integration/test_docker_builds.py +++ b/tests/integration/test_docker_builds.py @@ -12,7 +12,7 @@ from .utils import commit_untracked, create_repo, get_defaults def default_args(...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 4 }
0.5
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 docker-py==1.10.6 docker-pycreds==0.4.0 exceptiongroup==1.2.2 gitdb2==2.0.6 GitPython==2.1.15 idna==3.10 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov==6.0.0 requests==2.32.3 -e git+https://github.com/6si/shipwright.git@7d3ccf39acc79...
name: shipwright channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/test_cli.py::test_args", "tests/test_cli.py::test_args_2", "tests/test_cli.py::test_args_base" ]
[ "tests/integration/test_docker_builds.py::test_sample", "tests/integration/test_docker_builds.py::test_multi_dockerfile", "tests/integration/test_docker_builds.py::test_clean_tree_avoids_rebuild", "tests/integration/test_docker_builds.py::test_clean_tree_avoids_rebuild_new_image_definition", "tests/integrat...
[ "tests/integration/test_docker_builds.py::test_dirty_fails_without_flag", "tests/test_cli.py::test_without_json_manifest", "tests/test_cli.py::test_push_also_builds", "tests/test_cli.py::test_assert_hostname" ]
[]
Apache License 2.0
null
null
AI-SDC__AI-SDC-94
a42a2110ade262a7d699d5b71cfccbc787290d5d
2023-01-11 15:57:56
bad75b95d6e3f07b5c9b95aac741d46da4c3b6ef
diff --git a/aisdc/attacks/report.py b/aisdc/attacks/report.py index 12b3887..515c709 100644 --- a/aisdc/attacks/report.py +++ b/aisdc/attacks/report.py @@ -1,4 +1,5 @@ """Code for automatic report generation""" +import abc import json import numpy as np @@ -83,6 +84,8 @@ class NumpyArrayEncoder(json.JSONEncoder):...
Add option to include target model error into attacks as a feature Whether or not the target model classifies an example correctly provides some signal that could be of use to an attacker. We currently do not use this in the attacks, but should include an option to allow it. The 0/1 loss between the predicted class ...
AI-SDC/AI-SDC
diff --git a/tests/test_worst_case_attack.py b/tests/test_worst_case_attack.py index 02cdb73..cdf11e6 100644 --- a/tests/test_worst_case_attack.py +++ b/tests/test_worst_case_attack.py @@ -6,6 +6,7 @@ import sys from unittest.mock import patch import numpy as np +import pytest from sklearn.datasets import load_bre...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 2 }
.1
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ ...
absl-py==1.4.0 -e git+https://github.com/AI-SDC/AI-SDC.git@a42a2110ade262a7d699d5b71cfccbc787290d5d#egg=aisdc array_record==0.5.1 astunparse==1.6.3 attrs==21.4.0 cachetools==5.5.2 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 contourpy==1.3.0 cycler==0.12.1 decorator==5.2.1 dictdiffer==0....
name: AI-SDC channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11...
[ "tests/test_worst_case_attack.py::test_attack_with_correct_feature", "tests/test_worst_case_attack.py::test_non_rf_mia" ]
[ "tests/test_worst_case_attack.py::test_attack_data_prep", "tests/test_worst_case_attack.py::test_attack_data_prep_with_correct_feature" ]
[ "tests/test_worst_case_attack.py::test_report_worstcase", "tests/test_worst_case_attack.py::test_attack_from_predictions", "tests/test_worst_case_attack.py::test_attack_from_predictions_no_dummy", "tests/test_worst_case_attack.py::test_dummy_data", "tests/test_worst_case_attack.py::test_main", "tests/test...
[]
MIT License
null
null
AI4S2S__lilio-49
329a736d26915944744a4235c11497718e0d7832
2023-03-08 14:31:11
329a736d26915944744a4235c11497718e0d7832
sonarcloud[bot]: Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=AI4S2S_lilio&pullRequest=49) [![Bug](https://sonarsource.gi...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 5 }
0.3
{ "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...
anyio==4.9.0 backports.tarfile==1.2.0 black==25.1.0 bump2version==1.0.1 certifi==2025.1.31 cffi==1.17.1 cftime==1.6.4.post1 click==8.1.8 contourpy==1.3.0 coverage==7.8.0 cryptography==44.0.2 cycler==0.12.1 distlib==0.3.9 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work filelock==3.18.0 fonttools==4.56.0...
name: lilio channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "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::...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.ai4s2s_1776_lilio-49
swerebench/sweb.eval.x86_64.ai4s2s_1776_lilio-49
AI4S2S__lilio-58
416ea560d41b57502cf204fbf4e65e79c21373bf
2023-05-30 06:43:39
416ea560d41b57502cf204fbf4e65e79c21373bf
sonarcloud[bot]: Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=AI4S2S_lilio&pullRequest=58) [![Bug](https://sonarsource.gi...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 2 }
0.4
{ "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...
anyio==4.9.0 backports.tarfile==1.2.0 black==25.1.0 bump2version==1.0.1 certifi==2025.1.31 cffi==1.17.1 cftime==1.6.4.post1 click==8.1.8 cloudpickle==3.1.1 contourpy==1.3.0 coverage==7.8.0 cryptography==44.0.2 cycler==0.12.1 dask==2024.8.0 distlib==0.3.9 distributed==2024.8.0 exceptiongroup==1.2.2 filelock==3.18.0 font...
name: lilio channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11....
[ "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::...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.ai4s2s_1776_lilio-58
swerebench/sweb.eval.x86_64.ai4s2s_1776_lilio-58
AI4S2S__s2spy-106
81682c3a15708eb9fccb705796b134933001afb4
2022-09-26 07:07:57
74a971101a64b7d0024cfdfd5ad9382c12752760
diff --git a/notebooks/tutorial_RGDR.ipynb b/notebooks/tutorial_RGDR.ipynb index 84f5228..0f8213a 100644 --- a/notebooks/tutorial_RGDR.ipynb +++ b/notebooks/tutorial_RGDR.ipynb @@ -76,14 +76,27 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Using `.plot_correlation` we can see the correlation...
Merge the plotting functionalities in RGDR module Currently in RGDR module, there are two ways to plot the clusters: - Preview the clusters by `RGDR(...).plot_clusters(precursor_field, target_timeseries)` - Plotting clusters after fitting and transforming `cluster_map.cluster_labels[0].plot()` The first option was...
AI4S2S/s2spy
diff --git a/tests/test_rgdr/test_rgdr.py b/tests/test_rgdr/test_rgdr.py index 4c719eb..fcdf93b 100644 --- a/tests/test_rgdr/test_rgdr.py +++ b/tests/test_rgdr/test_rgdr.py @@ -221,38 +221,38 @@ class TestRGDR: "lag:2_cluster:1", "lag:3_cluster:-1"]) np.testing.assert_array_equal(clustered_data["...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": -1 }, "num_modified_files": 2 }
0.2
{ "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...
alabaster==0.7.16 astroid==3.3.9 babel==2.17.0 build==1.2.2.post1 bump2version==1.0.1 cachetools==5.5.2 certifi==2025.1.31 cftime==1.6.4.post1 chardet==5.2.0 charset-normalizer==3.4.1 colorama==0.4.6 contourpy==1.3.0 coverage==7.8.0 cycler==0.12.1 dill==0.3.9 distlib==0.3.9 docutils==0.21.2 dodgy==0.2.1 exceptiongroup ...
name: s2spy channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_rgdr/test_rgdr.py::TestRGDR::test_corr_preview", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_corr_preview_multiple_lags", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_corr_preview_multiple_lags_fail", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_corr_plot_ax", "tests/test_rgdr/test_rgdr.py::...
[]
[ "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_pearsonr", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_pearsonr_nan", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_correlation", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_correlation_dim_name", "tests/test_rgdr/test_rgdr.py::Te...
[]
Apache License 2.0
null
null
AI4S2S__s2spy-153
74a971101a64b7d0024cfdfd5ad9382c12752760
2023-01-03 13:28:03
74a971101a64b7d0024cfdfd5ad9382c12752760
sonarcloud[bot]: SonarCloud Quality Gate failed.&nbsp; &nbsp; [![Quality Gate failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/failed-16px.png 'Quality Gate failed')](https://sonarcloud.io/dashboard?id=AI4S2S_ai4s2s&pullRequest=153) [![Bug](https://sonarsource.github....
diff --git a/notebooks/example_label_alignment_RGDR.ipynb b/notebooks/example_label_alignment_RGDR.ipynb index b0c4fd4..efd6eaf 100644 --- a/notebooks/example_label_alignment_RGDR.ipynb +++ b/notebooks/example_label_alignment_RGDR.ipynb @@ -41,12 +41,11 @@ ] }, { + "attachments": {}, "cell_type": "markd...
Supporting multiple target intervals in `map_correlation`. Currently `rgdr`'s `map_correlation` implementation will calculate the correlation coefficient and p-value between precursor data and target data. It will calculate this over the `anchor_year` dim, for every dimension in the input data (e.g. `latitude`, `longi...
AI4S2S/s2spy
diff --git a/tests/test_rgdr/test_alignment.py b/tests/test_rgdr/test_alignment.py index 8cff79a..69bd451 100644 --- a/tests/test_rgdr/test_alignment.py +++ b/tests/test_rgdr/test_alignment.py @@ -1,5 +1,4 @@ import numpy as np -import pandas as pd import pytest import xarray as xr from sklearn.model_selection impo...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": ...
0.2
{ "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...
alabaster==0.7.16 astroid==2.13.5 babel==2.17.0 bokeh==2.4.3 build==1.2.2.post1 bump2version==1.0.1 cachetools==5.5.2 certifi==2025.1.31 cftime==1.6.4.post1 chardet==5.2.0 charset-normalizer==3.4.1 colorama==0.4.6 contourpy==1.3.0 coverage==7.8.0 cycler==0.12.1 dill==0.3.9 distlib==0.3.9 docutils==0.21.2 dodgy==0.2.1 e...
name: s2spy channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_rgdr/test_alignment.py::test_alignment_example", "tests/test_rgdr/test_rgdr.py::TestUtils::test_intervals_subtract[intervals0-1-expected0]", "tests/test_rgdr/test_rgdr.py::TestUtils::test_intervals_subtract[intervals1-1-expected1]", "tests/test_rgdr/test_rgdr.py::TestUtils::test_intervals_subtract...
[]
[ "tests/test_rgdr/test_alignment.py::TestAlignmentSubfunctions::test_df_to_full_sets", "tests/test_rgdr/test_alignment.py::TestAlignmentSubfunctions::test_remove_subsets", "tests/test_rgdr/test_alignment.py::TestAlignmentSubfunctions::test_remove_overlapping_clusters", "tests/test_rgdr/test_alignment.py::TestA...
[]
Apache License 2.0
null
null
AI4S2S__s2spy-60
43de2489c0bab3d2923ffeda93ae2749f9a0acca
2022-07-28 08:39:00
43de2489c0bab3d2923ffeda93ae2749f9a0acca
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c97e78a..552d693 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,10 +45,10 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up...
Unintuitive behavior when passing weekly frequencies to calendar. When passing a pandas frequency to the AdventCalendar such as '2W', Pandas uses calendar weeks to generate the intervals. This causes the situation where the anchor date is not always in an interval. Example below: ```python import s2s.time calenda...
AI4S2S/s2spy
diff --git a/s2spy/traintest.py b/s2spy/traintest.py index a513369..16173be 100644 --- a/s2spy/traintest.py +++ b/s2spy/traintest.py @@ -3,6 +3,7 @@ A collection of train/test splitting approaches for cross-validation. """ from typing import Optional +from typing import Type from typing import Union import numpy a...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 9 }
unknown
{ "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...
alabaster==0.7.16 astroid==3.3.9 babel==2.17.0 build==1.2.2.post1 bump2version==1.0.1 cachetools==5.5.2 certifi==2025.1.31 cftime==1.6.4.post1 chardet==5.2.0 charset-normalizer==3.4.1 colorama==0.4.6 coverage==7.8.0 dill==0.3.9 distlib==0.3.9 docutils==0.21.2 dodgy==0.2.1 exceptiongroup @ file:///croot/exceptiongroup_1...
name: s2spy channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_dimensionality.py::TestDimensionality::test_RGDR", "tests/test_dimensionality.py::TestDimensionality::test_PCA", "tests/test_dimensionality.py::TestDimensionality::test_MCA", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_init", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_fit", "tests/test_rg...
[ "tests/test_time.py::TestAdventCalendar::test_show" ]
[]
[]
Apache License 2.0
null
null
AI4S2S__s2spy-77
c254e11f1a64aaa52593e3848b71207421a16c61
2022-08-12 09:19:57
c254e11f1a64aaa52593e3848b71207421a16c61
diff --git a/notebooks/tutorial_time.ipynb b/notebooks/tutorial_time.ipynb index 149fa99..4cdcf45 100644 --- a/notebooks/tutorial_time.ipynb +++ b/notebooks/tutorial_time.ipynb @@ -27,7 +27,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "AdventCalendar(month=12, day=31, freq=7d, n_ta...
Dealing with mismatch between calendar map and data time extent PR #60 changes resample so that it takes a mapped calendar and resamples the input data based on those intervals. However, this will require some extra checks and data handling to prevent user error; - [ ] Add check to see if the data can fully cover...
AI4S2S/s2spy
diff --git a/tests/test_resample.py b/tests/test_resample.py new file mode 100644 index 0000000..8a811a3 --- /dev/null +++ b/tests/test_resample.py @@ -0,0 +1,155 @@ +"""Tests for s2spy.time's resample module. +""" +import numpy as np +import pandas as pd +import pytest +from s2spy.time import AdventCalendar +from s2sp...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 5 }
unknown
{ "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-cov pytest-xdist pytest-mock pytest-asyncio", "pytest" ], "pre_install": [ "apt-get update", "apt-g...
alabaster==0.7.16 astroid==3.3.9 babel==2.17.0 build==1.2.2.post1 bump2version==1.0.1 cachetools==5.5.2 certifi==2025.1.31 cftime==1.6.4.post1 chardet==5.2.0 charset-normalizer==3.4.1 colorama==0.4.6 contourpy==1.3.0 coverage==7.8.0 cycler==0.12.1 dill==0.3.9 distlib==0.3.9 docutils==0.21.2 dodgy==0.2.1 exceptiongroup ...
name: s2spy channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_resample.py::TestResample::test_allow_overlap_dataframe[1]", "tests/test_resample.py::TestResample::test_allow_overlap_dataframe[2]", "tests/test_resample.py::TestResample::test_allow_overlap_dataframe[3]", "tests/test_resample.py::TestResample::test_missing_intervals_dataframe[1-20151020]", "te...
[ "tests/test_time.py::TestAdventCalendar::test_show" ]
[ "tests/test_resample.py::TestResample::test_non_mapped_calendar[1]", "tests/test_resample.py::TestResample::test_non_mapped_calendar[2]", "tests/test_resample.py::TestResample::test_non_mapped_calendar[3]", "tests/test_resample.py::TestResample::test_nontime_index[1-20151020]", "tests/test_resample.py::Test...
[]
Apache License 2.0
null
null
AI4S2S__s2spy-83
1bd615deba811a0b978e2c3abfad6c1de1be8851
2022-08-17 14:40:34
1bd615deba811a0b978e2c3abfad6c1de1be8851
diff --git a/notebooks/tutorial_RGDR.ipynb b/notebooks/tutorial_RGDR.ipynb index 198ccea..29a7389 100644 --- a/notebooks/tutorial_RGDR.ipynb +++ b/notebooks/tutorial_RGDR.ipynb @@ -53,7 +53,7 @@ "target_timeseries = target_resampled.sel(cluster=3).ts.isel(i_interval=0)\n", "precursor_field = field_resampled.s...
Return correlation / p_values from RGDR Currently the correlation and p_values are not accessible by the user. The user can only visualize the those values via RGDR built-in plot functions. The users may need to investigate/store these values in case they want to check the correlation of the precursor fields and target...
AI4S2S/s2spy
diff --git a/tests/test_rgdr/test_rgdr.py b/tests/test_rgdr/test_rgdr.py index a6e9625..3cfb548 100644 --- a/tests/test_rgdr/test_rgdr.py +++ b/tests/test_rgdr/test_rgdr.py @@ -167,11 +167,11 @@ class TestRGDR: """Test RGDR and its methods.""" @pytest.fixture(autouse=True) - def dummy_rgdr(self, example_...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
unknown
{ "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...
alabaster==0.7.16 astroid==3.3.9 babel==2.17.0 build==1.2.2.post1 bump2version==1.0.1 cachetools==5.5.2 certifi==2025.1.31 cftime==1.6.4.post1 chardet==5.2.0 charset-normalizer==3.4.1 colorama==0.4.6 contourpy==1.3.0 coverage==7.8.0 cycler==0.12.1 dill==0.3.9 distlib==0.3.9 docutils==0.21.2 dodgy==0.2.1 exceptiongroup ...
name: s2spy channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_rgdr/test_rgdr.py::TestRGDR::test_init", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_transform_before_fit", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_fit", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_transform", "tests/test_rgdr/test_rgdr.py::TestRGDR::test_fit_transform_fits", "tests/...
[]
[ "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_pearsonr", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_pearsonr_nan", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_correlation", "tests/test_rgdr/test_rgdr.py::TestCorrelation::test_correlation_dim_name", "tests/test_rgdr/test_rgdr.py::Te...
[]
Apache License 2.0
null
null
ARM-software__mango-42
f1b2aaef4b2d6ba5b5ed1667346c1d9cfb708d85
2021-08-23 06:03:32
a71bc007a0c4e39462fd1810cdbcf99c4e854679
diff --git a/mango/domain/domain_space.py b/mango/domain/domain_space.py index 86cf9da..b02f833 100644 --- a/mango/domain/domain_space.py +++ b/mango/domain/domain_space.py @@ -70,7 +70,7 @@ class domain_space(): pass # we are not doing anything at present, and will directly use its value for GP. ...
Variable type issue in domain_space.py file System: Ubuntu 18.04, Python; 3.8.8 (via conda environment), Tensorflow: 2.4.0 (with GPU), numpy: 1.18.5 Error happens when using TF in conjunction with Mango for neural architecture search. In https://github.com/ARM-software/mango/blob/master/mango/domain/domain_space.py...
ARM-software/mango
diff --git a/tests/test_domain_space.py b/tests/test_domain_space.py index f0738de..1d5ae89 100644 --- a/tests/test_domain_space.py +++ b/tests/test_domain_space.py @@ -119,3 +119,17 @@ def test_gp_space(): X2 = ds.convert_GP_space(params) assert np.isclose(X2, X).all() + + +def test_np_space(): + space ...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 1 }
1.1
{ "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": [ "apt...
-e git+https://github.com/ARM-software/mango.git@f1b2aaef4b2d6ba5b5ed1667346c1d9cfb708d85#egg=arm_mango attrdict==2.0.1 coverage==7.8.0 dataclasses==0.6 exceptiongroup==1.2.2 execnet==2.1.1 iniconfig==2.1.0 joblib==1.4.2 numpy==2.0.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-asyncio==0.26.0 pytest-cov==6.0.0 p...
name: mango channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11....
[ "tests/test_domain_space.py::test_np_space" ]
[]
[ "tests/test_domain_space.py::test_domain", "tests/test_domain_space.py::test_mango_loguniform", "tests/test_domain_space.py::test_gp_samples_to_params", "tests/test_domain_space.py::test_gp_space" ]
[]
Apache License 2.0
null
null
ARMmbed__greentea-237
86f5ec3211a8f7f324bcdd3201012945ee0534ac
2017-09-25 13:51:40
86f5ec3211a8f7f324bcdd3201012945ee0534ac
diff --git a/mbed_greentea/mbed_report_api.py b/mbed_greentea/mbed_report_api.py index da3f0d9..82acb5c 100644 --- a/mbed_greentea/mbed_report_api.py +++ b/mbed_greentea/mbed_report_api.py @@ -38,6 +38,13 @@ def exporter_json(test_result_ext, test_suite_properties=None): @details This is a machine friendly format ...
mbedgt crash with float division by zero Hi Here is my command: mbedgt -V -v -t NUCLEO_F401RE-ARM,NUCLEO_F401RE-GCC_ARM,NUCLEO_F401RE-IAR,NUCLEO_F410RB-ARM,NUCLEO_F410RB-GCC_ARM,NUCLEO_F410RB-IAR,NUCLEO_F411RE-ARM,NUCLEO_F411RE-GCC_ARM,NUCLEO_F411RE-IAR --report-html=/c/xxx.html It has crashed: ... mbedgt: a...
ARMmbed/greentea
diff --git a/test/report_api.py b/test/report_api.py new file mode 100644 index 0000000..122e26e --- /dev/null +++ b/test/report_api.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +""" +mbed SDK +Copyright (c) 2017 ARM Limited + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file exc...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 1 }
1.2
{ "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": [ "apt...
appdirs==1.4.4 beautifulsoup4==4.13.3 certifi==2025.1.31 charset-normalizer==3.4.1 colorama==0.3.9 coverage==7.8.0 exceptiongroup==1.2.2 execnet==2.1.1 fasteners==0.19 future==1.0.0 idna==3.10 iniconfig==2.1.0 intelhex==2.3.0 junit-xml==1.9 lockfile==0.12.2 -e git+https://github.com/ARMmbed/greentea.git@86f5ec3211a8f7f...
name: greentea channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "test/report_api.py::ReportEmitting::test_report_zero_testcases" ]
[]
[ "test/report_api.py::ReportEmitting::test_report_zero_tests" ]
[]
Apache License 2.0
null
null
ARMmbed__greentea-243
8f7b28f8ec739156d238304fa4f5f2e5156536f5
2017-09-29 17:09:53
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
diff --git a/mbed_greentea/mbed_report_api.py b/mbed_greentea/mbed_report_api.py index 166bc29..22a3778 100644 --- a/mbed_greentea/mbed_report_api.py +++ b/mbed_greentea/mbed_report_api.py @@ -42,7 +42,7 @@ def exporter_json(test_result_ext, test_suite_properties=None): for suite in target.values(): ...
mbedgt crash with UnicodeDecodeError Hi I am sorry, but I still get some crash with the new green tea version ... mbedgt: exporting to HTML file 'C:/mcu/reports/report__mbed_os5_release_non_regression_F756ZG_mbed-os-5.5.7__2017_09_28_00_06.html'... mbedgt: unexpected error: 'unicodeescape' codec can't decode b...
ARMmbed/greentea
diff --git a/test/report_api.py b/test/report_api.py index 122e26e..2a4275f 100644 --- a/test/report_api.py +++ b/test/report_api.py @@ -45,7 +45,7 @@ class ReportEmitting(unittest.TestCase): u'build_path_abs': u'N/A', u'copy_method': u'N/A', u'image_path':...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 1 }
1.3
{ "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" ], "pre_install": [ "apt-get update", "apt-get instal...
appdirs==1.4.4 attrs==22.2.0 beautifulsoup4==4.12.3 certifi==2021.5.30 charset-normalizer==2.0.12 colorama==0.3.9 coverage==6.2 execnet==1.9.0 fasteners==0.19 future==1.0.0 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 intelhex==2.3.0 junit-xml==1.9 lockfile==0.12.2 -e git+https://github.com/ARMmbed/greentea.gi...
name: greentea channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - l...
[ "test/report_api.py::ReportEmitting::test_report_zero_testcases" ]
[]
[ "test/report_api.py::ReportEmitting::test_report_zero_tests" ]
[]
Apache License 2.0
null
null
ARMmbed__greentea-250
b8bcffbb7aaced094f252a4ddfe930e8237fb484
2017-10-20 19:13:58
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
diff --git a/mbed_greentea/mbed_target_info.py b/mbed_greentea/mbed_target_info.py index 356676b..c825bcf 100644 --- a/mbed_greentea/mbed_target_info.py +++ b/mbed_greentea/mbed_target_info.py @@ -20,6 +20,17 @@ Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com> import os import re import json +from os import wal...
Target property priority incorrect Currently we have priority as follows: ``` internal yotta blob > targets.json > tool default ``` This is a bug. Instead the priority should be: ``` targets.json /w default > internal yotta blob > tool delaut ``` This implies a few test cases: In targets.json | I...
ARMmbed/greentea
diff --git a/test/mbed_gt_target_info.py b/test/mbed_gt_target_info.py index e3f0a6a..96cd1db 100644 --- a/test/mbed_gt_target_info.py +++ b/test/mbed_gt_target_info.py @@ -21,6 +21,8 @@ import shutil import tempfile import unittest +from six import StringIO + from mock import patch from mbed_greentea import mbed...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 2 }, "num_modified_files": 2 }
1.3
{ "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...
appdirs==1.4.4 beautifulsoup4==4.13.3 certifi==2025.1.31 charset-normalizer==3.4.1 colorama==0.3.9 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work fasteners==0.19 future==1.0.0 idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work intelhex==2.3.0 junit-xml==1.9 lockfile==0....
name: greentea channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_find_targets_json", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_find_targets_json_ignored", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_platform_property_from_targets_empty_json", "test/mbed_gt_target_info.py::GreenteaTargetInfo:...
[]
[ "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_mbed_target_from_current_dir_ok", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_mbed_targets_from_yotta_local_module_invalid_path", "test/mbed_gt_target_info.py::GreenteaTargetInfo::test_get_mbed_targets_from_yotta_local_module_invalid_targ...
[]
Apache License 2.0
null
null
ARMmbed__greentea-263
68508c5f4d7cf0635c75399d0ff7cfa896fdf2cc
2018-02-15 17:29:56
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": { + ...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
1.3
{ "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...
appdirs==1.4.4 beautifulsoup4==4.13.3 certifi==2025.1.31 charset-normalizer==3.4.1 colorama==0.3.9 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work fasteners==0.19 future==1.0.0 idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work intelhex==2.3.0 junit-xml==1.9 lockfile==0....
name: greentea channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld...
[ "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...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_greentea-263
swerebench/sweb.eval.x86_64.armmbed_1776_greentea-263
ARMmbed__mbed-tools-138
94a3bd761d6ab3305c81da93517767aafff58d7e
2020-12-01 14:33:04
9ad9be8ebe4c5cb07a88a7bd151ca845340a2cfe
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/138?src=pr&el=h1) Report > Merging [#138](https://codecov.io/gh/ARMmbed/mbed-tools/pull/138?src=pr&el=desc) (1999bcd) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/1fbc64249a3650dd633fdf2631cc256aec6971b5?el=desc) (1fbc642) will **d...
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: ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
4.0
{ "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...
backports.tarfile==1.2.0 beartype==0.19.0 black==24.8.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.6.1 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.20.1 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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" ]
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-138
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-138
ARMmbed__mbed-tools-154
9d6b2c71a7ddc93bd71279482a7572cac30ed745
2020-12-10 13:15:11
9d6b2c71a7ddc93bd71279482a7572cac30ed745
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/154?src=pr&el=h1) Report > Merging [#154](https://codecov.io/gh/ARMmbed/mbed-tools/pull/154?src=pr&el=desc) (78ae5c4) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/9ad9be8ebe4c5cb07a88a7bd151ca845340a2cfe?el=desc) (9ad9be8) will **i...
diff --git a/README.md b/README.md index fdd2e05..eff3449 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,10 @@ follows: ## Installation +`mbed-tools` relies on the Ninja build system and CMake. +- CMake. [Install version 3.19.0 or newer for all operating systems](https://cmake.org/install/). +- Ninja. [Instal...
README.md : miss cmake and ninja information ### Description Hi This morning, I spent some time on a new PC to install this new mbed tool, This was not working, and I got several not friendly messages... ... till I remembered that I didn't install cmake yet... So my request would be: - to update tools when cm...
ARMmbed/mbed-tools
diff --git a/tests/build/test_build.py b/tests/build/test_build.py index b9d32af..5293966 100644 --- a/tests/build/test_build.py +++ b/tests/build/test_build.py @@ -2,45 +2,60 @@ # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # -import pathlib +import subprocess -from tem...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "tes...
4.1
{ "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": [ "requirements-test.txt", "requirements-dev.txt" ], ...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/build/test_build.py::TestBuildProject::test_raises_build_error_if_cmake_invocation_fails", "tests/build/test_build.py::TestConfigureProject::test_raises_when_ninja_cannot_be_found", "tests/build/test_build.py::TestConfigureProject::test_raises_when_cmake_cannot_be_found" ]
[]
[ "tests/build/test_build.py::TestBuildProject::test_invokes_cmake_with_correct_args", "tests/build/test_build.py::TestBuildProject::test_invokes_cmake_with_correct_args_if_no_target_passed", "tests/build/test_build.py::TestConfigureProject::test_invokes_cmake_with_correct_args" ]
[]
Apache License 2.0
null
null
ARMmbed__mbed-tools-190
d4dd48ce58952851f9cb2a9e98b0f788a61a23a3
2021-02-15 13:43:30
e9710eabb27a4f65e7c0e799224c3f8bcd2b4881
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/190?src=pr&el=h1) Report > Merging [#190](https://codecov.io/gh/ARMmbed/mbed-tools/pull/190?src=pr&el=desc) (68c47da) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/73d90030d995a3da7a518d69ec70c9a54fd59579?el=desc) (73d9003) will **i...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
7.1
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-190
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-190
ARMmbed__mbed-tools-203
b4ec310be404e690c1947f8050597a87691bf381
2021-02-24 16:32:59
584a995d93b9562e9c95385268891dfdae9c55f1
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/203?src=pr&el=h1) Report > Merging [#203](https://codecov.io/gh/ARMmbed/mbed-tools/pull/203?src=pr&el=desc) (de0dcbc) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/c4ccaf1baeacf2640b0103dff46db6cb6186ea43?el=desc) (c4ccaf1) will **d...
diff --git a/.travis.yml b/.travis.yml index 1995da5..77b83b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -197,7 +197,8 @@ matrix: - mbedtools import mbed-os-example-ble - cd mbed-os-example-ble # Checkout the development branch on BLE example - - git checkout development + - ...
Missing --depth option for deploy/new commands ### Description Old tools `mbed-cli` has amazing option --depth for more fast and efficient downloading mbed-os sources, but new tools `mbed-tools` don't have this option. But this option very useful on limited and slow internet connections. And takes up less space o...
ARMmbed/mbed-tools
diff --git a/tests/project/_internal/test_git_utils.py b/tests/project/_internal/test_git_utils.py index b280359..c188d47 100644 --- a/tests/project/_internal/test_git_utils.py +++ b/tests/project/_internal/test_git_utils.py @@ -30,12 +30,33 @@ class TestClone: repo = git_utils.clone(url, path) asse...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "nu...
7.2
{ "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 gcc ...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/project/_internal/test_git_utils.py::TestClone::test_returns_repo", "tests/project/_internal/test_git_utils.py::TestClone::test_returns_repo_for_ref", "tests/project/_internal/test_git_utils.py::TestClone::test_raises_when_fails_due_to_bad_url_with_ref", "tests/project/_internal/test_git_utils.py::Test...
[]
[ "tests/project/_internal/test_git_utils.py::TestClone::test_raises_when_fails_due_to_bad_url", "tests/project/_internal/test_git_utils.py::TestClone::test_raises_when_fails_due_to_existing_nonempty_dst_dir", "tests/project/_internal/test_git_utils.py::TestInit::test_returns_initialised_repo", "tests/project/_...
[]
Apache License 2.0
null
null
ARMmbed__mbed-tools-207
e9710eabb27a4f65e7c0e799224c3f8bcd2b4881
2021-03-02 10:56:32
e9710eabb27a4f65e7c0e799224c3f8bcd2b4881
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/207?src=pr&el=h1) Report > Merging [#207](https://codecov.io/gh/ARMmbed/mbed-tools/pull/207?src=pr&el=desc) (ce44d6c) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/e9710eabb27a4f65e7c0e799224c3f8bcd2b4881?el=desc) (e9710ea) will **i...
diff --git a/news/20210302104001.bugfix b/news/20210302104001.bugfix new file mode 100644 index 0000000..398a80b --- /dev/null +++ b/news/20210302104001.bugfix @@ -0,0 +1,1 @@ +Search mbed-os for config files when mbed-os-path is used and mbed-os is not a subdirectory of the project. diff --git a/src/mbed_tools/build/_...
Mbed OS path not searched when processing config ### Description When we added the `--mbed-os-path` option to `configure` and `compile` we didn't add it to the list of search paths for the config processing tool. Currently, the tool always searches for config files from the project root down, and `mbed-os-path` could ...
ARMmbed/mbed-tools
diff --git a/tests/build/test_generate_config.py b/tests/build/test_generate_config.py index 362b020..b2e7008 100644 --- a/tests/build/test_generate_config.py +++ b/tests/build/test_generate_config.py @@ -71,6 +71,19 @@ def program(tmp_path): return prog +@pytest.fixture +def program_in_mbed_os_subdir(tmp_path...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 3 }, "num_modi...
7.1
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y cmake ninja-build" ], "python": "3.9"...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/build/test_generate_config.py::test_config_parsed_when_mbed_os_outside_project_root[target:" ]
[]
[ "tests/build/test_generate_config.py::test_target_and_toolchain_collected", "tests/build/test_generate_config.py::test_custom_targets_data_found", "tests/build/test_generate_config.py::test_raises_error_when_attempting_to_customize_existing_target", "tests/build/test_generate_config.py::test_config_param_from...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-207
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-207
ARMmbed__mbed-tools-208
584a995d93b9562e9c95385268891dfdae9c55f1
2021-03-02 16:43:27
584a995d93b9562e9c95385268891dfdae9c55f1
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/208?src=pr&el=h1) Report > Merging [#208](https://codecov.io/gh/ARMmbed/mbed-tools/pull/208?src=pr&el=desc) (2dec7c0) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/e9710eabb27a4f65e7c0e799224c3f8bcd2b4881?el=desc) (e9710ea) will **i...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 2 }, "nu...
7.2
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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::...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-208
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-208
ARMmbed__mbed-tools-259
a9b0e1fa3e1d58f80eff5fcc4f82f5952acf8f96
2021-04-01 16:06:11
a9b0e1fa3e1d58f80eff5fcc4f82f5952acf8f96
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/259?src=pr&el=h1) Report > Merging [#259](https://codecov.io/gh/ARMmbed/mbed-tools/pull/259?src=pr&el=desc) (a663bbd) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/a9b0e1fa3e1d58f80eff5fcc4f82f5952acf8f96?el=desc) (a9b0e1f) will **i...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
7.6
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-259
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-259
ARMmbed__mbed-tools-270
73fc6ed6fd728beea588e100c2de83c439c29228
2021-04-13 11:28:54
73fc6ed6fd728beea588e100c2de83c439c29228
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/270?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ARMmbed) Report > Merging [#270](https://codecov.io/gh/ARMmbed/mbed-tools/pull/270?src=pr&el=desc&utm_medium=referral&utm_source=github&utm...
diff --git a/news/222.bugfix b/news/222.bugfix new file mode 100644 index 0000000..4bb5df6 --- /dev/null +++ b/news/222.bugfix @@ -0,0 +1,1 @@ +Add support for MBED_ROM_START, MBED_ROM_SIZE, MBED_RAM_START and MBED_RAM_SIZE in config system. diff --git a/src/mbed_tools/build/_internal/config/config.py b/src/mbed_tools/...
MBED_ROM_START and friends unavailable on Mbed CLI2 ### 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 (e.g. ...
ARMmbed/mbed-tools
diff --git a/tests/build/_internal/config/test_config.py b/tests/build/_internal/config/test_config.py index 980ed4d..c7e2e35 100644 --- a/tests/build/_internal/config/test_config.py +++ b/tests/build/_internal/config/test_config.py @@ -2,10 +2,11 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights r...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "tes...
7.10
{ "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.9", "reqs_path": [ "requi...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/build/_internal/config/test_config.py::TestConfig::test_config_updated", "tests/build/_internal/config/test_config.py::TestConfig::test_raises_when_trying_to_add_duplicate_config_setting", "tests/build/_internal/config/test_config.py::TestConfig::test_logs_ignore_mbed_ram_repeated", "tests/build/_inter...
[]
[]
[]
Apache License 2.0
null
null
ARMmbed__mbed-tools-284
71e9707b908c393691a4e509ced90ce608e68b81
2021-05-24 11:45:52
71e9707b908c393691a4e509ced90ce608e68b81
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/284?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ARMmbed) Report > Merging [#284](https://codecov.io/gh/ARMmbed/mbed-tools/pull/284?src=pr&el=desc&utm_medium=referral&utm_source=github&utm...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e61e039..29a1296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,15 @@ beta releases are not included in this history. For a full list of all releases, [//]: # (begin_release_notes) +7.16.0 (2021-05-26) +=================== + +Features +-------- + +- Targets...
mbed_rom_size values from mbed_app.json are ignored **Describe the bug** #270 has implemented mbed_rom_size support in targets.json file, But it seems that if values is overwritten in the local mbed_app.json file, value is ignored @wernerlewis **To Reproduce** Steps to reproduce the behavior: - choose ...
ARMmbed/mbed-tools
diff --git a/tests/build/_internal/config/test_config.py b/tests/build/_internal/config/test_config.py index c7e2e35..980ed4d 100644 --- a/tests/build/_internal/config/test_config.py +++ b/tests/build/_internal/config/test_config.py @@ -2,11 +2,10 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights r...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 2 }, "nu...
7.15
{ "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" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements-test.txt", "requirements-...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/build/test_generate_config.py::test_overrides_target_non_config_params_from_app[target:" ]
[]
[ "tests/build/_internal/config/test_config.py::TestConfig::test_config_updated", "tests/build/_internal/config/test_config.py::TestConfig::test_raises_when_trying_to_add_duplicate_config_setting", "tests/build/_internal/config/test_config.py::TestConfig::test_target_overrides_handled", "tests/build/_internal/c...
[]
Apache License 2.0
null
null
ARMmbed__mbed-tools-285
ff2da40abec773902b6fda86d36de154d83a7d9f
2021-05-24 18:08:57
ff2da40abec773902b6fda86d36de154d83a7d9f
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/285?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ARMmbed) Report > Merging [#285](https://codecov.io/gh/ARMmbed/mbed-tools/pull/285?src=pr&el=desc&utm_medium=referral&utm_source=github&utm...
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...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 3, "test_score": 1 }, "num_modified_files": 2 }
7.16
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 exec...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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" ]
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-285
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-285
ARMmbed__mbed-tools-288
673552826ac7e1e60477e8a212a522412e45ef7e
2021-05-25 13:50:10
673552826ac7e1e60477e8a212a522412e45ef7e
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/288?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ARMmbed) Report > Merging [#288](https://codecov.io/gh/ARMmbed/mbed-tools/pull/288?src=pr&el=desc&utm_medium=referral&utm_source=github&utm...
diff --git a/news/286.bugfix b/news/286.bugfix new file mode 100644 index 0000000..745bfb1 --- /dev/null +++ b/news/286.bugfix @@ -0,0 +1,1 @@ +Properly handle --custom-targets-json in configure sub command diff --git a/news/287.bugfix b/news/287.bugfix new file mode 100644 index 0000000..586d532 --- /dev/null +++ b/ne...
Allow setting custom output directory in "configure" sub command **Is your feature request related to a problem? Please describe.** I use a custom build tool (that calls cmake under the hood) to build packages in my project. The fact mbed-tools use such an unusual build directory makes things awkward to integrate. ...
ARMmbed/mbed-tools
diff --git a/tests/cli/test_configure.py b/tests/cli/test_configure.py index edb2341..a0c61fd 100644 --- a/tests/cli/test_configure.py +++ b/tests/cli/test_configure.py @@ -2,6 +2,8 @@ # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # +import pathlib...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 1 }
7.19
{ "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" ], "pre_install": [], "python": "3.9", "reqs_path": [ "requireme...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/cli/test_configure.py::TestConfigureCommand::test_custom_output_directory_used_when_passed", "tests/cli/test_configure.py::TestConfigureCommand::test_custom_targets_location_used_when_passed" ]
[]
[ "tests/cli/test_configure.py::TestConfigureCommand::test_generate_config_called_with_correct_arguments", "tests/cli/test_configure.py::TestConfigureCommand::test_generate_config_called_with_mbed_os_path" ]
[]
Apache License 2.0
null
null
ARMmbed__mbed-tools-292
f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4
2021-06-22 11:53:33
f55d2eb5f6aec73e33a85331c82d0d3d71cc09b4
codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/292?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ARMmbed) Report > Merging [#292](https://codecov.io/gh/ARMmbed/mbed-tools/pull/292?src=pr&el=desc&utm_medium=referral&utm_source=github&utm...
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"...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 0 }, "num_modi...
7.26
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "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...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-292
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-292
ARMmbed__mbed-tools-293
a97be74fef509c90c820c9a96961377e14412c92
2021-06-30 14:52:52
a97be74fef509c90c820c9a96961377e14412c92
LDong-Arm: I first made the fix locally while working on #292 (`--app-config`) as they are quite similar, but decided to not include this there as more time was needed to add a test. Now it's done here. codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/293?src=pr&el=h1&utm_medium=referral&utm_sour...
diff --git a/news/262.bugfix b/news/262.bugfix new file mode 100644 index 0000000..a438a13 --- /dev/null +++ b/news/262.bugfix @@ -0,0 +1,1 @@ +Add `-b`, `--profile` to the `configure` subcommand for specifying build profile. diff --git a/src/mbed_tools/cli/configure.py b/src/mbed_tools/cli/configure.py index 360c389.....
`mbed-tools configure` generates `mbed_config.cmake` under `develop`, and doesn't have a `-b` option From the PR description and commit msg, it says that configs and builds should now live under `cmake_build/TARGET/PROFILE/TOOLCHAIN`, but this line makes `mbed-tools configure` always generate the `mbed_config.cmake` un...
ARMmbed/mbed-tools
diff --git a/tests/cli/test_build.py b/tests/cli/test_build.py index d680ee9..42e5852 100644 --- a/tests/cli/test_build.py +++ b/tests/cli/test_build.py @@ -186,6 +186,29 @@ class TestBuildCommand(TestCase): generate_config.assert_called_once_with(target.upper(), toolchain.upper(), program) se...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
7.28
{ "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 gcc"...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1.2 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 fact...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/cli/test_configure.py::TestConfigureCommand::test_profile_used_when_passed" ]
[]
[ "tests/cli/test_build.py::TestBuildCommand::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_opti...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-293
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-293
ARMmbed__mbed-tools-91
a188be5d23cdc1f5c7434b439e9afed50a75e8ad
2020-10-22 15:02:19
18434c76f9a68f87e418d65d57f33bae6b9fb7c9
jainvikas8: Rebased on latest mater codecov[bot]: # [Codecov](https://codecov.io/gh/ARMmbed/mbed-tools/pull/91?src=pr&el=h1) Report > Merging [#91](https://codecov.io/gh/ARMmbed/mbed-tools/pull/91?src=pr&el=desc) into [master](https://codecov.io/gh/ARMmbed/mbed-tools/commit/a188be5d23cdc1f5c7434b439e9afed50a75e8ad?el=d...
diff --git a/news/66.bugfix b/news/66.bugfix new file mode 100644 index 0000000..f920f1e --- /dev/null +++ b/news/66.bugfix @@ -0,0 +1,1 @@ +Fix https to ssh redirection diff --git a/src/mbed_tools/project/_internal/libraries.py b/src/mbed_tools/project/_internal/libraries.py index cc417bf..abc4ccb 100644 --- a/src/mbe...
mbedtools clone <example> fails ### 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 (e.g. macOS 10.15.2, Windo...
ARMmbed/mbed-tools
diff --git a/tests/project/_internal/test_project_data.py b/tests/project/_internal/test_project_data.py index 51c0fad..6be1510 100644 --- a/tests/project/_internal/test_project_data.py +++ b/tests/project/_internal/test_project_data.py @@ -108,13 +108,15 @@ class TestMbedLibReference(TestCase): root = pathlib...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
3.5
{ "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...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/project/_internal/test_project_data.py::TestMbedLibReference::test_get_git_reference_returns_lib_file_contents" ]
[]
[ "tests/project/_internal/test_project_data.py::TestMbedProgramFiles::test_from_existing_calls_render_cmakelists_template_with_program_name_if_file_nonexistent", "tests/project/_internal/test_project_data.py::TestMbedProgramFiles::test_from_existing_finds_existing_program_data", "tests/project/_internal/test_pro...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-91
swerebench/sweb.eval.x86_64.armmbed_1776_mbed-tools-91
ARMmbed__mbed-tools-92
49683ab6ab548f932bb790bf5a0b32e3f3d20fe2
2020-10-23 11:53:22
18434c76f9a68f87e418d65d57f33bae6b9fb7c9
diff --git a/.travis.yml b/.travis.yml index 761e422..2e1058c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -99,7 +99,7 @@ matrix: - <<: *mbed-tools-test name: "Test ble example (NRF52840_DK)" - env: EXAMPLE_NAME=mbed-os-example-ble TARGET_NAME=NRF52840_DK SUBEXAMPLE_NAME=BLE_Button CACHE_NAME=ble-bl...
Fix `mbed-os.lib` for the following examples ### 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 (e.g. macOS 1...
ARMmbed/mbed-tools
diff --git a/tests/project/_internal/test_libraries.py b/tests/project/_internal/test_libraries.py index 9bed897..76ee133 100644 --- a/tests/project/_internal/test_libraries.py +++ b/tests/project/_internal/test_libraries.py @@ -18,7 +18,7 @@ class TestLibraryReferences(TestCase): lib = make_mbed_lib_reference...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "tes...
3.5
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
backports.tarfile==1.2.0 beartype==0.20.2 black==25.1.0 boolean.py==4.0 boto3==1.37.23 botocore==1.37.23 bracex==2.5.post1 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==7.1 coverage==7.8.0 cryptography==44.0.2 Deprecated==1.2.18 distlib==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 factor...
name: mbed-tools channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-n...
[ "tests/project/_internal/test_libraries.py::TestLibraryReferences::test_does_not_resolve_references_in_ignore_paths", "tests/project/_internal/test_mbed_program.py::TestInitialiseProgram::test_from_url_does_not_raise_with_odd_program_layout", "tests/project/_internal/test_mbed_program.py::TestInitialiseProgram:...
[]
[ "tests/project/_internal/test_libraries.py::TestLibraryReferences::test_does_not_perform_checkout_if_no_git_ref_exists", "tests/project/_internal/test_libraries.py::TestLibraryReferences::test_hydrates_recursive_dependencies", "tests/project/_internal/test_libraries.py::TestLibraryReferences::test_hydrates_top_...
[]
Apache License 2.0
null
null
ARMmbed__yotta-586
852c1e498fbb12938fa28aa388cf2b2b650508fe
2015-11-19 17:32:49
852c1e498fbb12938fa28aa388cf2b2b650508fe
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..0150ea4 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +parallel=True +concurrency=multiprocessing +include=./yotta/* + diff --git a/tox.ini b/tox.ini index 20af1fb..06075d3 100644 --- a/tox.ini +++ b/tox.ini @@ -6,14 +6,16 @@ deps= ...
c:\ytexe yt link does not install module ## Problem To add a local library module to a executable module it requires 3 steps `c:\ytlib yt link` `c:\ytexe yt link ytlib` If you run `yt ls` at this point there is no indication that `ytlib` is linked into the project, you must either `yt install` or `yt build` to get...
ARMmbed/yotta
diff --git a/yotta/test/cli/build.py b/yotta/test/cli/build.py index bbd0dbb..3ff37bf 100644 --- a/yotta/test/cli/build.py +++ b/yotta/test/cli/build.py @@ -6,17 +6,14 @@ # standard library modules, , , import unittest -import os -import tempfile import subprocess import copy import re import datetime # inte...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 4 }
0.9
{ "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 cmake ninja-build" ], "python": "3.9", "r...
argcomplete==0.9.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 colorama==0.3.9 cryptography==44.0.2 Deprecated==1.2.18 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work future==1.0.0 hgapi==1.7.4 idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work intelhex==2....
name: yotta channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkModuleGlobally", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkNonexistentModule", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkTarget", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkTargetGlobally" ]
[ "yotta/test/cli/build.py::TestCLIBuild::test_buildComplex", "yotta/test/cli/build.py::TestCLIBuild::test_buildComplexSpaceInPath", "yotta/test/cli/build.py::TestCLIBuild::test_buildInfo", "yotta/test/cli/build.py::TestCLIBuild::test_buildTests", "yotta/test/cli/build.py::TestCLIBuild::test_buildTrivialExe",...
[ "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkModule", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkNonexistentTarget", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkNotLinkedModuleGlobally", "yotta/test/cli/unlink.py::TestCLIUnLink::testUnlinkNotLinkedTargetGlobally", "yotta/test/ignores...
[]
Apache License 2.0
null
null
ARMmbed__yotta-656
16cc2baeba653dc77e3ce32c20018b32ab108bf4
2016-01-12 15:29:25
16cc2baeba653dc77e3ce32c20018b32ab108bf4
diff --git a/yotta/lib/pack.py b/yotta/lib/pack.py index ade5aae..f7ef9d0 100644 --- a/yotta/lib/pack.py +++ b/yotta/lib/pack.py @@ -257,6 +257,12 @@ class Pack(object): else: return None + def getKeywords(self): + if self.description: + return self.description.get('keywords...
Discourage accidental use of mbed-official keyword There have been several cases where target descriptions have been published with descriptions and keywords indicating that they are officially supported, when in fact they aren't. yotta should warn when these keywords are used, to make sure that their use is intenti...
ARMmbed/yotta
diff --git a/yotta/test/cli/test_publish.py b/yotta/test/cli/test_publish.py index de93d77..11b713e 100644 --- a/yotta/test/cli/test_publish.py +++ b/yotta/test/cli/test_publish.py @@ -13,7 +13,7 @@ import tempfile # internal modules: from yotta.lib.fsutils import rmRf from . import cli - +from . import util Test...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 3 }
0.12
{ "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 cmake ninja-build" ], "python": "3.9", "r...
argcomplete==1.0.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 colorama==0.3.9 cryptography==44.0.2 Deprecated==1.2.18 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work future==1.0.0 hgapi==1.7.4 idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work intelhex==2....
name: yotta channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "yotta/test/cli/test_publish.py::TestCLIPublish::test_warnOfficialKeywords" ]
[ "yotta/test/cli/test_publish.py::TestCLIPublish::test_publishNotAuthed" ]
[ "yotta/test/cli/test_publish.py::TestCLIPublish::test_publishPrivate" ]
[]
Apache License 2.0
null
null
ARMmbed__yotta-802
ae1cda2082f6f82c1c9f80f6194fcae62d228bc1
2017-03-28 19:14:56
ae1cda2082f6f82c1c9f80f6194fcae62d228bc1
diff --git a/docs/reference/buildsystem.md b/docs/reference/buildsystem.md index e728c9f..6cc8bd9 100644 --- a/docs/reference/buildsystem.md +++ b/docs/reference/buildsystem.md @@ -30,7 +30,7 @@ The name of the library being built by the current module is available as No header needs to be included for this definition...
Install yotta modules from github with git credentials I'd like to do following but it fails: ``` $ yotta install git@github.com:ARMmbed/module-x.git info: get versions for git Fatal Exception, yotta=0.17.2 Traceback (most recent call last): File "/home/jaakor01/workspace/yotta_issue/venv/bin/yotta", line 4, in...
ARMmbed/yotta
diff --git a/yotta/test/test_sourceparse.py b/yotta/test/test_sourceparse.py index 412f4ad..0b7af6f 100644 --- a/yotta/test/test_sourceparse.py +++ b/yotta/test/test_sourceparse.py @@ -11,50 +11,60 @@ import unittest # sourceparse, , parse version source urls, internal from yotta.lib import sourceparse - -Registry_...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 13 }
0.17
{ "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": [ "apt-get update", "apt-get i...
argcomplete==1.12.3 attrs==22.2.0 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 colorama==0.3.9 coverage==6.2 cryptography==40.0.2 Deprecated==1.2.18 execnet==1.9.0 future==1.0.0 hgapi==1.7.4 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 intelhex==2.3.0 intervaltree==3.1.0 Jinja2==2.11.3 jsonpointe...
name: yotta channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libf...
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_shorthandURLs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_GitRefs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_GithubRefs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_HGRefs" ]
[]
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_gitURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_githubURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_hgURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_invalid", "yotta/test/test_sourceparse.py::T...
[]
Apache License 2.0
null
null
ARMmbed__yotta-804
4094b7a26c66dd64ff724d4f72da282d41ea9fca
2017-04-06 15:06:03
2575c2f7cd0977b5df2347223738629d28e5310b
diff --git a/yotta/lib/sourceparse.py b/yotta/lib/sourceparse.py index 0f451ad..eb1f0b4 100644 --- a/yotta/lib/sourceparse.py +++ b/yotta/lib/sourceparse.py @@ -57,7 +57,7 @@ def _getNonRegistryRef(source_url): # something/something#spec = github # something/something@spec = github # something/something ...
Semver incompatibility Hi, It seems the recent version has broken semantic version for any previous version, which we heavily use in our project, [microbit-dal](https://github.com/lancaster-university/microbit-dal). We have had two new users on v18 who have reported this breakage: https://github.com/lancaster-uni...
ARMmbed/yotta
diff --git a/yotta/test/test_sourceparse.py b/yotta/test/test_sourceparse.py index 0b7af6f..2c421ba 100644 --- a/yotta/test/test_sourceparse.py +++ b/yotta/test/test_sourceparse.py @@ -47,6 +47,7 @@ Git_Specs = [ '~1.2.3', '-1.2.3', 'branch-or-tag-name', + 'branch+or+tag+name', 'd5f5049', ]
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 1 }
0.18
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements/base.txt" ], "test_cm...
argcomplete==1.12.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 colorama==0.3.9 cryptography==44.0.2 Deprecated==1.2.18 exceptiongroup==1.2.2 future==1.0.0 hgapi==1.7.4 idna==3.10 iniconfig==2.1.0 intelhex==2.3.0 intervaltree==3.1.0 Jinja2==2.11.3 jsonpointer==1.14 jsonschema==2.6.0 MarkupSafe==3.0.2 mbed...
name: yotta channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11....
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_shorthandURLs", "yotta/test/test_sourceparse.py::TestParseModuleNameAndSpec::test_ShorthandRefs" ]
[]
[ "yotta/test/test_sourceparse.py::TestParseSourceURL::test_gitURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_githubURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_hgURLs", "yotta/test/test_sourceparse.py::TestParseSourceURL::test_invalid", "yotta/test/test_sourceparse.py::T...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.armmbed_1776_yotta-804
swerebench/sweb.eval.x86_64.armmbed_1776_yotta-804
ASFHyP3__hyp3-autorift-202
ca9bda5f0a8a5db47d0d83c825a9d447a6c4180e
2023-01-06 06:48:03
ca9bda5f0a8a5db47d0d83c825a9d447a6c4180e
diff --git a/CHANGELOG.md b/CHANGELOG.md index e092e35..a9108fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.10.4] + +### Fixed +* Landsat 7+...
Landsat 7 + 8 pairs may not be handled well Since we only look at the reference scene to [determine the platform](https://github.com/ASFHyP3/hyp3-autorift/blob/develop/hyp3_autorift/process.py#L319), we may have some issues with the secondary scene: - [x] L7 reference scene w/ a L8 secondary will attempt to apply the ...
ASFHyP3/hyp3-autorift
diff --git a/tests/test_process.py b/tests/test_process.py index eae954f..42d58d1 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1,5 +1,6 @@ import io from datetime import datetime +from pathlib import Path from re import match from unittest import mock from unittest.mock import MagicMock, patc...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 3 }
0.10
{ "env_vars": null, "env_yml_path": [ "environment.yml" ], "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y --no-install-recomm...
boto3 @ file:///home/conda/feedstock_root/build_artifacts/boto3_1743235439640/work botocore @ file:///home/conda/feedstock_root/build_artifacts/botocore_1743212919739/work Brotli @ file:///home/conda/feedstock_root/build_artifacts/brotli-split_1725267488082/work cached-property @ file:///home/conda/feedstock_root/build...
name: hyp3-autorift channels: - hyp3 - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - alsa-lib=1.2.8=h166bdaf_0 - aom=3.5.0=h27087fc_0 - attr=2.5.1=h166bdaf_1 - autorift=1.5.0=py39h06cf3d3...
[ "tests/test_process.py::test_apply_landsat_filtering" ]
[]
[ "tests/test_process.py::test_get_platform", "tests/test_process.py::test_get_lc2_stac_json_key", "tests/test_process.py::test_get_lc2_metadata", "tests/test_process.py::test_get_lc2_metadata_fallback", "tests/test_process.py::test_get_lc2_path", "tests/test_process.py::test_get_s2_metadata_not_found", "...
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASFHyP3__hyp3-autorift-49
cf8c6dadd1d4af9cb310a2eb470ac0c2e820c2ab
2021-01-19 18:15:27
cf8c6dadd1d4af9cb310a2eb470ac0c2e820c2ab
diff --git a/hyp3_autorift/geometry.py b/hyp3_autorift/geometry.py index 5b66d76..a2c6a13 100644 --- a/hyp3_autorift/geometry.py +++ b/hyp3_autorift/geometry.py @@ -2,19 +2,18 @@ import logging import os +from typing import Tuple import isce # noqa: F401 import isceobj import numpy as np from contrib.demUtil...
Get associated autoRIFT files from parameter shapefile Currently, we hardcode the set of needed files for processing: https://github.com/ASFHyP3/hyp3-autorift/blob/develop/hyp3_autorift/io.py#L47-L68 These however, at detailed in the new parameter shapefile and could be pulled from there instead to be more flexi...
ASFHyP3/hyp3-autorift
diff --git a/tests/conftest.py b/tests/conftest.py index b4399a0..6b44082 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,7 @@ import pytest from botocore.stub import Stubber -from hyp3_autorift.io import _s3_client, _s3_client_unsigned +from hyp3_autorift.io import _s3_client @pytest.fixture...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 4 }
0.3
{ "env_vars": null, "env_yml_path": [ "conda-env.yml" ], "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": true, "packages": "environment.yml", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y libgl1-mesa-glx u...
annotated-types==0.7.0 Authlib==1.3.2 autoRIFT==1.0.0 boto3 @ file:///home/conda/feedstock_root/build_artifacts/boto3_1733165740123/work boto3-stubs==1.37.23 botocore @ file:///home/conda/feedstock_root/build_artifacts/botocore_1736951971072/work botocore-stubs==1.37.23 Brotli @ file:///home/conda/feedstock_root/build_...
name: hyp3-autorift channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - alsa-lib=1.2.3.2=h166bdaf_0 - autorift=1.0.8=py38h82cb98a_2 - blosc=1.21.1=hd32f23e_0 - boost-cpp=1.74.0=...
[ "tests/test_geometry.py::test_pol_bounds_in_proj", "tests/test_io.py::test_find_jpl_dem" ]
[]
[ "tests/test_geometry.py::test_polygon_from_bbox", "tests/test_io.py::test_download_s3_file_requester_pays" ]
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASFHyP3__hyp3-sdk-152
b3e64fdef9d76d7abb6bd762ae1b8429ebd1e3f5
2021-11-19 18:14:31
938a41f4251c8246258a29a2904b445d0e28678a
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c340f0..55972fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,14 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.1](https://github.com/ASFHyP3/...
slicing a Batch returns a list Should return a Batch instead. ``` >>> import hyp3_sdk >>> hyp3 = hyp3_sdk.HyP3() >>> jobs = hyp3.find_jobs() >>> type(jobs) <class 'hyp3_sdk.jobs.Batch'> >>> len(jobs) 955 >>> type(jobs[3:10]) <class 'list'> ```
ASFHyP3/hyp3-sdk
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 35c409d..cdef7e5 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -228,60 +228,66 @@ def test_contains(get_mock_job): def test_delitem(): - j1 = Job.from_dict(SUCCEEDED_JOB) - j2 = Job.from_dict(FAILED_JOB) - batch = Batch([j1, j2]) + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 3 }
1.4
{ "env_vars": null, "env_yml_path": [ "environment.yml" ], "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "py...
anyio @ file:///home/conda/feedstock_root/build_artifacts/bld/rattler-build_anyio_1742243108/work argon2-cffi @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1733311059102/work argon2-cffi-bindings @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi-bindings_1725356560642/work arrow @ file:/...
name: hyp3-sdk channels: - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - anyio=4.9.0=pyh29332c3_0 - argon2-cffi=23.1.0=pyhd8ed1ab_1 - argon2-cffi-bindings=21.2.0=py39h8cd3c5a_5 - arrow=1.3....
[ "tests/test_jobs.py::test_getitem" ]
[]
[ "tests/test_jobs.py::test_job_attributes", "tests/test_jobs.py::test_job_dict_transforms", "tests/test_jobs.py::test_job_complete_succeeded_failed_running", "tests/test_jobs.py::test_job_expired", "tests/test_jobs.py::test_job_download_files", "tests/test_jobs.py::test_job_download_files_create_dirs", "...
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASFHyP3__hyp3-sdk-51
67e33235f7dc3b98241fe34d97a4fae58873590c
2020-12-07 19:19:41
56cfb700341a0de44ee0f2f3548d5ed6c534d659
diff --git a/hyp3_sdk/hyp3.py b/hyp3_sdk/hyp3.py index 7d90095..baf69f4 100644 --- a/hyp3_sdk/hyp3.py +++ b/hyp3_sdk/hyp3.py @@ -6,6 +6,7 @@ from urllib.parse import urljoin from requests.exceptions import HTTPError, RequestException +import hyp3_sdk from hyp3_sdk.exceptions import HyP3Error, ValidationError fro...
Add custom User Agent header to hyp3 api session e.g. `User-Agent: hyp3-sdk v0.1.2` so we can identify SDK-generated requests in the API access logs, separate from other requests made via `requests`.
ASFHyP3/hyp3-sdk
diff --git a/tests/test_hyp3.py b/tests/test_hyp3.py index 626ee05..9aa05e9 100644 --- a/tests/test_hyp3.py +++ b/tests/test_hyp3.py @@ -1,4 +1,3 @@ -import json from datetime import datetime, timedelta from urllib.parse import urljoin @@ -10,6 +9,18 @@ from hyp3_sdk import HyP3, Job hyp3_sdk.TESTING = True +@...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.3
{ "env_vars": null, "env_yml_path": [ "conda-env.yml" ], "install": "python -m pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": null, "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest -...
annotated-types==0.7.0 Authlib==1.5.1 babel @ file:///home/conda/feedstock_root/build_artifacts/babel_1738490167835/work backrefs @ file:///home/conda/feedstock_root/build_artifacts/backrefs_1740887580136/work boto3==1.37.23 boto3-stubs==1.37.23 botocore==1.37.23 botocore-stubs==1.37.23 Brotli @ file:///home/conda/feed...
name: hyp3-sdk channels: - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - babel=2.17.0=pyhd8ed1ab_0 - backrefs=5.8=pyhd8ed1ab_0 - brotli-python=1.1.0=py39hf88036b_2 - bzip2=1.0.8=h4bc722e_7 ...
[ "tests/test_hyp3.py::test_session_headers" ]
[]
[ "tests/test_hyp3.py::test_find_jobs", "tests/test_hyp3.py::test_get_job_by_id", "tests/test_hyp3.py::test_watch", "tests/test_hyp3.py::test_refresh", "tests/test_hyp3.py::test_submit_job_dict", "tests/test_hyp3.py::test_submit_autorift_job", "tests/test_hyp3.py::test_submit_rtc_job", "tests/test_hyp3....
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASFHyP3__hyp3-sdk-53
56cfb700341a0de44ee0f2f3548d5ed6c534d659
2020-12-08 01:14:31
56cfb700341a0de44ee0f2f3548d5ed6c534d659
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8905268..ddcacaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning...
Batch constructor should create an empty batch by default Currently, calling `jobs = Batch()` raises `TypeError: __init__() missing 1 required positional argument: 'jobs'`. To construct an empty batch, the user has to write `jobs = Batch([])`. It would be more intuitive if this were the default behavior without hav...
ASFHyP3/hyp3-sdk
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 6d25cec..400f2d8 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -119,8 +119,10 @@ def test_job_download_files(tmp_path, get_mock_job): def test_batch_len(): - with pytest.warns(UserWarning): - batch = Batch([]) + batch = Batch() +...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 2 }
0.3
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "responses" ], "pre_install": [], "python": "3.9", "reqs_path": [ "requi...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 -e git+https://github.com/ASFHyP3/hyp3-sdk.git@56cfb700341a0de44ee0f2f3548d5ed6c534d659#egg=hyp3_sdk idna==3.10 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov==6.0.0 python-dateutil==2.9.0.post0 PyYAML==6.0.2 req...
name: hyp3-sdk channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_jobs.py::test_batch_len" ]
[]
[ "tests/test_jobs.py::test_job_dict_transforms", "tests/test_jobs.py::test_job_complete_succeeded_failed_running", "tests/test_jobs.py::test_job_expired", "tests/test_jobs.py::test_job_download_files", "tests/test_jobs.py::test_batch_add", "tests/test_jobs.py::test_batch_complete_succeeded", "tests/test_...
[]
BSD 3-Clause "New" or "Revised" License
swerebench/sweb.eval.x86_64.asfhyp3_1776_hyp3-sdk-53
swerebench/sweb.eval.x86_64.asfhyp3_1776_hyp3-sdk-53
ASFHyP3__hyp3-sdk-70
6e4004e372771dc444bf5f334f1f8e25a39313bf
2021-02-15 23:10:57
1fec8b5ae4c2cf80392cc6e27a52123e72e320e0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef243f..620eb3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning...
use fewer requests when submitting multiple jobs When submitting large jobs, multiple api request are created, would be nice for a way to aggrigate jobs into one request
ASFHyP3/hyp3-sdk
diff --git a/tests/test_hyp3.py b/tests/test_hyp3.py index 383ac87..743fbac 100644 --- a/tests/test_hyp3.py +++ b/tests/test_hyp3.py @@ -85,17 +85,88 @@ def test_refresh(get_mock_job): @responses.activate -def test_submit_job_dict(get_mock_job): - job = get_mock_job() +def test_submit_prepared_jobs(get_mock_job...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 1 }, "num_modified_files"...
0.4
{ "env_vars": null, "env_yml_path": [ "conda-env.yml" ], "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": null, "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", ...
annotated-types==0.7.0 Authlib==1.5.1 boto3==1.37.23 boto3-stubs==1.37.23 botocore==1.37.23 botocore-stubs==1.37.23 Brotli @ file:///home/conda/feedstock_root/build_artifacts/brotli-split_1725267488082/work certifi @ file:///home/conda/feedstock_root/build_artifacts/certifi_1739515848642/work/certifi cffi @ file:///hom...
name: hyp3-sdk channels: - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - brotli-python=1.1.0=py39hf88036b_2 - bzip2=1.0.8=h4bc722e_7 - ca-certificates=2025.1.31=hbcca054_0 - certifi=2025.1....
[ "tests/test_hyp3.py::test_submit_prepared_jobs", "tests/test_hyp3.py::test_prepare_autorift_job", "tests/test_hyp3.py::test_prepare_rtc_job", "tests/test_hyp3.py::test_prepare_insar_job", "tests/test_hyp3.py::test_submit_autorift_job", "tests/test_hyp3.py::test_submit_rtc_job", "tests/test_hyp3.py::test...
[]
[ "tests/test_hyp3.py::test_session_headers", "tests/test_hyp3.py::test_find_jobs", "tests/test_hyp3.py::test_get_job_by_id", "tests/test_hyp3.py::test_watch", "tests/test_hyp3.py::test_refresh", "tests/test_hyp3.py::test_my_info", "tests/test_hyp3.py::test_check_quota" ]
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASFHyP3__hyp3-sdk-71
b8011c957ce5759bd64007c2116d202fdb5a6dae
2021-02-16 00:37:00
1fec8b5ae4c2cf80392cc6e27a52123e72e320e0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 620eb3f..38529ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - `HyP3.prepare_insar_job` ### Changed +- HyP3 `Batch` objects are now iterable - HyP3 submit methods will always...
Batch should be iterable Attempting to iterate over a Batch object currently fails with `TypeError: 'Batch' object is not iterable`. ``` > import hyp3_sdk > api = hyp3_sdk.HyP3() > jobs = api.find_jobs(name='refactor') > sizes = [job['files'][0]['size'] for job in jobs] Traceback (most recent call last): Fil...
ASFHyP3/hyp3-sdk
diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 400f2d8..dab034b 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -118,17 +118,6 @@ def test_job_download_files(tmp_path, get_mock_job): assert contents == 'foobar2' -def test_batch_len(): - batch = Batch() - assert len(batch) == 0 - -...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
0.4
{ "env_vars": null, "env_yml_path": [ "conda-env.yml" ], "install": "pip install -e .[develop]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pyte...
boto3==1.37.23 boto3-stubs==1.37.23 botocore==1.37.23 botocore-stubs==1.37.23 Brotli @ file:///home/conda/feedstock_root/build_artifacts/brotli-split_1725267488082/work certifi @ file:///home/conda/feedstock_root/build_artifacts/certifi_1739515848642/work/certifi cffi @ file:///home/conda/feedstock_root/build_artifacts...
name: hyp3-sdk channels: - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - brotli-python=1.1.0=py39hf88036b_2 - bzip2=1.0.8=h4bc722e_7 - ca-certificates=2025.1.31=hbcca054_0 - certifi=2025.1....
[ "tests/test_jobs.py::test_batch_iter" ]
[]
[ "tests/test_jobs.py::test_job_dict_transforms", "tests/test_jobs.py::test_job_complete_succeeded_failed_running", "tests/test_jobs.py::test_job_expired", "tests/test_jobs.py::test_job_download_files", "tests/test_jobs.py::test_batch_add", "tests/test_jobs.py::test_batch_len", "tests/test_jobs.py::test_b...
[]
BSD 3-Clause "New" or "Revised" License
swerebench/sweb.eval.x86_64.asfhyp3_1776_hyp3-sdk-71
swerebench/sweb.eval.x86_64.asfhyp3_1776_hyp3-sdk-71
ASFHyP3__hyp3-sdk-73
1fec8b5ae4c2cf80392cc6e27a52123e72e320e0
2021-02-17 01:04:42
1fec8b5ae4c2cf80392cc6e27a52123e72e320e0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 71619ef..d83763d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). submit one or more prepared job dictionaries. - `Job.download_files` and `Batch.download_files` will (optionally) create...
_get_job_by_id shouldn't be private https://github.com/ASFHyP3/hyp3-sdk/blob/develop/hyp3_sdk/hyp3.py#L72 Turns out it's pretty useful generally.
ASFHyP3/hyp3-sdk
diff --git a/tests/test_hyp3.py b/tests/test_hyp3.py index 743fbac..ced9e4c 100644 --- a/tests/test_hyp3.py +++ b/tests/test_hyp3.py @@ -52,7 +52,7 @@ def test_get_job_by_id(get_mock_job): job = get_mock_job() api = HyP3() responses.add(responses.GET, urljoin(api.url, f'/jobs/{job.job_id}'), json=job.to_...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 2 }
0.4
{ "env_vars": null, "env_yml_path": [ "conda-env.yml" ], "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "environment.yml", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest -...
boto3==1.37.23 boto3-stubs==1.37.23 botocore==1.37.23 botocore-stubs==1.37.23 Brotli @ file:///home/conda/feedstock_root/build_artifacts/brotli-split_1725267488082/work certifi @ file:///home/conda/feedstock_root/build_artifacts/certifi_1739515848642/work/certifi cffi @ file:///home/conda/feedstock_root/build_artifacts...
name: hyp3-sdk channels: - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - brotli-python=1.1.0=py39hf88036b_2 - bzip2=1.0.8=h4bc722e_7 - ca-certificates=2025.1.31=hbcca054_0 - certifi=2025.1....
[ "tests/test_hyp3.py::test_get_job_by_id" ]
[]
[ "tests/test_hyp3.py::test_session_headers", "tests/test_hyp3.py::test_find_jobs", "tests/test_hyp3.py::test_watch", "tests/test_hyp3.py::test_refresh", "tests/test_hyp3.py::test_submit_prepared_jobs", "tests/test_hyp3.py::test_prepare_autorift_job", "tests/test_hyp3.py::test_prepare_rtc_job", "tests/t...
[]
BSD 3-Clause "New" or "Revised" License
null
null
ASPP__pelita-412
002ae9e325b1608a324d02749205cd70b4f6da2b
2017-08-29 08:38:58
e3fc4b8a42f874925aa619a06d2a16d5b189ba24
diff --git a/pelita/player/__init__.py b/pelita/player/__init__.py index cf429bca..bedaae24 100644 --- a/pelita/player/__init__.py +++ b/pelita/player/__init__.py @@ -1,7 +1,7 @@ from .base import AbstractTeam, SimpleTeam, AbstractPlayer -from .base import (StoppingPlayer, TestPlayer, SpeakingPlayer, +from .base i...
pytest warns about our TestPlayer WC1 /tmp/group1/test/test_drunk_player.py cannot collect test class 'TestPlayer' because it has a __init__ constructor Maybe rename it?
ASPP/pelita
diff --git a/test/test_game_master.py b/test/test_game_master.py index 2b164441..e943d70b 100644 --- a/test/test_game_master.py +++ b/test/test_game_master.py @@ -5,7 +5,7 @@ import collections from pelita.datamodel import CTFUniverse from pelita.game_master import GameMaster, ManhattanNoiser, PlayerTimeout -from p...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 2 }
0.2
{ "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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
attrs==22.2.0 certifi==2021.5.30 coverage==6.2 importlib-metadata==4.8.3 iniconfig==1.1.1 numpy==1.19.5 packaging==21.3 -e git+https://github.com/ASPP/pelita.git@002ae9e325b1608a324d02749205cd70b4f6da2b#egg=pelita pluggy==1.0.0 py==1.11.0 pyparsing==3.1.4 pytest==7.0.1 pytest-cov==4.0.0 PyYAML==6.0.1 pyzmq==25.1.2 toml...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - lib...
[ "test/test_game_master.py::TestGameMaster::test_team_names", "test/test_game_master.py::TestGameMaster::test_team_names_in_simpleteam", "test/test_game_master.py::TestGameMaster::test_too_few_registered_teams", "test/test_game_master.py::TestGameMaster::test_too_many_registered_teams", "test/test_game_maste...
[]
[]
[]
BSD License
null
null
ASPP__pelita-619
8c4b83c5fcfd1b748af5cfe8b0b09e93ab5a6406
2019-07-22 15:14:21
c94d1b0f26600f5982c95b095666fbddea993787
diff --git a/pelita/layout.py b/pelita/layout.py index 1ad10138..6fde0227 100644 --- a/pelita/layout.py +++ b/pelita/layout.py @@ -9,12 +9,6 @@ except SyntaxError as err: print("Invalid syntax in __layouts module. Pelita will not be able to use built-in layouts.") print(err) -class Layout: - pass - -clas...
parse_layout should fail when a bot is defined on different coordinates from pelita.layout import parse_layout layout = """ ###### #000.# #.111# ###### """ print(parse_layout(layout)['bots']) [(3, 1), (4, 2), None, None] should raise `ValueError`
ASPP/pelita
diff --git a/test/test_layout.py b/test/test_layout.py index dfca69dd..e8c7d4b7 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -138,6 +138,41 @@ def test_combined_layouts_empty_lines(): from_single = parse_single_layout(layouts) assert from_combined == from_single +def test_duplicate_bots_for...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 2 }, "num_modified_files"...
0.9
{ "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-cov", "codecov", "coveralls", "pytest" ], "pre_install": [], "python": "3.7", "reqs_path": [ ...
certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 codecov==2.1.13 coverage==6.5.0 coveralls==3.3.1 docopt==0.6.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 numpy==1.21.6 packaging==24.0 -e git+https://github.com/ASPP/pelita.git@8c4b83c5fcfd1b748af5cfe8...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - lib...
[ "test/test_layout.py::test_duplicate_bots_forbidden", "test/test_layout.py::test_duplicate_bots_forbidden_multiple", "test/test_layout.py::test_enemy_positions[\\n", "test/test_layout.py::test_layout_for_team", "test/test_team.py::test_load", "test/test_team.py::test_concat", "test/test_team.py::test_lo...
[]
[ "test/test_layout.py::test_get_available_layouts", "test/test_layout.py::test_get_layout_by_name", "test/test_layout.py::test_get_random_layout", "test/test_layout.py::test_get_random_layout_returns_correct_layout", "test/test_layout.py::test_not_enclosed_by_walls", "test/test_layout.py::test_illegal_char...
[]
BSD License
null
null
ASPP__pelita-635
ffe76f4adeca90e7c9e4542ab61a1deb5081408f
2019-08-01 19:40:51
c94d1b0f26600f5982c95b095666fbddea993787
diff --git a/pelita/game.py b/pelita/game.py index 5789a9b3..2dd68761 100644 --- a/pelita/game.py +++ b/pelita/game.py @@ -275,7 +275,7 @@ def setup_game(team_specs, *, layout_dict, max_rounds=300, layout_name="", seed= kills = [0]*4, # List of boolean flags weather bot has been eaten since its last...
rename Bot.has_respawned What about renaming `Bot.has_respawned` to `Bot.was_killed`? The word _respawned_ is totally meaningless for most non-hardcore programmers.
ASPP/pelita
diff --git a/test/test_game.py b/test/test_game.py index 52f998e8..5f41ce0f 100644 --- a/test/test_game.py +++ b/test/test_game.py @@ -884,7 +884,7 @@ def test_play_turn_move(): "score": 0, "kills":[0]*4, "deaths": [0]*4, - "bot_eaten": [False]*4, + "bot_was_killed": [False]*4, ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files"...
0.9
{ "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", "pytest-cov" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi coverage==7.2.7 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig @ file:///home/l...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-cor...
[ "test/test_game.py::test_play_turn_move", "test/test_game.py::test_apply_move_resets_bot_was_killed[bot_was_killed_flags0-0]", "test/test_game.py::test_apply_move_resets_bot_was_killed[bot_was_killed_flags0-1]", "test/test_game.py::test_apply_move_resets_bot_was_killed[bot_was_killed_flags0-2]", "test/test_...
[]
[ "test/test_game.py::test_initial_positions_basic", "test/test_game.py::test_initial_positions[\\n", "test/test_game.py::test_no_initial_positions_possible[\\n", "test/test_game.py::test_initial_positions_same_in_layout_random[layout_t0]", "test/test_game.py::test_initial_positions_same_in_layout_random[layo...
[]
BSD License
null
null
ASPP__pelita-655
1108fc71cdc9a7eeb4563149e9821255d6f56bf3
2019-08-08 14:56:42
c94d1b0f26600f5982c95b095666fbddea993787
otizonaizit: and you would show `E` when the position is not noisy? This seems a good idea! Have you adapted also the layout_from_str function to understand the new character? Debilski: > On 8. Aug 2019, at 17:42, Tiziano Zito <notifications@github.com> wrote: > > and you would show E when the position is not noisy?...
diff --git a/pelita/layout.py b/pelita/layout.py index 369da014..df604a43 100644 --- a/pelita/layout.py +++ b/pelita/layout.py @@ -117,8 +117,9 @@ def parse_layout(layout_str, allow_enemy_chars=False): In this case, bot '0' and bot '2' are on top of each other at position (1,1) If `allow_enemy_chars` is Tru...
print(bot) should show which enemies are noisy This will hopefully avoid confusion. One remark: since we got rid of set_initial in the new-style API, the teams never see their enemies sitting unnoised on their initial positions, which has been a nice (and easy) starting point for filtering. Question: Do we want to b...
ASPP/pelita
diff --git a/test/test_layout.py b/test/test_layout.py index 0039b6e2..6b15bf7d 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -402,6 +402,14 @@ def test_enemy_raises(): # # #### """, [None, None]), # this will set both to None + (""" + #### + # E# + ##...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 3 }
0.9
{ "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", "coveralls" ], "pre_install": [ "apt-get update", "apt-get in...
certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 codecov==2.1.13 coverage==6.5.0 coveralls==3.3.1 docopt==0.6.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 networkx==2.6.3 numpy==1.21.6 packaging==24.0 -e git+https://github.com/ASPP/pelita.git@1108fc71...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - lib...
[ "test/test_layout.py::test_enemy_positions[\\n", "test/test_utils.py::test_setup_test_game[True]", "test/test_utils.py::test_setup_test_game[False]" ]
[]
[ "test/test_layout.py::test_get_available_layouts", "test/test_layout.py::test_get_layout_by_name", "test/test_layout.py::test_get_random_layout", "test/test_layout.py::test_get_random_layout_returns_correct_layout", "test/test_layout.py::test_not_enclosed_by_walls", "test/test_layout.py::test_illegal_char...
[]
BSD License
null
null
ASPP__pelita-696
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
2019-10-09 20:08:47
98d481043218149304c663fbc521bad30a8b97d1
diff --git a/pelita/layout.py b/pelita/layout.py index e5797adc..66fa2ebd 100644 --- a/pelita/layout.py +++ b/pelita/layout.py @@ -545,9 +545,9 @@ def layout_for_team(layout, is_blue=True, is_noisy=(False, False)): 'is_noisy' : is_noisy, } -def layout_agnostic(layout_for_team, is_blue=True): - """ Co...
layout_agnostic needs tests and fixes Currently broken. https://github.com/ASPP/pelita/blob/2f17db5355b4dffae8a130ede549ab869b2f1ce2/pelita/layout.py#L548-L566
ASPP/pelita
diff --git a/test/test_layout.py b/test/test_layout.py index ff30905a..4d3d8638 100644 --- a/test/test_layout.py +++ b/test/test_layout.py @@ -454,3 +454,38 @@ def test_layout_for_team(): with pytest.raises(ValueError): layout_for_team(parse_layout(red1)) + +def test_layout_agnostic(): + """ + Tes...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 1 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "pytest-cov", "codecov", "coveralls", "pytest" ], "pre_install": [], "python": "3.7", "reqs_path": null, "test_cmd": "p...
certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 codecov==2.1.13 coverage==6.5.0 coveralls==3.3.1 docopt==0.6.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 networkx==2.6.3 numpy==1.21.6 packaging==24.0 -e git+https://github.com/ASPP/pelita.git@557c3a75...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - lib...
[ "test/test_layout.py::test_layout_agnostic" ]
[]
[ "test/test_layout.py::test_get_available_layouts", "test/test_layout.py::test_get_layout_by_name", "test/test_layout.py::test_get_random_layout", "test/test_layout.py::test_get_random_layout_returns_correct_layout", "test/test_layout.py::test_not_enclosed_by_walls", "test/test_layout.py::test_illegal_char...
[]
BSD License
swerebench/sweb.eval.x86_64.aspp_1776_pelita-696
swerebench/sweb.eval.x86_64.aspp_1776_pelita-696
ASPP__pelita-708
8c47e30cdf8b6dabf173ebfe71170e36b2aaa35e
2020-06-25 11:23:34
98d481043218149304c663fbc521bad30a8b97d1
codecov-commenter: # [Codecov](https://codecov.io/gh/ASPP/pelita/pull/708?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ASPP) Report > Merging [#708](https://codecov.io/gh/ASPP/pelita/pull/708?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=com...
diff --git a/check_layout_consistency.py b/check_layout_consistency.py index f3e873c6..cb6b9689 100644 --- a/check_layout_consistency.py +++ b/check_layout_consistency.py @@ -1,36 +1,11 @@ """Detect if a layout contains "chambers" with food""" import sys -import networkx +import networkx as nx from pelita.layout i...
Add width and height to the layout dictionary As it is needed in several places, it makes sense to just stick two additional keys into the layout dictionary. Fixing this bug also means getting rid of all `max(walls)[0]+1`, `max(walls)[1]+1`, `sorted(walls)[-1][0]`, `sorted(walls)[-1][1]` spread in the pelita and pelita...
ASPP/pelita
diff --git a/test/test_filter_gamestates.py b/test/test_filter_gamestates.py index a12fcd27..2110f957 100644 --- a/test/test_filter_gamestates.py +++ b/test/test_filter_gamestates.py @@ -85,10 +85,11 @@ def test_noiser_no_negative_coordinates(bot_id): gamestate = make_gamestate() old_bots = gamestate["bots"][...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 2 }, "num_modified_files": 10 }
2.0
{ "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-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "r...
coverage==7.8.0 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work networkx==3.2.1 numpy==2.0.2 packaging @ file:///croot/packaging_1734472117206/work -e git+https://github.com/ASPP/pelita.git@8c47e30cdf8b6dabf173ebfe71170e36b2aaa35e#...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_i...
[ "test/test_filter_gamestates.py::test_noiser_no_negative_coordinates[0]", "test/test_filter_gamestates.py::test_noiser_no_negative_coordinates[1]", "test/test_filter_gamestates.py::test_noiser_no_negative_coordinates[2]", "test/test_filter_gamestates.py::test_noiser_no_negative_coordinates[3]", "test/test_f...
[]
[ "test/test_filter_gamestates.py::test_noiser_noising_odd_turn1", "test/test_filter_gamestates.py::test_noiser_noising_odd_turn3", "test/test_filter_gamestates.py::test_noiser_noising_even_turn0", "test/test_filter_gamestates.py::test_noiser_noising_even_turn2", "test/test_filter_gamestates.py::test_noiser_n...
[]
BSD License
null
null
ASPP__pelita-798
245a9ca445eccda07998cb58fbee340308d425a7
2024-05-30 16:39:47
6e70daf7313ca878e3a46240ca6a20811024e9db
Debilski: wow. Fixing these tests took way longer than expected …
diff --git a/pelita/game.py b/pelita/game.py index 6cbacc56..efc51f3a 100644 --- a/pelita/game.py +++ b/pelita/game.py @@ -555,7 +555,8 @@ def prepare_bot_state(game_state, idx=None): 'bot_was_killed': game_state['bot_was_killed'][own_team::2], 'error_count': len(game_state['errors'][own_team]), ...
make the cumulative time counter available to clients The `Bot` object should have an attribute `time` where the cumulative time for the team shown in the GUI is made available. This is useful for example when benchmarking different strategies. There's no way at the moment to programmatically access that value, as far ...
ASPP/pelita
diff --git a/test/test_network.py b/test/test_network.py index 701d5307..9fcaca7f 100644 --- a/test/test_network.py +++ b/test/test_network.py @@ -88,6 +88,7 @@ def test_simpleclient(zmq_context): 'error_count': 0, 'food': [(1, 1)], 'name': 'dummy', + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 3 }
2.4
{ "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-cov", "pytest-timestamper", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], ...
click==8.1.8 coverage==7.8.0 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work ifaddr==0.2.0 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work markdown-it-py==3.0.0 mdurl==0.1.2 networkx==3.2.1 numpy==2.0.2 packaging @ file:///croot/packaging_1734472117206/work -e git+https://github...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_i...
[ "test/test_team.py::test_team_time" ]
[]
[ "test/test_network.py::test_bind_socket_success", "test/test_network.py::test_bind_socket_fail", "test/test_network.py::test_simpleclient", "test/test_team.py::TestStoppingTeam::test_stopping", "test/test_team.py::test_track_and_kill_count", "test/test_team.py::test_eaten_flag_kill[0]", "test/test_team....
[]
BSD License
swerebench/sweb.eval.x86_64.aspp_1776_pelita-798
swerebench/sweb.eval.x86_64.aspp_1776_pelita-798
ASPP__pelita-815
6e70daf7313ca878e3a46240ca6a20811024e9db
2024-08-07 18:48:50
6e70daf7313ca878e3a46240ca6a20811024e9db
diff --git a/contrib/ci_engine.py b/contrib/ci_engine.py index c1cb84d0..f44194f1 100755 --- a/contrib/ci_engine.py +++ b/contrib/ci_engine.py @@ -120,11 +120,15 @@ class CI_Engine: self.dbwrapper.add_player(pname, new_hash) for player in self.players: + path = player['path'] + ...
Add team name in CI table Remote players only show their team names making comparisons harder. Conversely, the remote player should/could also include the spec name.
ASPP/pelita
diff --git a/contrib/test_ci_engine.py b/contrib/test_ci_engine.py index 998d7a4c..52c2b811 100644 --- a/contrib/test_ci_engine.py +++ b/contrib/test_ci_engine.py @@ -83,6 +83,17 @@ def test_get_player_hash(db_wrapper): assert db_wrapper.get_player_hash('p1') == 'h1' assert db_wrapper.get_player_hash('p2') ==...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 1 }
2.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "numpy pyzmq PyYAML networkx pytest>=4 zeroconf rich click", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test...
async-timeout @ file:///croot/async-timeout_1732661977001/work click @ file:///croot/click_1698129812380/work exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work ifaddr @ file:///home/conda/feedstock_root/build_artifacts/ifaddr_1734770417027/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - async-timeout=5.0.1=py39h06a4308_0 - blas=1.0=openblas - ca-certificates=2025.2.25=h06a4308_0 - click=8.1.7=py39...
[ "contrib/test_ci_engine.py::test_get_team_name" ]
[]
[ "contrib/test_ci_engine.py::test_foreign_keys_enabled", "contrib/test_ci_engine.py::test_add_player", "contrib/test_ci_engine.py::test_remove_player", "contrib/test_ci_engine.py::test_add_remove_weirdly_named_player", "contrib/test_ci_engine.py::test_get_players", "contrib/test_ci_engine.py::test_get_resu...
[]
BSD License
null
null
ASPP__pelita-863
ab9217f298fa4897b06e5e9e9e7fad7e29ba7114
2025-03-13 17:07:06
ab9217f298fa4897b06e5e9e9e7fad7e29ba7114
diff --git a/pelita/team.py b/pelita/team.py index a3ef1138..aea97327 100644 --- a/pelita/team.py +++ b/pelita/team.py @@ -726,6 +726,9 @@ class Bot: out.write(footer) return out.getvalue() + def __repr__(self): + return f'<Bot: {self.char} ({"blue" if self.is_blue else "red"}), {s...
Better Bot repr For reference, this is the current `repr(bot)`: <pelita.team.Bot object at 0x102778b90> This is `str(bot)`: ``` Playing on red side. Current turn: 1. Bot: y. Round: 1, score: 0:0. timeouts: 0:0 ################################ #. . #. . . #.y# # # #### ### . # . .x# # ...
ASPP/pelita
diff --git a/test/test_team.py b/test/test_team.py index f6db4eb9..babe7ccc 100644 --- a/test/test_team.py +++ b/test/test_team.py @@ -695,3 +695,34 @@ def test_bot_html_repr(): # check that all is good assert state['fatal_errors'] == [[], []] + +def test_bot_repr(): + test_layout = """ + ########...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 1 }
2.5
{ "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-timestamper flit sphinx", "pytest" ], "pre_install": [ "python -m pip install --up...
alabaster==1.0.0 babel==2.17.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 coverage==7.8.0 docutils==0.21.2 flit==3.12.0 flit_core==3.12.0 idna==3.10 ifaddr==0.2.0 imagesize==1.4.1 iniconfig==2.1.0 Jinja2==3.1.6 markdown-it-py==3.0.0 MarkupSafe==3.0.2 mdurl==0.1.2 networkx==3.4.2 numpy==2.2.4 packaging==2...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=...
[ "test/test_team.py::test_bot_repr" ]
[]
[ "test/test_team.py::TestStoppingTeam::test_stopping", "test/test_team.py::test_track_and_kill_count", "test/test_team.py::test_eaten_flag_kill[0]", "test/test_team.py::test_eaten_flag_kill[1]", "test/test_team.py::test_eaten_flag_kill[2]", "test/test_team.py::test_eaten_flag_kill[3]", "test/test_team.py...
[]
BSD License
swerebench/sweb.eval.x86_64.aspp_1776_pelita-863
swerebench/sweb.eval.x86_64.aspp_1776_pelita-863
ASPP__pelita-875
68af15d8d4199882d32bb4ede363195e2c5b5a99
2025-04-28 23:00:41
68af15d8d4199882d32bb4ede363195e2c5b5a99
diff --git a/pelita/utils.py b/pelita/utils.py index c5bdf54c..1f3bec36 100644 --- a/pelita/utils.py +++ b/pelita/utils.py @@ -104,7 +104,7 @@ def run_background_game(*, blue_move, red_move, layout=None, max_rounds=300, see if layout is None: layout_dict = generate_maze(rng=rng) else: - layout...
run_background_game breaks when layout= is passed ``` def test_run_background_game_with_layout(): test_layout = ( """ ################## #a#. . # . # #b##### #####x# # . # . .#y# ################## """) result = utils.run_background_game(blue_move=stopping_play...
ASPP/pelita
diff --git a/test/test_utils.py b/test/test_utils.py index 10118cbc..a06bde11 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -112,6 +112,38 @@ def test_run_background_game(): 'draw': True } +def test_run_background_game_with_layout(): + test_layout = ( + """ ################## + ...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
2.5
{ "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-cov", "pytest-timestamper", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], ...
alabaster==1.0.0 babel==2.17.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 coverage==7.8.0 docutils==0.21.2 flit==3.12.0 flit_core==3.12.0 idna==3.10 ifaddr==0.2.0 imagesize==1.4.1 iniconfig==2.1.0 Jinja2==3.1.6 markdown-it-py==3.0.0 MarkupSafe==3.0.2 mdurl==0.1.2 networkx==3.4.2 numpy==2.2.4 packaging==2...
name: pelita channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=...
[ "test/test_utils.py::test_run_background_game_with_layout" ]
[]
[ "test/test_utils.py::test_default_rng", "test/test_utils.py::test_default_rng_init_self", "test/test_utils.py::test_default_rng_init_none", "test/test_utils.py::test_setup_test_game[True]", "test/test_utils.py::test_setup_test_game[False]", "test/test_utils.py::test_setup_test_game_incomplete_noisy_dict[T...
[]
BSD License
swerebench/sweb.eval.x86_64.aspp_1776_pelita-875
swerebench/sweb.eval.x86_64.aspp_1776_pelita-875
AVEgame__AVE-108
29c1a6f2f58198e3af2bde3b457af6cf8053b6af
2020-07-04 20:53:39
f7eb0efebe81657e15d91310c132658859195ff6
diff --git a/ave/components/numbers.py b/ave/components/numbers.py index 19fe14d..e321b64 100644 --- a/ave/components/numbers.py +++ b/ave/components/numbers.py @@ -10,6 +10,10 @@ class Number: """Get the value of the Number.""" raise NotImplementedError() + def get_all_variables(self): + ...
Write code to run detailed checks that a game works Put this in `ave.test`. It can then be used by the AVE pytest tests, and for AVEgame/AVE-usergames#2
AVEgame/AVE
diff --git a/ave/test/__init__.py b/ave/test/__init__.py new file mode 100644 index 0000000..d09c7cc --- /dev/null +++ b/ave/test/__init__.py @@ -0,0 +1,2 @@ +"""Code used to test games.""" +from .game_validation import check_game # noqa: F401 diff --git a/ave/test/error_handlers.py b/ave/test/error_handlers.py new fi...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 3, "test_score": 1 }, "num_modified_files"...
1.3
{ "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", "flake8", "pydocstyle" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3...
-e git+https://github.com/AVEgame/AVE.git@29c1a6f2f58198e3af2bde3b457af6cf8053b6af#egg=avegame exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work flake8==7.2.0 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work mccabe==0.7.0 packaging @ file:///croot/packaging_1734472117206/work plugg...
name: AVE channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_impl...
[ "test/test_games.py::test_games_for_errors[/AVE/test/../games/test.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/tea.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/make.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/Moscow.ave]", "test/test_...
[ "test/test_games.py::test_game_library", "test/test_games.py::test_load_game_from_library" ]
[ "test/test_games.py::test_version_checking[/AVE/test/../test/games/hidden_test.ave]" ]
[]
MIT License
null
null
AVEgame__AVE-113
b39a5ed00692e456e4d2533cde44e46830cc90a2
2020-07-05 09:15:50
62be6f46cfe33504f841bfe2b74338ccc7554447
diff --git a/ave/ave.py b/ave/ave.py index 52fb295..cb4a94d 100644 --- a/ave/ave.py +++ b/ave/ave.py @@ -135,16 +135,12 @@ class AVE: A list of the title, author and local url for each game. """ try: - the_json = load_library_json() + library = load_library_json() ...
Check that running AVE version is high enough to play library games I think I already did this, but needs testing.
AVEgame/AVE
diff --git a/test/test_games.py b/test/test_games.py index 21b63bb..dad232b 100644 --- a/test/test_games.py +++ b/test/test_games.py @@ -1,7 +1,7 @@ import pytest import os from ave import config, AVE, exceptions -from ave import load_game_from_file, load_game_from_library +from ave import load_game_from_file from ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 0 }, "num_modified_files"...
1.9
{ "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" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line ...
-e git+https://github.com/AVEgame/AVE.git@b39a5ed00692e456e4d2533cde44e46830cc90a2#egg=avegame exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 tomli==2.2.1
name: AVE channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2....
[ "test/test_library.py::test_game_library", "test/test_library.py::test_load_game_from_library" ]
[]
[ "test/test_games.py::test_version_checking[/AVE/test/../test/games/hidden_test.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/test.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/make.ave]", "test/test_games.py::test_games_for_errors[/AVE/test/../games/Moscow.ave]", ...
[]
MIT License
null
null