instance_id
stringlengths
14
53
repo
stringlengths
10
49
base_commit
stringlengths
40
40
patch
stringlengths
332
2.26M
language
stringclasses
1 value
non_code_patch
stringclasses
1 value
test_patch
stringlengths
0
21.5M
created_at
stringlengths
26
26
problem_statement
stringlengths
5
24.6k
hints_text
stringlengths
0
44.9k
version
stringclasses
1 value
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
stringlengths
19
71.6k
PASS_TO_PASS
stringlengths
2
807k
FAIL_TO_FAIL
stringlengths
2
43.9k
license
dict
vispy__jupyter_rfb-12
vispy/jupyter_rfb
dee4c241e29ec0f2086eb3d61c639d078a8d5bff
diff --git a/examples/visibility_check.ipynb b/examples/visibility_check.ipynb new file mode 100644 index 0000000..6356ee2 --- /dev/null +++ b/examples/visibility_check.ipynb @@ -0,0 +1,194 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "3a254e70", + "metadata": {}, + "source": [ + "# Visibility ...
python
diff --git a/tests/test_widget.py b/tests/test_widget.py index a056505..d5059ce 100644 --- a/tests/test_widget.py +++ b/tests/test_widget.py @@ -22,6 +22,7 @@ class MyRFB(RemoteFrameBuffer): def __init__(self): super().__init__() self.frame_feedback = {} + self.has_visible_views = True ...
2021-09-24T10:23:14+00:00Z
Pause frame-sending when canvas is not visible If a canvas is scrolled out of view, there is no need to send frames to it. Implementing this could safe valuable bandwidth for animated figures.
Note that there can be multiple canvases ...
0.0.1-alpha
38804c65ab6b831a679d6bd5a10e253d26e70805
["tests.test_widget::test_has_visible_views"]
["tests.test_png::test_writing", "tests.test_png::test_writing_failures", "tests.test_utils::test_output_context", "tests.test_utils::test_snapshot", "tests.test_widget::test_widget_frames_and_stats_1", "tests.test_widget::test_widget_frames_and_stats_3", "tests.test_widget::test_get_frame_can_be_none", "tests.test_wid...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
maxfischer2781__asyncstdlib-28
maxfischer2781/asyncstdlib
e9d9cba5c1d4b896b6a11a83a20310d7eaf10fcf
diff --git a/asyncstdlib/__init__.py b/asyncstdlib/__init__.py index 8a39c89..a44512a 100644 --- a/asyncstdlib/__init__.py +++ b/asyncstdlib/__init__.py @@ -33,7 +33,7 @@ from .itertools import ( zip_longest, groupby, ) -from .asynctools import borrow, scoped_iter +from .asynctools import borrow, scoped_iter...
python
diff --git a/unittests/test_asynctools.py b/unittests/test_asynctools.py index 7897f98..f54afa6 100644 --- a/unittests/test_asynctools.py +++ b/unittests/test_asynctools.py @@ -136,3 +136,19 @@ async def test_scoped_iter_misuse(): async def test_borrow_misuse(): with pytest.raises(TypeError): a.borrow([1...
2021-02-23T22:32:03+00:00Z
Add helper to convert `for (await T)` into `async for T` As suggested in #27 a helper to convert an "iterable of async" into an "async iterator" would allow applying various functions made for ``AsyncIterable[T]`` to ``Iterable[Awaitable[T]]`` as well.
@mristin has a [working prototype in ``awaited``](https://github.com/mristin/awaited/blob/234a8e59acb67b2c6f5bac4bf5cc99ab292583cf/awaited/__init__.py#L13). The helper should go to ``asyncstdlib.asynctools``. Possible names off the top of my head: - ``await_each`` - ``map_await`` - ``awaits`` - ``collect`` Close...
0.0.1-alpha
312e5707b14b1205958fdaaadf385f430a26b619
["unittests.test_asynctools::test_await_each"]
["unittests.test_asynctools::test_nested_lifetime", "unittests.test_asynctools::test_nested_lifetime_closed_outer", "unittests.test_asynctools::test_borrow_explicitly", "unittests.test_asynctools::test_borrow_iterable", "unittests.test_asynctools::test_borrow_methods[<lambda>0]", "unittests.test_asynctools::test_borrow...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
vinitkumar__json2xml-150
vinitkumar/json2xml
2b16ed97bc0422ea0c926c413ad9d49e71b973ea
diff --git a/json2xml/dicttoxml.py b/json2xml/dicttoxml.py index d81115c..31e21ff 100755 --- a/json2xml/dicttoxml.py +++ b/json2xml/dicttoxml.py @@ -25,9 +25,6 @@ DEBUGMODE = os.getenv("DEBUGMODE", False) # pragma: no cover LOG = logging.getLogger("dicttoxml") # pragma: no cover -ids: list[str] = [] # initializ...
python
diff --git a/tests/test_dict2xml.py b/tests/test_dict2xml.py index c3b4fed..dbb2e75 100644 --- a/tests/test_dict2xml.py +++ b/tests/test_dict2xml.py @@ -1,10 +1,7 @@ -import unittest - from json2xml import dicttoxml -class TestDict2xml(unittest.TestCase): - +class TestDict2xml: def test_dict2xml_with_namespac...
2022-07-22T19:52:12+00:00Z
Crash in one test when switching to pytest Recently decided to use pytest fully and discovered this failure in test. ```console =================================== FAILURES =================================== [52](https://github.com/vinitkumar/json2xml/runs/7473036610?check_suite_focus=true#step:5:53) __________...
Closed via https://github.com/vinitkumar/json2xml/pull/149
0.0.1-alpha
7faf0183ba1bcb6e867c65b0c01dda8761e5d166
["tests.test_dict2xml.TestDict2xml::test_dict2xml_str_list_header"]
["tests.test_dict2xml.TestDict2xml::test_dict2xml_with_namespaces", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_xmlns_namespaces", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_xsi_location", "tests.test_dict2xml.TestDict2xml::test_dict2xml_xsi_xmlns", "tests.test_dict2xml.TestDict2xml::test_dict2xml_...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mercedes-benz__odxtools-70
mercedes-benz/odxtools
afc95ce8a4016ea9d9c537c6c4824901e2aff5cd
diff --git a/odxtools/structures.py b/odxtools/structures.py index 6622eef..c891d20 100644 --- a/odxtools/structures.py +++ b/odxtools/structures.py @@ -34,7 +34,16 @@ class BasicStructure(DopBase): if self._byte_size: return 8 * self._byte_size elif all(p.bit_length is not None for p in ...
python
diff --git a/tests/test_encoding.py b/tests/test_encoding.py index b9ca5e4..9b370fb 100644 --- a/tests/test_encoding.py +++ b/tests/test_encoding.py @@ -60,5 +60,35 @@ class TestEncodeRequest(unittest.TestCase): self.assertEqual(resp.encode(param2=0xab), bytearray([0x12, 0xab])) self.assertRaises(Enco...
2022-08-26T11:23:39+00:00Z
__message_format_lines crash with overlapping signals I am not sure how that function works to fix the issue myself, but I could provide what the struct that caused the issue look like All have byte position = 0 | Param | bit position | bit length | |---|---|---| | 1 | 0 | 2 | | 2 | 2 | 2 | | 3 | 3 | 2 | | 4...
I suppose that in order to help you here I would need a dataset which uses this feature (e.g. an extension of the somersault example. (hint, hint ;))) @andlaus do you have enough now to make a fix?
0.0.1-alpha
58e4775a850ae88d8f4574fe231e4f2a07b75274
["tests.test_encoding.TestEncodeRequest::test_encode_overlapping"]
["tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_limits", "tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_physical_limits", "tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_type_float_int", "tests.test_compu_methods.TestLinearCompuMethod::test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
prometheus__client_python-847
prometheus/client_python
2f6bd47ae1bbfb7d53313c23330f82fdb410db3a
diff --git a/README.md b/README.md index eff4848..ef9930a 100644 --- a/README.md +++ b/README.md @@ -711,9 +711,10 @@ Gauges have several modes they can run in, which can be selected with the `multi - 'min': Return a single timeseries that is the minimum of the values of all processes (alive or dead). - 'max': Return...
python
diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py index 10990ad..6e188e5 100644 --- a/tests/test_multiprocess.py +++ b/tests/test_multiprocess.py @@ -185,6 +185,26 @@ class TestMultiProcess(unittest.TestCase): mark_process_dead(123, os.environ['PROMETHEUS_MULTIPROC_DIR']) self.asser...
2023-10-24T21:44:31+00:00Z
"last" aggregation in Multiprocess_mode (Gauge) Related to https://github.com/prometheus/client_python/issues/154. I'm working with Fast API + Gunicorn, and I have several cases where I need to display a gauge metric, but only the "last" value received. Not the sum, or the maximum value (for example, the CPU usage of...
Hello, thank you for this issue, and the example code that others can use now! I think I would be happy to accept a `last` aggregation for Gauges, as it does seem to have some real use cases where a custom collector is not ideal. How are you thinking of implementing this? Today I do not think we set the timestamp an...
0.0.1-alpha
546599b406374de590e26cac4d2c37bb1e22e968
["tests.test_multiprocess.TestMultiProcess::test_gauge_livemostrecent", "tests.test_multiprocess.TestMultiProcess::test_gauge_mostrecent", "tests.test_multiprocess.TestMmapedDict::test_corruption_detected", "tests.test_multiprocess.TestMmapedDict::test_expansion", "tests.test_multiprocess.TestMmapedDict::test_multi_exp...
["tests.openmetrics.test_exposition.TestGenerateText::test_counter", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_non_total_exemplar", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_total", "tests.openme...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
magmax__python-readchar-87
magmax/python-readchar
01b4b0ae01b1f4efab83cd7f62464cb5187760a2
diff --git a/readchar/__init__.py b/readchar/__init__.py index 64817a1..8ba31da 100644 --- a/readchar/__init__.py +++ b/readchar/__init__.py @@ -12,7 +12,9 @@ if ( or platform.startswith("freebsd") ): from ._posix_read import readchar, readkey + from . import _posix_key as key elif platform in ("win32", ...
python
diff --git a/tests/posix/test_import.py b/tests/posix/test_import.py index 4c858e5..0dde25d 100644 --- a/tests/posix/test_import.py +++ b/tests/posix/test_import.py @@ -11,6 +11,5 @@ def test_readkeyImport(): def test_keyImport(): a = {k: v for k, v in vars(readchar.key).items() if not k.startswith("__")} - ...
2022-07-28T19:25:18+00:00Z
`readchar.key` direct uses fail code like this failes with the new version: ```python import readchar print(readchar.key.UP) ``` > :x: AttributeError: module 'readchar' has no attribute 'key' This needs to be fixed as it is required for backwards compatability
0.0.1-alpha
77c1ac5f3909a9535e4ff967dc3fef4307852f3d
["tests.posix.test_import::test_keyImport"]
["tests.posix.test_import::test_readcharImport", "tests.posix.test_import::test_readkeyImport", "tests.posix.test_keys::test_defaultKeysExists[LF]", "tests.posix.test_keys::test_defaultKeysExists[CR]", "tests.posix.test_keys::test_defaultKeysExists[ENTER]", "tests.posix.test_keys::test_defaultKeysExists[BACKSPACE]", "t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-45
sepandhaghighi/mycoffee
81ff647d96a393fc38e3cfa755a8cde45b4f71e0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 78b3cdd..37b251c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Add...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 62736e3..8f6c4e9 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -19,6 +19,16 @@ 1000.0 >>> get_grind_type(100) 'Extra-Fine' +>>> get_brew_strength(1/60) +'Very Weak' +>>> get_brew_strength(1/30) +'Weak' +>>> get_brew_strength(1/2...
2025-03-21T19:39:52+00:00Z
[Feature]: Brew Strength ### Describe the feature you want to add Display the brew strength in the application. ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context _No response_
0.0.1-alpha
b40396c37849c7677a45d01786ed796582e7a79e
["test.functions_test::functions_test"]
["test.verified_test::verified_test"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
luolingchun__flask-openapi3-183
luolingchun/flask-openapi3
8f86f0bb052552ab6cca0b671788c2f2dc509bcc
diff --git a/flask_openapi3/request.py b/flask_openapi3/request.py index 6640235..8c0e84a 100644 --- a/flask_openapi3/request.py +++ b/flask_openapi3/request.py @@ -3,78 +3,121 @@ # @Time : 2022/4/1 16:54 import json from json import JSONDecodeError -from typing import Any, Type, Optional, Dict, get_origin, get_a...
python
diff --git a/tests/test_populate_by_name.py b/tests/test_populate_by_name.py index a317ee1..ea55bbc 100644 --- a/tests/test_populate_by_name.py +++ b/tests/test_populate_by_name.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- # @Author : llc # @Time : 2024/8/31 15:35 +from typing import Sequence, List, Tuple + impor...
2024-10-05T06:02:21+00:00Z
Tuples no longer work in query strings Environment: - Python version: 3.12.3 - Operating system: Ubuntu 24.04 - Flask version: 3.0.3 - flask-openapi3 version: 4.0.0 Similar to #182, this also regressed in 2f33e859b9fa8a6b0114b0ae850cb4b1fda1e4c6. Example: ```python class TupleModel(BaseModel): val...
0.0.1-alpha
7961231360590e4d48d31c93eee67786d70f7648
["tests.test_populate_by_name::test_tuple_query", "tests.test_populate_by_name::test_form_alias", "tests.test_populate_by_name::test_query_alias"]
["tests.test_api_blueprint::test_openapi", "tests.test_api_blueprint::test_post", "tests.test_api_blueprint::test_put", "tests.test_api_blueprint::test_patch", "tests.test_api_blueprint::test_delete", "tests.test_api_view::test_openapi", "tests.test_api_view::test_get_list", "tests.test_api_view::test_post", "tests.tes...
["tests.test_api_view_args::test_get_view_kwargs", "tests.test_async::test_get_openapi", "tests.test_async::test_post_openapi", "tests.test_async::test_get_list", "tests.test_async::test_post", "tests.test_command::test_openapi_command"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
netbox-community__pynetbox-591
netbox-community/pynetbox
c22a432478591192cf3db2219ebc3a059f41bdd3
diff --git a/pynetbox/core/endpoint.py b/pynetbox/core/endpoint.py index dfd989e..a0f7bef 100644 --- a/pynetbox/core/endpoint.py +++ b/pynetbox/core/endpoint.py @@ -587,9 +587,10 @@ class Endpoint: token=self.api.token, http_session=self.api.http_session, ).options() - try: - ...
python
diff --git a/tests/unit/test_endpoint.py b/tests/unit/test_endpoint.py index 344b116..fe6a495 100644 --- a/tests/unit/test_endpoint.py +++ b/tests/unit/test_endpoint.py @@ -60,6 +60,59 @@ class EndPointTestCase(unittest.TestCase): self.assertEqual(choices["letter"][1]["display_name"], "B") sel...
2025-04-15T22:53:02+00:00Z
Choices are not returned when the API token can PUT but not POST on an endpoint ### pynetbox version v7.1.0 ### NetBox version v3.4.3 ### Python version 3.9 ### Steps to Reproduce Using an API token that cannot POST on the `/dcim/devices/` endpoint for instance, try getting choices using ```python nb.dcim.d...
I can submit a PR for a simple fix that would get the choices from the `.actions.PUT` sections returned by the `OPTIONS` request when `.actions.POST` is missing. Just wondering: what is the use case for fetching the choices list when there is no possibility anyway to use the choice values to create/edit objects? Or ...
0.0.1-alpha
75a2c4ecb8cbd928c51ae4df37f5324ef1414c59
["tests.unit.test_endpoint.EndPointTestCase::test_choices_put"]
["tests.test_api.ApiTestCase::test_get", "tests.test_api.ApiTestCase::test_sanitize_url", "tests.test_api.ApiVersionTestCase::test_api_version", "tests.test_api.ApiVersionTestCase::test_api_version_not_found", "tests.test_api.ApiStatusTestCase::test_api_status", "tests.test_api.ApiCreateTokenTestCase::test_create_token...
["tests.integration.test_dcim.TestSite::test_create[netbox v4.0]", "tests.integration.test_dcim.TestSite::test_str[netbox v4.0]", "tests.integration.test_dcim.TestSite::test_update_fixture[netbox v4.0]", "tests.integration.test_dcim.TestSite::test_get_fixture_by_id[netbox v4.0]", "tests.integration.test_dcim.TestSite::...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
more-itertools__more-itertools-543
more-itertools/more-itertools
31b8a0ed1c8a60d7c6b96bc6d2b7c64c646a1057
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index bf4674a..e7868fc 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9.0, 3.1...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 5d25fab..08845bd 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -4637,3 +4637,57 @@ class ChunkedEvenTests(TestCase): items.extend(l) self.assertEqual(items, list(range(N))) self.assertLessEqua...
2021-08-31T13:39:51+00:00Z
Add ``zip_with_scalars()`` function ### Description Would you be interested in adding a function that mostly works like `zip()`, except that it treats any non-iterable arguments as values that should be included in each output tuple (without affecting how the iterable arguments are zipped)? ### References I neede...
Thanks for the writeup. I'm inclined to pass on this one, but if you see places in the wild (StackOverflow answers, GitHub code aimed at the same problem) do let me know. Ok, will do. Here are some stack overflow posts that are basically asking for this algorithm: - https://stackoverflow.com/questions/26311561/zip-l...
0.0.1-alpha
004e0dfddbedc2aa40f1670a9b7a21345d745bcd
["tests.test_more.ZipBroadcastTests::test_basic", "tests.test_more.ZipBroadcastTests::test_empty", "tests.test_more.ZipBroadcastTests::test_scalar_types", "tests.test_more.ZipBroadcastTests::test_strict"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-212
python-validators/validators
ae6faeac0bcd4b2b812f2a7430752c6a36ca2ebf
diff --git a/src/validators/email.py b/src/validators/email.py index 5b57395..eff09bd 100644 --- a/src/validators/email.py +++ b/src/validators/email.py @@ -84,10 +84,12 @@ def email( ) ) if re.match( + # extended latin + r"(^[\u0100-\u017F\u0180-\u024F]" ...
python
diff --git a/tests/test_email.py b/tests/test_email.py index 733c5c5..029c45e 100644 --- a/tests/test_email.py +++ b/tests/test_email.py @@ -17,6 +17,8 @@ from validators import ValidationError, email ("example@valid-with-hyphens.com",), ("test@domain.with.idn.tld.उदाहरण.परीक्षा",), ("email@l...
2024-04-02T10:25:10+00:00Z
In some countries, there are allowed to use extra characters in the user part of email. User can define local characters. In some countries it is allowed to create emails like Łókaść@gmail.com. My proposition is to let user define allowed local characters. If you let me permision to create branch I can create pul...
0.0.1-alpha
29e8f01b7fd1cb84145dbe5cd1148b1b51d844bb
["tests.test_email::test_returns_true_on_valid_email[\\u0141\\xf3ka\\u015b\\u0107@email.com]", "tests.test_email::test_returns_true_on_valid_email[\\u0142em\\u0142ail@here.com]"]
["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meadsteve__lagom-10
meadsteve/lagom
1c14cdc2745163f7338417b84d24131c4f76ed08
diff --git a/CHANGELOG.md b/CHANGELOG.md index f4705cd..4540662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,16 @@ # Changelog -## 0.4.2 (PENDING) +## 0.5.0 (2020-02-04) ### Enhancements * Singleton bool for `dependency_definition` decorator +* Invocation level singletons are now lazily loaded ###...
python
diff --git a/test/test_partial_functions_scoped_singletons.py b/test/test_partial_functions_scoped_singletons.py index ec2828f..873bce1 100644 --- a/test/test_partial_functions_scoped_singletons.py +++ b/test/test_partial_functions_scoped_singletons.py @@ -1,5 +1,5 @@ from random import random -from typing import Gene...
2020-02-04T08:27:53+00:00Z
Lazy loading for invocation scoped singletons
0.0.1-alpha
0b686167280b511ce8206a438dab63d2ec08bb61
["test.test_partial_functions_scoped_singletons::test_that_shared_types_are_lazy_loaded"]
["test.test_abstracts_and_replacements::test_registered_concrete_class_is_loaded", "test.test_abstracts_and_replacements::test_registered_concrete_class_is_used_for_other_objects", "test.test_abstracts_and_replacements::test_alias_can_be_defined", "test.test_complex_type::test_works_for_list_types", "test.test_complex_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-benchmark-684
opensearch-project/opensearch-benchmark
03f1b765baeeb616c4655842da9ca014ad72fc50
diff --git a/osbenchmark/aggregator.py b/osbenchmark/aggregator.py index f5c57ea..d53409f 100644 --- a/osbenchmark/aggregator.py +++ b/osbenchmark/aggregator.py @@ -193,24 +193,27 @@ class Aggregator: def calculate_weighted_average(self, task_metrics: Dict[str, List[Any]], iterations: int) -> Dict[str, Any]: ...
python
diff --git a/tests/aggregator_test.py b/tests/aggregator_test.py index d40afc5..6436fe4 100644 --- a/tests/aggregator_test.py +++ b/tests/aggregator_test.py @@ -1,13 +1,12 @@ -from unittest.mock import patch, Mock +from unittest.mock import Mock, patch, mock_open import pytest - from osbenchmark import config -from o...
2024-11-15T22:09:14+00:00Z
[FEATURE] Add median values to aggregated test results and adjust min/max values ### Is your feature request related to a problem? Please describe Currently, the new `aggregate` command in OSB combines multiple test executions into one averaged result. Rather than just combining all the minimum and maximum values fro...
0.0.1-alpha
2d14ed4006bbd6221ee6b64b13ee274e4685e17f
["tests.results_publisher_test.FormatterTests::test_publish_throughput_handles_different_metrics"]
["tests.aggregator_test::test_count_iterations_for_each_op", "tests.aggregator_test::test_accumulate_results", "tests.aggregator_test::test_test_execution_compatibility_check", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_weighted_average", "tests.aggregator_test::test_cal...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sighingnow__parsec.py-48
sighingnow/parsec.py
4733d83e869ba0180b3014f4dd029542249c2ab3
diff --git a/src/parsec/__init__.py b/src/parsec/__init__.py index cacdac8..3779908 100644 --- a/src/parsec/__init__.py +++ b/src/parsec/__init__.py @@ -71,6 +71,12 @@ class Value(namedtuple('Value', 'status index value expected')): return other return Value(True, other.index, self.value + other.v...
python
diff --git a/src/parsec/tests/test_parsec.py b/src/parsec/tests/test_parsec.py index 4e8d8ee..c99abc4 100644 --- a/src/parsec/tests/test_parsec.py +++ b/src/parsec/tests/test_parsec.py @@ -225,6 +225,28 @@ class ParsecCombinatorTest(unittest.TestCase): self.assertEqual(parser.parse('x,x,x,x,x') , []) ...
2021-12-19T14:42:19+00:00Z
`separated` does not consume the last `sep`, even if `end=True` ```python >>> separated(string("a"), string(","), 3, 3, end=False).parse_partial("a,a,a,") (['a', 'a', 'a'], ',') >>> separated(string("a"), string(","), 3, 3, end=None).parse_partial("a,a,a,") (['a', 'a', 'a'], ',') >>> separated(string("a"), string...
It should be a bug. Fixed in main. It seems that in the last release they broke the following behavior: ``` >>> separated(string("a"), string(","), 0, maxt=float('inf'), end=False).parse_partial("a,a,a,") (['a', 'a', 'a'], '') ``` When maxt is greater than the number of items, the last comma will also be consume...
0.0.1-alpha
40903688c4f989877ff071aa207555b5194fdfe5
["src.parsec.tests.test_parsec.ParsecCombinatorTest::test_endBy", "src.parsec.tests.test_parsec.ParsecCombinatorTest::test_endBy1", "src.parsec.tests.test_parsec.ParsecCombinatorTest::test_separated"]
["examples.test_calculator.TestAddition::test_addition_simple", "examples.test_calculator.TestAddition::test_bad_strings", "examples.test_json.TestJsonc::test_array", "examples.test_json.TestJsonc::test_empty", "examples.test_json.TestJsonc::test_nest", "examples.test_json.TestJsonc::test_number", "examples.test_json.T...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pytest-dev__pytest-bdd-351
pytest-dev/pytest-bdd
be834076f382ed44e829dc62743741730f7aff09
diff --git a/CHANGES.rst b/CHANGES.rst index c441165..60eb4a0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,6 +15,7 @@ Added Changed +++++++ * Step arguments ``"datatable"`` and ``"docstring"`` are now reserved, and they can't be used as step argument names. +* Scenario ``description`` field is now set for JSON ...
python
diff --git a/tests/feature/test_cucumber_json.py b/tests/feature/test_cucumber_json.py index 817c767..6e6239c 100644 --- a/tests/feature/test_cucumber_json.py +++ b/tests/feature/test_cucumber_json.py @@ -51,9 +51,12 @@ def test_step_trace(pytester): """ @feature-tag Feature: One passing scenario...
2024-12-02T21:17:32+00:00Z
Description in scenario Hi, I would like to write description for a scenario in the feature file. However when I generate a cucumber json report(with --cucumber-json option)with description added to the scenario, the json report is empty. Here is my feature Feature file with description added to the scenario: `...
0.0.1-alpha
6a2b2fbfbc8e6376183bb769704c68d2208a63ff
["tests.feature.test_cucumber_json::test_step_trace", "tests.feature.test_report::test_step_trace"]
["tests.args.cfparse.test_args::test_every_step_takes_param_with_the_same_name", "tests.args.cfparse.test_args::test_argument_in_when", "tests.args.parse.test_args::test_every_steps_takes_param_with_the_same_name", "tests.args.parse.test_args::test_argument_in_when_step_1", "tests.args.regex.test_args::test_every_steps...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
upb-lea__gym-electric-motor-103
upb-lea/gym-electric-motor
ea8935fe73dc3b819d9c9b362be0e1187e0b1591
diff --git a/gym_electric_motor/reference_generators/multiple_reference_generator.py b/gym_electric_motor/reference_generators/multiple_reference_generator.py index a2b7193..1e173df 100644 --- a/gym_electric_motor/reference_generators/multiple_reference_generator.py +++ b/gym_electric_motor/reference_generators/multipl...
python
diff --git a/tests/test_core.py b/tests/test_core.py index 3e06671..05c3465 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -317,10 +317,18 @@ class TestRewardFunction: class TestReferenceGenerator: test_object = None initial_state = np.array([1, 2, 3, 4, 5]) / 5 - _reference = 0.5 + _refer...
2020-09-29T12:00:27+00:00Z
Bug in MultipleReferenceGenerator The MultipleReferenceGenerator class sets the datatype of the referenced_states array to integer. The desired datatype in all other generators is bool. This lead to undesired behavior when automatically assigning the reward weights by the referenced states as the array indexing bec...
0.0.1-alpha
6efd612f52c940c96a35e15b775427e3aa7e20dc
["tests.test_reference_generators.test_reference_generators.TestMultipleReferenceGenerator::test_referenced_states"]
["tests.test_callbacks.TestRampingLimitMargin::test_update", "tests.test_callbacks.TestRampingLimitMargin::test_initial_values", "tests.test_callbacks.TestRampingLimitMargin::test_update_switched", "tests.test_callbacks.TestRampingLimitMargin::test_right_reference", "tests.test_constraint_monitor.TestConstraintMonitor:...
["tests.test_core.TestElectricMotorEnvironment::test_reset", "tests.test_physical_systems.test_converters.TestContFourQuadrantConverter::test_set_action", "tests.test_physical_systems.test_mechanical_loads::test_speed_profile"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nicodv__kmodes-175
nicodv/kmodes
df0794025108cdb5047d6f81a746025633401c92
diff --git a/kmodes/kmodes.py b/kmodes/kmodes.py index 2bb6b7a..56c3581 100644 --- a/kmodes/kmodes.py +++ b/kmodes/kmodes.py @@ -127,7 +127,8 @@ class KModes(BaseEstimator, ClusterMixin): X = pandas_to_numpy(X) random_state = check_random_state(self.random_state) - _validate_sample_weight(sam...
python
diff --git a/kmodes/tests/test_kmodes.py b/kmodes/tests/test_kmodes.py index 7fc5966..2188bee 100644 --- a/kmodes/tests/test_kmodes.py +++ b/kmodes/tests/test_kmodes.py @@ -567,3 +567,11 @@ class TestKModes(unittest.TestCase): tuple_pairs = zip(sorted(expected), sorted(factual)) for tuple_expe...
2022-04-13T17:09:22+00:00Z
KPrototypes fit_predict fails with sample_weight ## Expected Behavior It should be possible to pass a `sample_weight` to `fit_predict` in `KPrototypes`, and to get the cluster labels from the weighted fitting. ## Actual Behavior Passing a sample_weight to fit_predict causes an exception. This is because the p...
Thanks for reporting, @FGlazov . This is fixed by https://github.com/nicodv/kmodes/pull/176 Until that's released, please use `fit` and `predict` sequentially. New release with this fix: https://github.com/nicodv/kmodes/releases/tag/0.12.1
0.0.1-alpha
2a667c8ee4a17d8c71b90a0345791f8d6adc1422
["kmodes.tests.test_kprototypes.TestKProtoTypes::test_k_prototypes_sample_weight_not_enough_non_zero", "kmodes.tests.test_kprototypes.TestKProtoTypes::test_kmodes_fit_predict_equality"]
["kmodes.tests.test_kprototypes.TestKProtoTypes::test_k_prototypes_sample_weight_all_but_one_zero", "kmodes.tests.test_kprototypes.TestKProtoTypes::test_k_prototypes_sample_weight_unchanged", "kmodes.tests.test_kprototypes.TestKProtoTypes::test_kprototypes_ninit", "kmodes.tests.test_kprototypes.TestKProtoTypes::test_kp...
["kmodes.util.tests.test_dissim.TestDissimilarityMeasures::test_euclidian_dissim", "kmodes.util.tests.test_dissim.TestDissimilarityMeasures::test_jaccard_dissim_binary", "kmodes.util.tests.test_dissim.TestDissimilarityMeasures::test_jaccard_dissim_label", "kmodes.util.tests.test_dissim.TestDissimilarityMeasures::test_m...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tusharsadhwani__zxpy-8
tusharsadhwani/zxpy
d896d12c717a5f85f10c0919e995488eddc1347a
diff --git a/zx.py b/zx.py index 1ba7d68..fb61ff1 100644 --- a/zx.py +++ b/zx.py @@ -25,6 +25,7 @@ import ast import code import inspect import subprocess +import shlex import sys import traceback from typing import Literal, Optional, Tuple, Union, overload @@ -88,6 +89,11 @@ def run_shell(command: str, print_it:...
python
diff --git a/tests/test_files/quoting.py b/tests/test_files/quoting.py new file mode 100644 index 0000000..3cda857 --- /dev/null +++ b/tests/test_files/quoting.py @@ -0,0 +1,6 @@ +#! /usr/bin/env zxpy + +arg = "test string with spaces" + +output = ~f"python -c 'import sys; print(sys.argv[1])' {arg}" +assert output.rstr...
2021-07-02T18:35:56+00:00Z
Escaping/quoting of variable args in commands Proper handling of quoting in bash is always a pain point, it would be nice if the command substitution escaped special characters which is what `zx` is doing. I'm not sure what would be the best way to do this while also ensuring that this doesn't hurt the usage where yo...
yeah this was discussed in a forum before, and yeah I think a simple `shlex.quote` in my implementation should fix most of the issues with quoting, shell injection etc. I just haven't had enough time to test out the library, so thanks for creating the issues :smile: I'll add a few tests in some time and see if qu...
0.0.1-alpha
bef6a6cd2fdd2131e7f04b319d136ed22d046626
["tests.zxpy_test::test_files[./tests/test_files/quoting.py]"]
["tests.zxpy_test::test_shell_output[echo hello world-hello world]", "tests.zxpy_test::test_shell_output[ls | tail -6 | wc -l-6]", "tests.zxpy_test::test_shell_output[find . -maxdepth 1 -name '*\\\\.py' | grep -v test | wc -l-3]", "tests.zxpy_test::test_shell_output[cat /etc/shadow 2> /dev/null; echo $?-1]", "tests.zxp...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1297
octodns/octodns
470df43b5a3631f72378a7d69c0091f2743eb0bc
diff --git a/.changelog/5f9e8b0b6b7f4093b109a56d12239302.md b/.changelog/5f9e8b0b6b7f4093b109a56d12239302.md new file mode 100644 index 0000000..fc3d2b5 --- /dev/null +++ b/.changelog/5f9e8b0b6b7f4093b109a56d12239302.md @@ -0,0 +1,4 @@ +--- +type: minor +--- +Add OwnershipProcessor.should_replace to support ownership o...
python
diff --git a/tests/test_octodns_processor_ownership.py b/tests/test_octodns_processor_ownership.py index 95682e5..052a67c 100644 --- a/tests/test_octodns_processor_ownership.py +++ b/tests/test_octodns_processor_ownership.py @@ -9,7 +9,7 @@ from helpers import PlannableProvider from octodns.processor.ownership import ...
2025-08-25T21:13:23+00:00Z
OwnershipProcessor causes DuplicateRecordException in alias zones First of all, thank you for octoDNS! When trying to configure alias zones, I encountered the following error: ``` strutztm@nixos ~/octodns> octodns-sync --config-file ./octodns.yaml 2025-08-25T16:47:09 [139782469125952] INFO Manager __init__: config...
Good catch. Fix is fairly simple, new option for the `OwnershipProcessor`, `should_replace`, that tells it to replace on duplicate ownership records rather than throw the error. https://github.com/octodns/octodns/pull/1298
0.0.1-alpha
a938ac822225a9159f7a0ffab178f9b804a823d7
["tests.test_octodns_processor_ownership.TestOwnershipProcessor::test_should_replace"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-730
more-itertools/more-itertools
c591b720e72b81ad85bdf13422a0b7e465cce7e0
diff --git a/README.rst b/README.rst index 9653599..8c920b8 100644 --- a/README.rst +++ b/README.rst @@ -103,11 +103,12 @@ Python iterables. | | `nth <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.nth>`_, ...
python
diff --git a/tests/test_more.py b/tests/test_more.py index d157ab5..140b137 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -5443,3 +5443,29 @@ class IterateTests(TestCase): result = list(islice(mi.iterate(func, start=1), 10)) expected = [1, 2, 4, 8, 16, 32, 64, 128] self.assertEq...
2023-07-27T16:41:12+00:00Z
takewhile_inclusive ### Description Hello again. I'd like to propose `takewhile_inclusive`, a version of `takewhile` which yields one additional element. ### References - [C do...while loop](https://www.tutorialspoint.com/cprogramming/c_do_while_loop.htm) -- This is probably the most convincing argument for w...
How about instead of ```python return list(takewhile_inclusive( lambda n: n != 1, ``` do ```python return list(takeuntil( lambda n: n == 1, ``` That would focus on the ending value, which seems more natural to me. Or is the negated predicate more natural in most cases? I like that, too...
0.0.1-alpha
9acd6d54a198232d6642dd9be9f5bfea88d5a7f2
["tests.test_more.TakewhileInclusiveTests::test_basic", "tests.test_more.TakewhileInclusiveTests::test_collatz_sequence", "tests.test_more.TakewhileInclusiveTests::test_empty_iterator"]
["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pathintegral-institute__mcpm.sh-212
pathintegral-institute/mcpm.sh
5d015df7d439599c6c7781d47ae0566d1ec7776e
diff --git a/src/mcpm/commands/edit.py b/src/mcpm/commands/edit.py index b1293ea..878817b 100644 --- a/src/mcpm/commands/edit.py +++ b/src/mcpm/commands/edit.py @@ -3,6 +3,7 @@ Edit command for modifying server configurations """ import os +import shlex import subprocess import sys from typing import Any, Dict, ...
python
diff --git a/tests/test_edit.py b/tests/test_edit.py index bb27a26..535dadb 100644 --- a/tests/test_edit.py +++ b/tests/test_edit.py @@ -2,6 +2,7 @@ Tests for the edit command """ +import shlex from unittest.mock import Mock from click.testing import CliRunner @@ -44,13 +45,39 @@ def test_edit_server_interactiv...
2025-07-10T10:52:53+00:00Z
[Bug]: stdio arguments should not use csv ### What happened? mcpm edit use csv to represent arguments, which is not natural ### What did you expect? should use space to separate values ### MCPM Version 2.2.0 ### OS macOS ### Logs ```shell ```
0.0.1-alpha
85a3492bb7c13812e41415d6c0bf7b467e7a32f4
["tests.test_edit::test_edit_server_interactive_fallback", "tests.test_edit::test_edit_server_with_spaces_in_args"]
["tests.test_access_monitor::test_initialize_storage", "tests.test_access_monitor::test_track_event", "tests.test_access_monitor::test_multiple_events", "tests.test_access_monitor::test_get_monitor_utility", "tests.test_access_monitor::test_raw_request_response", "tests.test_access_monitor::test_backward_compatibility"...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
modal-labs__pytest-markdown-docs-28
modal-labs/pytest-markdown-docs
bd1617c428cbb8bd9291595eb72547cb256bbc33
diff --git a/README.md b/README.md index 6fab2b4..db49f12 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,25 @@ assert a + " world" == "hello world" ``` ```` +## MDX Comments for Metadata Options +In .mdx files, you can use MDX comments to provide additional options for code blocks. These comments should be p...
python
diff --git a/tests/plugin_test.py b/tests/plugin_test.py index b599876..86e4e93 100644 --- a/tests/plugin_test.py +++ b/tests/plugin_test.py @@ -257,3 +257,94 @@ def some_global(): ) result = testdir.runpytest("--markdown-docs") result.assert_outcomes(passed=2) + + +def test_continuation_mdx_comment(test...
2024-10-21T14:33:10+00:00Z
Add support for specifying metadata options via MDX comments I would like to use this project to add tests to our documentation, but we use Mintlify to render our docs. The issue is that it interprets options in the "lang" portion of the fence as a title of the code snippet. It would be great if we could add these opt...
0.0.1-alpha
8fdfe933515f9cbe44fa07b07d4f128e433a52fb
["tests.plugin_test::test_continuation_mdx_comment", "tests.plugin_test::test_specific_fixture_mdx_comment", "tests.plugin_test::test_multiple_fixtures_mdx_comment", "tests.plugin_test::test_notest_mdx_comment"]
["tests.plugin_test::test_docstring_markdown", "tests.plugin_test::test_markdown_text_file", "tests.plugin_test::test_continuation", "tests.plugin_test::test_traceback", "tests.plugin_test::test_autouse_fixtures", "tests.plugin_test::test_specific_fixtures", "tests.plugin_test::test_non_existing_fixture_error", "tests....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-13
sepandhaghighi/mycoffee
af19198d32f5fdb607051600e0616d402ce6a325
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e81d232..ec46803 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -85,6 +85,7 @@ body: label: MyCoffee version description: Which version of MyCoffee are you us...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 27d2a37..00f0ce5 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -160,7 +160,7 @@ True >>> _ = parser.add_argument('--version', help='version', nargs="?", const=1) >>> args = parser.parse_args({"--version":True}) >>> run(args) -0....
2024-10-17T15:28:55+00:00Z
[Feature]: `--coffee-unit` argument ### Describe the feature you want to add `coffee` unit ### Describe your proposed solution ```shell > mycoffee --method=siphon --coffee-unit=gr > mycoffee --method=v60 --coffee-unit=oz ### Describe alternatives you've considered, if relevant _No response_ ### Additional cont...
0.0.1-alpha
10429c7dd25101ccfe7bda825ba320b2f6ffbc8f
["test.functions_test::functions_test"]
["test.verified_test::verified_test"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
probabilists__lampe-2
probabilists/lampe
7bf84309435e335d628d34b9f179518d25e1d6f3
diff --git a/lampe/inference.py b/lampe/inference.py index d567c98..96b3bae 100644 --- a/lampe/inference.py +++ b/lampe/inference.py @@ -139,6 +139,63 @@ class NRELoss(nn.Module): return l1 + l0 +class BNRELoss(nn.Module): + r"""Creates a module that calculates the loss :math:`l` of a balanced NRE (BNRE...
python
diff --git a/tests/test_inference.py b/tests/test_inference.py index c6034f0..e9fd1e5 100644 --- a/tests/test_inference.py +++ b/tests/test_inference.py @@ -43,6 +43,18 @@ def test_NRELoss(): assert l.requires_grad +def test_BNRELoss(): + estimator = NRE(3, 5) + loss = BNRELoss(estimator) + + theta, x...
2022-08-30T11:39:13+00:00Z
Implement Balanced Neural Ratio Estimation loss ### Description Implementation of Balanced Neural Ratio Estimation (BNRE) as introduced in "Towards Reliable Simulation-Based Inference with Balanced Neural Ratio Estimation" (Delaunoy et al., 2022) ### Implementation An implementation of the BNRE loss similar ...
Your PR (#3) has been merged. Thank you!
0.0.1-alpha
186735633082c9b04ffcc48c356dd71d79927606
["tests.test_inference::test_BNRELoss"]
["tests.test_data::test_JointLoader", "tests.test_data::test_H5Dataset", "tests.test_distributions::test_distributions", "tests.test_distributions::test_transforms", "tests.test_distributions::test_PermutationTransform", "tests.test_inference::test_NRE", "tests.test_inference::test_NRELoss", "tests.test_inference::test...
["tests.test_plots::test_nice_rc"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1149
octodns/octodns
b5047f9139211c92a57fd975f0973df5f57c50ae
diff --git a/octodns/manager.py b/octodns/manager.py index 903f797..3ea0601 100644 --- a/octodns/manager.py +++ b/octodns/manager.py @@ -434,18 +434,6 @@ class Manager(object): else: v = handler.fetch(name, source) - if isinstance(v, str): - ...
python
diff --git a/tests/test_octodns_secret_environ.py b/tests/test_octodns_secret_environ.py index ff09c32..5d81311 100644 --- a/tests/test_octodns_secret_environ.py +++ b/tests/test_octodns_secret_environ.py @@ -19,9 +19,17 @@ class TestEnvironSecrets(TestCase): es = EnvironSecrets('env') source = Cont...
2024-03-17T19:39:13+00:00Z
Account float conversion breaks requests New in version 1.5.0 , the function `_build_kwargs` of the class `Manager` in the file `octodns/manager.py` converts the attributes to floats before passing them on. So later on in the Module octodns-simple, an instance of the class `DnsimpleClient` receives its account number ...
Duplicate of https://github.com/octodns/octodns/issues/1148. fix in progress in https://github.com/octodns/octodns/pull/1150 & https://github.com/octodns/octodns-powerdns/pull/63. Closing in favor of https://github.com/octodns/octodns/issues/1148, any further discussion can happen there. 1.5.1 solved this issue, but...
0.0.1-alpha
b2d3c41ffda269ee372cde52d24633e9c43d5182
["tests.test_octodns_secret_environ.TestEnvironSecrets::test_environ_secrets"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyswmm__swmmio-141
pyswmm/swmmio
177d9fc9d3fc3a102b480970cde978230f10d528
diff --git a/swmmio/utils/text.py b/swmmio/utils/text.py index 7d7c0d2..9a6f866 100644 --- a/swmmio/utils/text.py +++ b/swmmio/utils/text.py @@ -225,15 +225,10 @@ def get_inp_sections_details(inp_path, include_brackets=False): bracketed_words = re.findall(r"\[([A-Za-z0-9_]+)\]", txt) for sect in bra...
python
diff --git a/swmmio/tests/test_dataframes.py b/swmmio/tests/test_dataframes.py index 96bf10b..05b010c 100644 --- a/swmmio/tests/test_dataframes.py +++ b/swmmio/tests/test_dataframes.py @@ -152,6 +152,12 @@ def test_infiltration_section(): assert (inf.columns.tolist() == ['Suction', 'Ksat', 'IMD']) +def test_he...
2022-12-20T21:24:29+00:00Z
model.inp.headers gives "UnboundLocalError: local variable 'h' referenced before assignment" Hi I get the following error when I try to call/access `model.inp.headers`: ``` File "C:\Users\morte\Documents\python_envs\swmmgo_env\lib\site-packages\swmmio\core.py", line 570, in headers self._inp_section_de...
Hey @MortenGrum, thanks for raising this issue! I believe this will be fixed in #160.
0.0.1-alpha
e178c12941f69a7615c4ef04c85998c0aba709a8
["swmmio.tests.test_dataframes::test_headers"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_nodes_dataframe", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes", "swmmio.tests.test_model_elements::test_dataframe_composite"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sighingnow__parsec.py-39
sighingnow/parsec.py
4d96d151e1751e007fa0b53b4628fbe25f3a8c15
diff --git a/src/parsec/__init__.py b/src/parsec/__init__.py index dcbe827..f55be13 100644 --- a/src/parsec/__init__.py +++ b/src/parsec/__init__.py @@ -757,3 +757,14 @@ def unit(p: Parser): else: return Value.failure(index, res.expected) return unit_parser + + + +def fix(fn): + '''Allow r...
python
diff --git a/src/parsec/tests/test_parsec.py b/src/parsec/tests/test_parsec.py index b768280..6bc79e4 100644 --- a/src/parsec/tests/test_parsec.py +++ b/src/parsec/tests/test_parsec.py @@ -317,6 +317,14 @@ class ParsecCombinatorTest(unittest.TestCase): self.assertEqual(parser.parse('<'), "<") self.ass...
2021-12-19T15:28:13+00:00Z
Support recursive parsing using fixed-point trick Raised by https://stackoverflow.com/questions/67841197/parsing-text-with-pythons-parsec-py-library/67880757#67880757 I think fixed-point combinator (Y combinator) is the way for that.
I think this effectively works now: ```python from parsec import Parser, string, any fix = lambda f: (lambda x: x(x))(lambda y: f(lambda *args: y(y)(*args))) @Parser @fix def expr(recur): return (string("(") >> recur << string(")")) | any() result = expr.parse("((x))") print(result) ``` ``` $ ...
0.0.1-alpha
7838202eac9d20966589049718946abc87b9b3f4
["src.parsec.tests.test_parsec.ParsecCombinatorTest::test_fix"]
["examples.test_calculator.TestAddition::test_addition_simple", "examples.test_calculator.TestAddition::test_bad_strings", "examples.test_json.TestJsonc::test_array", "examples.test_json.TestJsonc::test_empty", "examples.test_json.TestJsonc::test_nest", "examples.test_json.TestJsonc::test_number", "examples.test_json.T...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
redimp__otterwiki-176
redimp/otterwiki
c6694003e324d2c5b1edbb0f6406a652df2b78b5
diff --git a/otterwiki/renderer.py b/otterwiki/renderer.py index 67cdf4d..7324dd2 100644 --- a/otterwiki/renderer.py +++ b/otterwiki/renderer.py @@ -58,7 +58,7 @@ class CodeHtmlFormatter(html.HtmlFormatter): yield 0, '</pre></div>' -def pygments_render(code, lang): +def pygments_render(code, lang, linenumb...
python
diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 533c0f8..98b8494 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -81,6 +81,25 @@ n = 0 ) assert pre_code is not None assert pre_code.text.startswith('non_existing_lexer') + # test highlight with line numbers + ht...
2025-01-11T17:52:34+00:00Z
Request to display Line Numbers in Code Blocks Would it be possible to add an option to display line numbers in code blocks? For example, as seen [here](https://docs.requarks.io/install/docker#using-docker-compose) or [here](https://www.bookstackapp.com/docs/admin/installation/#running-the-script). Also, I wante...
Hey @lj-tms, I think this would be a useful extension! My question is what would be good syntax for the code block? [HackMD](https://hackmd.io/) and [HedgeDoc](https://hedgedoc.org/) uses a `=` after the language keyword, e.g. ```` ```bash= #!/bin/sh echo "Hello world." ``` ```` This looks easy enough,...
0.0.1-alpha
76d13c2a81994b18977a688f46d884d7c2e30a00
["tests.test_renderer::test_code"]
["tests.test_attachments::test_app_with_attachments", "tests.test_attachments::test_list_attachments", "tests.test_attachments::test_get_attachment0_legcay", "tests.test_attachments::test_get_attachment0", "tests.test_attachments::test_edit_attachment0", "tests.test_attachments::test_thumbnail_legacy", "tests.test_atta...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sissaschool__xmlschema-448
sissaschool/xmlschema
ca79fcce979c1bc4ac0e70547d0ced64ea7f7821
diff --git a/xmlschema/resources/xml_loader.py b/xmlschema/resources/xml_loader.py index ba352a5..cac8ea7 100644 --- a/xmlschema/resources/xml_loader.py +++ b/xmlschema/resources/xml_loader.py @@ -267,7 +267,7 @@ class XMLResourceLoader: else: end_ns = True except SyntaxEr...
python
diff --git a/tests/test_resources.py b/tests/test_resources.py index 339a4af..fffcdff 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -380,7 +380,9 @@ class TestResources(XMLSchemaTestCase): with self.assertRaises(ElementTree.ParseError) as ctx: XMLResource(invalid_xml) - ...
2025-05-21T06:16:38+00:00Z
Validation difference 3.4.5 -> 4.0.1 I've encountered different exceptions since 4.0.0, and https://github.com/sissaschool/xmlschema/issues/446 didn't fix them. When I craft purposefully wrong inputs, I get less descriptive errors now: Input: XMLSchema('aaaaaaaaaaaaaaaaaaaaa') Before: XMLSchemaValueError: Invalid XSD...
Same here, since the `4.0.0` release of `xmlschema`, some error messages related to schema validation have changed which makes some of our [unit tests failing](https://jenkins.softwareheritage.org/job/DENV/job/tests/1639/artifact/swh-deposit.log). Previously, error messages were like: ``` Reason: Unexpected child wit...
0.0.1-alpha
d21517027e0c2baa827d00959230448a3f1afe72
["tests.test_resources.TestResources::test_xml_resource_from_string"]
["tests.test_cli.TestConsoleScripts::test_get_converter", "tests.test_cli.TestConsoleScripts::test_get_loglevel", "tests.test_cli.TestConsoleScripts::test_json2xml_command_01", "tests.test_cli.TestConsoleScripts::test_json2xml_command_02", "tests.test_cli.TestConsoleScripts::test_json2xml_command_03", "tests.test_cli.T...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nerdocs__pydifact-75
nerdocs/pydifact
d9bb320a8ee245ebb2a9a43903d49605c2967cf0
diff --git a/pydifact/parser.py b/pydifact/parser.py index f1c7c93..9d2f74d 100644 --- a/pydifact/parser.py +++ b/pydifact/parser.py @@ -52,13 +52,25 @@ class Parser: # If there is a UNA, take the following 6 characters # unconditionally, strip them, and make control Characters() # for furthe...
python
diff --git a/tests/data/sage_coala.ped b/tests/data/sage_coala.ped new file mode 100644 index 0000000..e92f70a --- /dev/null +++ b/tests/data/sage_coala.ped @@ -0,0 +1,1 @@ +DOC+01=serveur\grps\dossiers\BLABLApatr+02=9215001+03=04/07/2024+04=FD2401+05=24+06=DGFiP+07=EDITDFC+08=32489+09=99999999800028+10=BLABLApatr+11=B...
2024-10-21T11:01:19+00:00Z
EDI files from SAGE COALA starting by DOC Hello, I have some EDI files (.ped generated by SAGE COALA) that start by DOC, example : ``` DOC+01=serveur\grpx\dossiers\xxxxx+02=9215001+03=04/07/2024+04=FD2401+05=24+06=DGFiP+07=EDITDFC+08=32489+09=xxxxxxxxxxxxx+10=xxxxxxx+11=XXXXXX PATRIMOINE+12=xxxxxxxxxxx++14=FR111...
I will submit a PR
0.0.1-alpha
39734f0993b44bc99ca7765fa105882dd4dfd504
["tests.test_sage_coala::test_sage_coala_file"]
["tests.messagetypes.paxlst.test_una::test_una_segment", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_una_decimal_point", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_unb_segement", "tests.test_characters::test_with_separator_identity", "tests.test_characters::test_cc_assigning", "tests.test_cha...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
swingerman__ha-dual-smart-thermostat-121
swingerman/ha-dual-smart-thermostat
1afd8564f08db9e64d5976f273a728c27c4acd5a
diff --git a/config/configuration.yaml b/config/configuration.yaml index 68038d1..63ee8e8 100644 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -5,6 +5,8 @@ recorder: input_boolean: heater_on: name: Heater toggle + aux_heater_on: + name: AUX Heater toggle cooler_on: name: Cooler...
python
diff --git a/tests/test_cooler_mode.py b/tests/test_cooler_mode.py index 70ec305..154e2a8 100644 --- a/tests/test_cooler_mode.py +++ b/tests/test_cooler_mode.py @@ -284,9 +284,11 @@ async def test_set_preset_mode_set_temp_keeps_preset_mode( state = hass.states.get(common.ENTITY) assert state.attributes.get("t...
2024-03-18T16:27:39+00:00Z
[AUX heating] set proper AUX heating mode for UI The AUX heating mode is working, but its state is not reflected on the UI. This is caused by not setting the AUX heating HVAC mode for the component. We should set it so the UI can show the proper state.
0.0.1-alpha
c2467b861318325bc6de20bd084b51c8f3c91903
["tests.test_dual_mode::test_set_preset_mode_set_temp_keeps_preset_mode[none-18-22]", "tests.test_dual_mode::test_set_preset_mode_set_temp_keeps_preset_mode[away-16-30]", "tests.test_dual_mode::test_set_preset_mode_set_temp_keeps_preset_mode[comfort-20-27]", "tests.test_dual_mode::test_set_preset_mode_set_temp_keeps_pr...
["tests.test_cooler_mode::test_unique_id", "tests.test_cooler_mode::test_setup_defaults_to_unknown", "tests.test_cooler_mode::test_setup_gets_current_temp_from_sensor", "tests.test_cooler_mode::test_get_hvac_modes", "tests.test_cooler_mode::test_set_preset_mode[none-23]", "tests.test_cooler_mode::test_set_preset_mode[a...
["tests.test_heater_mode::test_precision"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mwaskom__seaborn-2429
mwaskom/seaborn
3fd4146781e56a06065e509f6ce76118e9c33d5f
diff --git a/doc/_docstrings/barplot.ipynb b/doc/_docstrings/barplot.ipynb index 45c9e68..e130ec4 100644 --- a/doc/_docstrings/barplot.ipynb +++ b/doc/_docstrings/barplot.ipynb @@ -160,7 +160,7 @@ "outputs": [], "source": [ "ax = sns.barplot(flights, x=\"year\", y=\"passengers\", estimator=\"sum\", errorba...
python
diff --git a/tests/test_categorical.py b/tests/test_categorical.py index 9a49fb6..319be4f 100644 --- a/tests/test_categorical.py +++ b/tests/test_categorical.py @@ -33,6 +33,7 @@ from seaborn.categorical import ( pointplot, stripplot, swarmplot, + violinplot, ) from seaborn.palettes import color_pal...
2023-05-08T00:31:04+00:00Z
Refactoring and enhancing categorical plots This issue serves to track the work involved in refactoring the categorical module to use the core infrastructure, modernizing the API, features, and implementation of the plotting functions. ## Background The categorical plots have module-specific code for processing ...
0.0.1-alpha
1b09ac4f1900317a88db742660faf47d8e71b72d
["tests.test_categorical.TestCategoricalPlotterNew::test_empty[violinplot]", "tests.test_categorical.TestViolinPlot::test_two_calls", "tests.test_categorical.TestViolinPlot::test_redundant_hue_legend", "tests.test_categorical.TestViolinPlot::test_wide_data[h]", "tests.test_categorical.TestViolinPlot::test_wide_data[v]"...
["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
simonw__sqlite-migrate-5
simonw/sqlite-migrate
9a31400a9c160846da7e5f71f58bc2fcd086deb7
diff --git a/README.md b/README.md index 51795b1..b1cdbb8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ from sqlite_migrate import Migrations # Pick a unique name here - it must not clash with other migration sets that # the user might run against the same database. -migration = Migrations("myapp") +migr...
python
diff --git a/tests/test_sqlite_utils_migrate_command.py b/tests/test_sqlite_utils_migrate_command.py index aa1eae9..6d0ff7b 100644 --- a/tests/test_sqlite_utils_migrate_command.py +++ b/tests/test_sqlite_utils_migrate_command.py @@ -26,11 +26,34 @@ def bar(db): "utf-8", ) db_path = str(path / "test.d...
2023-07-23T04:23:22+00:00Z
--list should show all migrations, not just pending Currently: ``` sqlite-utils migrate data.db --list Pending migrations for data.db: ```
This is a more interesting display at the moment: ``` % sqlite-utils rows /tmp/data.db _sqlite_migrations [{"migration_set": "myapp", "name": "m001_create_table", "applied_at": "2023-07-23 01:36:44.087130"}, {"migration_set": "myapp", "name": "m002_add_weight", "applied_at": "2023-07-23 01:36:44.087799"}] ``` Loo...
0.0.1-alpha
f8efcbaf207994f8d4ab9d86925940f28476faea
["tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR/foo/migrations.py]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR/foo/]"]
["tests.test_sqlite_migrate::test_basic", "tests.test_sqlite_utils_migrate_command::test_verbose"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sissaschool__xmlschema-396
sissaschool/xmlschema
87ddc534671739a26681565e9544c446376e642f
diff --git a/xmlschema/validators/complex_types.py b/xmlschema/validators/complex_types.py index 126072e..c9fb0b9 100644 --- a/xmlschema/validators/complex_types.py +++ b/xmlschema/validators/complex_types.py @@ -605,6 +605,10 @@ class XsdComplexType(XsdType, ValidationMixin[Union[ElementType, str, bytes], An def ...
python
diff --git a/tests/validators/test_facets.py b/tests/validators/test_facets.py index 6725f64..42c8a80 100644 --- a/tests/validators/test_facets.py +++ b/tests/validators/test_facets.py @@ -1143,6 +1143,42 @@ class TestXsdFacets(unittest.TestCase): self.assertIn("'maxLength' facet value is fixed to 30", str(e...
2024-03-24T15:10:30+00:00Z
XML parse error for the base facet has a greater min length ... ![Screenshot_2024-03-21-18-10-49-19_6012fa4d4ddec268fc5c7112cbb265e7](https://github.com/sissaschool/xmlschema/assets/65756475/98086abf-17c9-4f7d-b357-dba4f5c1fcf7) This is the part of my code : ```xsd <element name="add_list_of _strings" minOccurs=...
Hi, I have fixed this bug in minor release v3.2. The fix has required a small refactoring of the class used for representing `<xs:list>` definitions (XsdList). It wasn't the only solution for this, but it's the simplest and it didn't break any test, including W3C tests. thank you for reporting the problem
0.0.1-alpha
45c799d53d24d948051bfce80eaf0714c8cf7df4
["tests.validators.test_facets.TestXsdFacets::test_restriction_on_list__issue_396", "tests.validators.test_facets.TestXsd11Identities::test_restriction_on_list__issue_396"]
["tests.test_cli.TestConsoleScripts::test_get_converter", "tests.test_cli.TestConsoleScripts::test_get_loglevel", "tests.test_cli.TestConsoleScripts::test_json2xml_command_01", "tests.test_cli.TestConsoleScripts::test_json2xml_command_02", "tests.test_cli.TestConsoleScripts::test_json2xml_command_03", "tests.test_cli.T...
["tests.test_typing.TestTyping::test_extra_validator__issue_291", "tests.test_typing.TestTyping::test_protocols", "tests.test_typing.TestTyping::test_schema_source", "tests.test_typing.TestTyping::test_simple_types"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1088
octodns/octodns
9102caa132a46c6714054c3d8cfaf0e2a5738500
diff --git a/CHANGELOG.md b/CHANGELOG.md index d0ab5d2..2155ed8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * Added ZoneNameFilter processor to enable ignoring/alerting on type-os like octodns.com.octodns.com +* Fixed issues with handling of chunking large TXT values for providers that use + the...
python
diff --git a/tests/test_octodns_record_txt.py b/tests/test_octodns_record_txt.py index 1d46426..3d96352 100644 --- a/tests/test_octodns_record_txt.py +++ b/tests/test_octodns_record_txt.py @@ -142,3 +142,39 @@ class TestRecordTxt(TestCase): self.assertEqual(single.values, chunked.values) # should be c...
2023-10-22T00:18:37+00:00Z
"dns.exception.SyntaxError: string too long" when updating DKIM TXT record It appears that octodns-bind doesn't chunk long lines when attempting to update records. Following is a lightly-edited excerpt of one attempt: ``` $ octodns-sync --config-file config/main.yml --doit --force 2023-05-01T19:27:06 [140206852...
Hi @yzguy - if this is a good first issue, I'm happy to tackle it, but when I dug into the files mentioned in the exception stack, it wasn't obvious to me where the chunking was supposed to happen. Can you provide any pointers? @paulgear So this may not be as easy as I assumed. Generally in other providers we have...
0.0.1-alpha
bc809a0f85f5a7b83d58ebc73b4f01c8adf39663
["tests.test_octodns_record_txt.TestRecordTxt::test_rr"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
netbox-community__pynetbox-304
netbox-community/pynetbox
4c3b0f820be2d9d9fb53c52e5ab3b2d541f16e68
diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py index b5e582a..4ea7222 100644 --- a/pynetbox/core/response.py +++ b/pynetbox/core/response.py @@ -280,7 +280,11 @@ class Record(object): setattr(self, k, v) def _endpoint_from_url(self, url): - app, name = urlsplit(url).path.s...
python
diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index 44761e8..299615f 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -227,14 +227,57 @@ class RecordTestCase(unittest.TestCase): "http://localhost:8080/api/test-app/test-endpoint/321/", ) + ...
2020-12-15T21:19:42+00:00Z
Unable to use .save() on tenant Netbox 2.9.10 pynetbox 5.1.0 Creating a tenant works: tenant = nb.tenancy.tenants.create({'name': 'Tenant', 'slug': 'tenant'}) Trying to set the group on tenant: tenant.group = 1 Doing tenant.save() results in: pynetbox.core.query.RequestError: The requested url: http...
With NetBox 2.9.11 and pynetbox 5.1.0 here, I don't see the problem: ``` >>> t = netbox.tenancy.tenants.create(dict(name="Test", slug="test")) >>> pprint(dict(t)) {'comments': '', 'created': '2020-12-12', 'custom_fields': {}, 'description': '', 'group': None, 'id': 4, 'last_updated': '2020-12-12T14:28...
0.0.1-alpha
5173efda6ed2a4ca293b957345d6a02054abba6d
["tests.unit.test_response.RecordTestCase::test_endpoint_from_url_with_directory_in_base_url", "tests.unit.test_response.RecordTestCase::test_nested_write_with_directory_in_base_url"]
["tests.test_dcim.PlatformsTestCase::test_delete", "tests.test_dcim.PlatformsTestCase::test_diff", "tests.test_dcim.PlatformsTestCase::test_filter", "tests.test_dcim.PlatformsTestCase::test_get", "tests.test_dcim.PlatformsTestCase::test_get_all", "tests.test_dcim.PlatformsTestCase::test_serialize", "tests.test_tenancy....
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__git-history-43
simonw/git-history
27e755a255606b37cc8ffb57bbf7acc7be442195
diff --git a/git_history/cli.py b/git_history/cli.py index 973f7f1..f3a4c40 100644 --- a/git_history/cli.py +++ b/git_history/cli.py @@ -162,7 +162,7 @@ def file( namespace_id = db["namespaces"].lookup({"name": namespace}) - commits_to_skip = get_commit_hashes(db) + commits_to_skip = get_commit_hashes(db...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 5d6979c..93dbc1b 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -466,6 +466,63 @@ def test_file_with_id_resume(repo, tmpdir, namespace): ] +def test_file_with_id_resume_two_namespaces(repo, tmpdir): + # https...
2021-12-08T20:26:35+00:00Z
Should only consider commits for the current namespace Repeating the command against a database with more than one namespace can result in commits being missed, because all commits across all namespaces will be skipped - especially problematic if you try to run against the same file but using a different namespace. ...
thank you for fixing this! I was just encountering this bug.
0.0.1-alpha
1e3e961c6f9acb3071c5a76450120146283dfa84
["tests.test_git_history::test_file_with_id_resume_two_namespaces"]
["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
richardpenman__whois-17
richardpenman/whois
b073e282dfc6839325a67b8222bfbc23d7c91759
diff --git a/whois/parser.py b/whois/parser.py index 08631eb..85f4e5b 100644 --- a/whois/parser.py +++ b/whois/parser.py @@ -111,24 +111,24 @@ class WhoisEntry(dict): # regular expressions to extract domain data from whois profile # child classes will override this _regex = { - 'domain_name': ...
python
diff --git a/test/test_parser.py b/test/test_parser.py index 109436c..4e06329 100644 --- a/test/test_parser.py +++ b/test/test_parser.py @@ -427,7 +427,7 @@ DNSSEC: signedDelegation "status": "active", 'registrar_address': 'Drienerlolaan 5', 'registrar': 'Universiteit Twente', - ...
2022-07-03T18:30:09+00:00Z
Make postal code and state/province consistent There are two fields which are used inconsistently but where it isn't trivial to choose. ## Postal Code The two fields used are: `registrant_postal_code`, for example in `WhoisClub`, and `zipcode`, for example in `WhoisInfo`. I think that the `.info zipcode` fiel...
yeah definitely needs to be more consistent. I would prefer postal_code over zip_code because is more commonly used internationally.
0.0.1-alpha
c5f1f9848d7fe0eac9b0cc2ac68f71c417f9041a
["test.test_parser.TestParser::test_dk_parse", "test.test_parser.TestParser::test_nl_parse"]
["test.test_nicclient.TestNICClient::test_choose_server", "test.test_main.TestExtractDomain::test_ascii_with_schema_path_and_query", "test.test_main.TestExtractDomain::test_ipv4", "test.test_main.TestExtractDomain::test_ipv6", "test.test_main.TestExtractDomain::test_second_level_domain", "test.test_main.TestExtractDoma...
["test.test_parser.TestParser::test_com_allsamples"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mcp-use__mcp-use-120
mcp-use/mcp-use
525d0cd27dd689f26f40cb3da00d26dbe76d2801
diff --git a/.gitignore b/.gitignore index e83d6df..6948abd 100644 --- a/.gitignore +++ b/.gitignore @@ -122,3 +122,7 @@ dmypy.json # macOS .DS_Store + +# AI +.cursor +.claude diff --git a/mcp_use/agents/mcpagent.py b/mcp_use/agents/mcpagent.py index 45c174b..b4c33c8 100644 --- a/mcp_use/agents/mcpagent.py +++ b/mc...
python
diff --git a/tests/integration/servers_for_testing/__init__.py b/tests/integration/servers_for_testing/__init__.py new file mode 100644 index 0000000..6f7f113 --- /dev/null +++ b/tests/integration/servers_for_testing/__init__.py @@ -0,0 +1,1 @@ +# Test servers for MCP integration tests diff --git a/tests/integration/se...
2025-06-13T16:46:44+00:00Z
Connection State Not Properly Tracked After SSE Disconnection **Describe the bug** The `mcp_use` library incorrectly reports connection status as `True` even after the underlying SSE connection has been closed by the server. This causes tool calls to fail silently with empty error messages instead of triggering automa...
@DavidSanSan110 Thank you so much for the detailed bug report and excellent reproduction steps! 🙏 This helped identify and fix the connection state tracking issue. I've opened PR #122 that addresses all the issues you reported: ✅ Fixed: is_connected now properly returns False after SSE disconnection ✅ Fixed: Auto-re...
0.0.1-alpha
eb75204dc2da19ac8375428191d08b59a1bba35a
["tests.unit.test_session.TestMCPSessionConnection::test_is_connected_property", "tests.unit.test_session.TestMCPSessionOperations::test_initialize"]
["tests.unit.test_client.TestMCPClientInitialization::test_init_empty", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_dict_config", "tests.unit.test_client.TestMCPClientInitialization::test_from_dict", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_file_config", "tests.unit.te...
["tests.integration.transports.customStreaming.test_custom_streaming_integration::test_custom_streaming_sse_connection", "tests.integration.transports.customStreaming.test_custom_streaming_integration::test_mcp_tools_availability", "tests.integration.transports.customStreaming.test_custom_streaming_integration::test_mc...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-tap__tappy-107
python-tap/tappy
f55883200a8e9a01b783aefad74a15a4940808a0
diff --git a/tap/parser.py b/tap/parser.py index 9ad7bee..637436b 100644 --- a/tap/parser.py +++ b/tap/parser.py @@ -60,9 +60,6 @@ class Parser(object): TAP_MINIMUM_DECLARED_VERSION = 13 - def __init__(self): - self._try_peeking = False - def parse_file(self, filename): """Parse a TAP f...
python
diff --git a/tap/tests/test_parser.py b/tap/tests/test_parser.py index 8e89ca0..431297a 100644 --- a/tap/tests/test_parser.py +++ b/tap/tests/test_parser.py @@ -10,6 +10,14 @@ from unittest import mock from tap.parser import Parser +try: + import yaml + from more_itertools import peekable # noqa + + have...
2020-02-28T02:18:35+00:00Z
AttributeError when not all tap files are version 13 Small example with tappy 3.0: ```bash $ cat version_13.tap TAP version 13 ok 1 test_foo 1..1 $ cat not_version_13.tap 1..1 ok 1 test_bar # tests 1 # pass 1 # fail 0 $ tappy version_13.tap not_version_13.tap Traceback (most recent call last): Fil...
0.0.1-alpha
015c21c1a98b88f23844a44e346604f2398b11d5
["tap.tests.test_parser.TestParser::test_parses_mixed"]
["tap.tests.test_adapter.TestAdapter::test_adapter_has_filename", "tap.tests.test_adapter.TestAdapter::test_handles_not_ok_todo_test_line", "tap.tests.test_adapter.TestAdapter::test_handles_ok_test_line", "tap.tests.test_adapter.TestAdapter::test_handles_ok_todo_test_line", "tap.tests.test_adapter.TestAdapter::test_han...
[]
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
pypa__abi3audit-117
pypa/abi3audit
a9c608a98ef530c2a09c743976b73869ef2e888c
diff --git a/abi3audit/_cli.py b/abi3audit/_cli.py index 61a3a0f..5552169 100644 --- a/abi3audit/_cli.py +++ b/abi3audit/_cli.py @@ -5,7 +5,6 @@ The `abi3audit` CLI. from __future__ import annotations import argparse -import itertools import json import logging import os @@ -20,6 +19,7 @@ from rich.logging impor...
python
diff --git a/test/test_extract.py b/test/test_extract.py index 10d3239..9ff27b2 100644 --- a/test/test_extract.py +++ b/test/test_extract.py @@ -17,7 +17,7 @@ def test_make_spec(): assert make_specs("foo") == [PyPISpec("foo")] # Shared objects need to be tagged with `.abi3`. - with pytest.raises(InvalidS...
2024-11-07T17:03:29+00:00Z
Don't require `abi3` in shared file names or at least make it clear that it is required in the error message I'm not sure what is the intention here, but currently the tool doesn't accept shared libraries if they don't have `abi3` in their name and doesn't say that this is the reason for not accepting them: ```cons...
> Personally I think that the tool shouldn't insist on the `.abi3.` part: I understand that it's the standard convention for the wheels, but we don't distribute our Python extensions in a wheel and so they don't have it in their names, but if the tool does insist on enforcing this convention, it should at least say so,...
0.0.1-alpha
c4290c656040fb6264df07a18d96d10a355bdb26
["test.test_extract::test_make_spec"]
["test.test_audit::test_audit_results_on_golden_wheels[cryptography-42.0.7-cp37-abi3-macosx_10_12_universal2.whl]", "test.test_audit::test_audit_results_on_golden_wheels[cryptography-42.0.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl]", "test.test_audit::test_audit_results_on_golden_wheels[cryptography-4...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pallets-eco__flask-pydantic-90
pallets-eco/flask-pydantic
ec7e08b7b5317d045a1bd68ab4723ddb280403ca
diff --git a/flask_pydantic/converters.py b/flask_pydantic/converters.py index fa7e24a..5335f12 100644 --- a/flask_pydantic/converters.py +++ b/flask_pydantic/converters.py @@ -6,8 +6,11 @@ except ImportError: from typing_extensions import get_args, get_origin from pydantic import BaseModel +from pydantic.v1 im...
python
diff --git a/tests/pydantic_v1/__init__.py b/tests/pydantic_v1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/pydantic_v1/conftest.py b/tests/pydantic_v1/conftest.py new file mode 100644 index 0000000..d421fde --- /dev/null +++ b/tests/pydantic_v1/conftest.py @@ -0,0 +1,56 @@ +""" +Specific ...
2025-04-02T14:55:05+00:00Z
Support of module pydantic.v1 Since update to Pydantic V2 Hello, Since the V2 update, Pydantic V2 still includes the V1 models to make the migration easier : https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features Example : ```python from pydantic.v1 import BaseModel ``` Unfortuna...
Hi there @Merinorus , yes we have dropped support for pydantic v1, however you can still use the old version on pypi which supports the V1... Hi @yctomwang, So, developers must migrate the whole project in one step whereas they could have the ability to use progressively V2 base models. This is unfortunate because it...
0.0.1-alpha
6cb65f5dac4d6d17d7f054908898de5c769a8953
["tests.pydantic_v1.unit.test_core.TestValidate::test_response_with_status", "tests.pydantic_v1.unit.test_core.TestValidate::test_response_many_response_objs", "tests.pydantic_v1.unit.test_core.TestIsIterableOfModels::test_simple_true_case", "tests.pydantic_v1.unit.test_core::test_convert_query_params[primitive types]"...
["tests.pydantic_v1.unit.test_core.TestValidate::test_response_already_response", "tests.pydantic_v1.unit.test_core.TestValidate::test_invalid_many_raises", "tests.pydantic_v1.unit.test_core.TestIsIterableOfModels::test_false_for_non_iterable", "tests.pydantic_v1.unit.test_core.TestIsIterableOfModels::test_false_for_si...
["tests.func.test_app.TestSimple::test_post[invalid limit]", "tests.func.test_app.TestSimple::test_post[missing required body parameter]", "tests.func.test_app.TestSimple::test_post[valid parameters]", "tests.func.test_app.TestSimple::test_post[valid params, no query]", "tests.func.test_app.TestSimple::test_post_kwargs...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-benchmark-670
opensearch-project/opensearch-benchmark
dcc4bf65a64fb3fc5efe9568a3365dfa70d1334a
diff --git a/osbenchmark/aggregator.py b/osbenchmark/aggregator.py index d53409f..58b0682 100644 --- a/osbenchmark/aggregator.py +++ b/osbenchmark/aggregator.py @@ -13,28 +13,32 @@ class Aggregator: self.args = args self.test_executions = test_executions_dict self.accumulated_results: Dict[st...
python
diff --git a/tests/aggregator_test.py b/tests/aggregator_test.py index 6436fe4..32be06c 100644 --- a/tests/aggregator_test.py +++ b/tests/aggregator_test.py @@ -1,4 +1,4 @@ -from unittest.mock import Mock, patch, mock_open +from unittest.mock import Mock import pytest from osbenchmark import config from osbenchmark....
2024-12-05T21:54:19+00:00Z
[FEATURE] Support custom iteration values in new `aggregate` command ### Is your feature request related to a problem? Please describe Currently, the new `aggregate` command calculates weighted averages for metrics using the number of iterations for each operation. However, some users may want to run their workloads ...
0.0.1-alpha
bf8e58e31c344a4821f342e64731a9639691c1c2
["tests.aggregator_test::test_count_iterations_for_each_op", "tests.aggregator_test::test_calculate_weighted_average"]
["tests.aggregator_test::test_accumulate_results", "tests.aggregator_test::test_test_execution_compatibility_check", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_rsd", "tests.aggregator_test::test_test_execution_compatibility_check_incompatible", "tests.aggregator_test::te...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
m-burst__flake8-pytest-style-295
m-burst/flake8-pytest-style
5c79fe6b4281c4cf6f895b455436fd0ddb42002c
diff --git a/README.md b/README.md index 970a01a..c758a79 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ MIT **Unreleased** +* support `reason=` kwarg in `pytest.fail` for [PT016] * require at least Python 3.9 * support Python 3.13 diff --git a/docs/rules/PT016.md b/docs/rules/PT016.md index ffd917c....
python
diff --git a/tests/test_PT016_fail_without_message.py b/tests/test_PT016_fail_without_message.py index 62a9ab2..f8d09bb 100644 --- a/tests/test_PT016_fail_without_message.py +++ b/tests/test_PT016_fail_without_message.py @@ -16,12 +16,22 @@ def test_ok_arg(): def test_ok_kwarg(): code = """ def test_xxx(...
2025-01-10T13:09:37+00:00Z
When I pass `reason` instead of `msg` to `pytest.fail()` PT016 is flagged # Bug report ## What's wrong The API of `pytest.fail()` has changed ([see here](https://docs.pytest.org/en/8.2.x/reference/reference.html#pytest-fail)). It is now recommended to use the parameter `reason` rather than `msg`, although the la...
Hi @jonssonchristian, I've just released v2.1.0 with this change.
0.0.1-alpha
f647dfbd9d99134f6e8b6037fea6b0cdbe7e9442
["tests.test_PT016_fail_without_message::test_ok_kwarg"]
["tests.test_PT001_incorrect_fixture_parentheses_style::test_ok_no_parameters", "tests.test_PT001_incorrect_fixture_parentheses_style::test_ok_with_parameters", "tests.test_PT001_incorrect_fixture_parentheses_style::test_ok_without_parens", "tests.test_PT001_incorrect_fixture_parentheses_style::test_error_without_paren...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyinat__pyinaturalist-82
pyinat/pyinaturalist
98080d23eb9c77857f4114780b7b43e32e475039
diff --git a/pyinaturalist/api_requests.py b/pyinaturalist/api_requests.py index 7e406a5..45c239f 100644 --- a/pyinaturalist/api_requests.py +++ b/pyinaturalist/api_requests.py @@ -1,4 +1,5 @@ """ Some common functions for HTTP requests used by both the Node and REST API modules """ +import threading from logging imp...
python
diff --git a/test/test_api_requests.py b/test/test_api_requests.py index f2f4db5..31dac1d 100644 --- a/test/test_api_requests.py +++ b/test/test_api_requests.py @@ -7,13 +7,18 @@ from pyinaturalist.api_requests import MOCK_RESPONSE, delete, get, post, put, re # Just test that the wrapper methods call requests.reques...
2021-01-07T18:08:09+00:00Z
Improve performance for auto-paginated functions Functions that perform pagination like `get_all_observations()` could be improved. They should use `requests.Session` to take advantage of its connection pooling, and also request the largest possible page size.
Not sure if this would deserve a new issue because this is not a bug. This is the only "related" subject I found ... although it is not related either. I am downloading all my user occurrences as json files which I store for later processing. I have the feeling they are much bigger than I would need, basically bec...
0.0.1-alpha
108b6c0329a133e9f5fc87e771b05ecab57a43d9
["test.test_api_requests::test_http_methods[delete-DELETE]", "test.test_api_requests::test_http_methods[get-GET]", "test.test_api_requests::test_http_methods[post-POST]", "test.test_api_requests::test_http_methods[put-PUT]"]
["test.test_api_requests::test_request_headers[input_kwargs0-expected_headers0]", "test.test_api_requests::test_request_headers[input_kwargs1-expected_headers1]", "test.test_api_requests::test_request_headers[input_kwargs2-expected_headers2]", "test.test_api_requests::test_request_dry_run[False-False-False-False-GET-Tr...
["test.test_api_requests::test_request_dry_run_disabled", "test.test_auth::test_get_access_token", "test.test_auth::test_get_access_token__envars", "test.test_auth::test_get_access_token__mixed_args_and_envars", "test.test_auth::test_get_access_token__keyring", "test.test_auth::test_get_access_token__invalid_creds", "t...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__strip-tags-13
simonw/strip-tags
0869c8fef7bde725ab52894928380a9855bbf56d
diff --git a/README.md b/README.md index 19df01a..a15eff4 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,10 @@ This can be called with multiple selectors: ```bash cat input.html | strip-tags '.content' '.sidebar' > output.txt ``` +To return just the first element on the page that matches one of the selectors, u...
python
diff --git a/tests/test_strip_tags.py b/tests/test_strip_tags.py index 7e683b6..0efd71f 100644 --- a/tests/test_strip_tags.py +++ b/tests/test_strip_tags.py @@ -5,64 +5,71 @@ from strip_tags import strip_tags from strip_tags.cli import cli TEST_PARAMETERS = ( - ("<p>Hello <b>world</b></p>", [], "Hello world\n"),...
2023-06-18T06:48:22+00:00Z
`--first` option for only handling the first matching selector Similar to the difference between `document.querySelectorAll()` and `document.querySelector()`. So this should work: ``` curl -s https://simonwillison.net/2018/Dec/19/fast-autocomplete-search/ | \ strip-tags pre --first ``` To return just the f...
Demo: ``` % curl -s https://simonwillison.net/2018/Dec/19/fast-autocomplete-search/ | \ strip-tags pre --first wget --recursive --wait 2 --no-clobber -I /2005,/2006,/2007,/2008,/2009,/2010,/2011,/2012,/2013,/2014,/2015,/2016,/2017 -X "/*/*/comments" https://24ways.org/archives/ ```
0.0.1-alpha
14950cef1935d49cfeea35938a3e373017f74e3f
["tests.test_strip_tags::test_strip_cli[False-Ignore start<p>First paragraph</p><p>Second paragraph</p>Ignore end-args12-First paragraph]", "tests.test_strip_tags::test_strip_cli[True-Ignore start<p>First paragraph</p><p>Second paragraph</p>Ignore end-args12-First paragraph]", "tests.test_strip_tags::test_strip_lib[<p>...
["tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args0-Hello world]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args1-Hello world]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args2-world]", "tests.test_strip_tags::test_strip_cli[False-<div...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mwaskom__seaborn-3058
mwaskom/seaborn
c412ddf1fede5d8882a6c230826c1d8fbbf61911
diff --git a/doc/whatsnew/v0.12.1.rst b/doc/whatsnew/v0.12.1.rst index a1ea329..a3a9820 100644 --- a/doc/whatsnew/v0.12.1.rst +++ b/doc/whatsnew/v0.12.1.rst @@ -10,4 +10,6 @@ v0.12.1 (Unreleased) - |Fix| Fixed a bug that caused an exception when more than two layers with the same mappings were added (:pr:`3055`). ...
python
diff --git a/tests/test_distributions.py b/tests/test_distributions.py index 87be814..c4d62fa 100644 --- a/tests/test_distributions.py +++ b/tests/test_distributions.py @@ -1060,6 +1060,15 @@ class TestKDEPlotBivariate: for c in ax.collections: assert_colors_equal(get_contour_color(c), color) + ...
2022-10-08T23:02:16+00:00Z
unable to plot with custom color ramp seaborn 0.12.0 I was trying to use seaborn kdeplot with custom colour ramp, it is working with seaboarn version 0.11.00, but not with seaboarn 0.12.0 **color ramp as below** ``` def make_Ramp( ramp_colors ): from colour import Color from matplotlib.colors import L...
Hi, can you please turn this into a reproducible example? I don't have your data (nor do I need it, just just one of the built in datasets) and I don't know what the `colour` module is. hi, when I run the same code with seaborn 0,11.0 it works, but not with 0.12.0 `pip install colour` ``` # Imports from __fut...
0.0.1-alpha
3f623e7499263440491417ca642fdae9e1d3c9dd
["tests.test_distributions.TestKDEPlotBivariate::test_contour_line_cmap"]
["tests.test_algorithms::test_bootstrap", "tests.test_algorithms::test_bootstrap_length", "tests.test_algorithms::test_bootstrap_range", "tests.test_algorithms::test_bootstrap_multiarg", "tests.test_algorithms::test_bootstrap_axis", "tests.test_algorithms::test_bootstrap_seed", "tests.test_algorithms::test_bootstrap_ol...
["tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats_with_missing_data", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats_wit...
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
sepandhaghighi__pycm-284
sepandhaghighi/pycm
457e90d1c723e8866f3fe4d83f0c34c86f0e4cd9
diff --git a/pycm/pycm_param.py b/pycm/pycm_param.py index d4bca59..3b7da48 100644 --- a/pycm/pycm_param.py +++ b/pycm/pycm_param.py @@ -55,7 +55,8 @@ SUMMARY_OVERALL = [ "Zero-one Loss", "F1 Macro", "TPR Macro", - "PPV Macro"] + "PPV Macro", + "FPR Macro"] SUMMARY_CLASS = [ "ACC", @@ -6...
python
diff --git a/Test/overall_test.py b/Test/overall_test.py index a3b9558..3cadb22 100644 --- a/Test/overall_test.py +++ b/Test/overall_test.py @@ -600,6 +600,7 @@ Overall Statistics : <BLANKLINE> ACC Macro 0.675 F1 Macro ...
2020-02-26T23:19:27+00:00Z
Some metrics missing, and extension request Some metrics like fpr micro, macro etc. And please include the extension like ROC-AUC curve for multi clasification
@reshusuri Thanks for your comment 💯 We will add `FPR Macro/Micro`,`TNR Macro/Micro` and `FNR Macro/Micro` in a future release. But we don't have any plan for adding ROC curve, because we think it's out of PyCM scope. fixed
0.0.1-alpha
313101b6c61bf7d03b413db83e4f12016bd7a137
["Test.overall_test::overall_test"]
["Test.compare_test::compare_test", "Test.error_test::error_test", "Test.function_test::function_test", "Test.output_test::output_test", "Test.verified_test::verified_test", "Test.warning_test::warning_test", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["pycm.pycm_compare::pycm.pycm_compare.Compare"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-920
more-itertools/more-itertools
abbcfbce24cb59e62e01daac4d80f9658202708a
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a568e33..01935a6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3....
python
diff --git a/tests/test_recipes.py b/tests/test_recipes.py index 21734ac..0aad5f5 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -1215,3 +1215,158 @@ class TotientTests(TestCase): ): with self.subTest(n=n): self.assertEqual(mi.totient(n), expected) + + +class Pr...
2024-12-05T13:25:02+00:00Z
Add is_prime() Consider adding an `is_prime()` function. It is not an iterator but does fit nicely with the other math tools. Here's some code (tested) that gets the job done and that has fast paths for smaller inputs: ``` from random import randrange from functools import lru_cache # https://en.wikipedia.o...
This is great. k=30 gives a false positive with probability 10^-18 (for <= 81 bit numbers it's probability zero). Is it fair to assume that anyone remotely likely to find 30 false witnesses for some pseudoprime n, from randomly chosen bases, will be using other tools or will have read the source code? I love this s...
0.0.1-alpha
1b721ce2be1f3854f2db745636432179f39ffea4
["tests.test_recipes.PrimeFunctionTests::test_is_prime_pseudoprimes", "tests.test_recipes.PrimeFunctionTests::test_primes", "tests.test_recipes.PrimeFunctionTests::test_special_primes"]
["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-80
pyprojectx/pyprojectx
7f14480416bb1e50b4c179f9e1958b8cd0192f33
diff --git a/CHANGELOG.md b/CHANGELOG.md index 066cb90..746c60f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### Features & Improvements +- #80 add support to create a project virtual environment + Release v2.0.7 (2024-01-25) ---------------------------- ### Features & Improvements diff --git a/docs...
python
diff --git a/tests/data/pw-test.toml b/tests/data/pw-test.toml index e0f2a80..70b8ec8 100644 --- a/tests/data/pw-test.toml +++ b/tests/data/pw-test.toml @@ -3,6 +3,7 @@ main = { requirements = ["px-utils"], post-install = "pxmkdirs post-install-dir" pycowsay = "pycowsay==0.0.0.1" failing-install = "pycowsay==123.45...
2024-01-31T15:10:46+00:00Z
add support to create a project virtual environment Create a virtual environment that can be activated and used for project development. This can be achieved by allowing to specify the installation directory for a tool context: ```toml [tool.pyprojectx.venv] dir = "@PROJECT_DIR/.venv" requirements = ["pytest==8...
0.0.1-alpha
965cd6d5a6267e3f2debe8cb1a07527fd98cd074
["tests.integration.test_pw::test_venv_dir", "tests.unit.test_config::test_no_config", "tests.unit.test_config::test_ctx_config"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tusharsadhwani__zxpy-6
tusharsadhwani/zxpy
bb871b3376e485b36f1b1c096428b1940513bf20
diff --git a/zx.py b/zx.py index 147cafb..10aed40 100644 --- a/zx.py +++ b/zx.py @@ -27,7 +27,7 @@ import inspect import subprocess import sys import traceback -from typing import Literal, Optional, Union, overload +from typing import Literal, Optional, Tuple, Union, overload def cli() -> None: @@ -88,6 +88,26 ...
python
diff --git a/tests/test_files/returncode.py b/tests/test_files/returncode.py new file mode 100644 index 0000000..c91ab6e --- /dev/null +++ b/tests/test_files/returncode.py @@ -0,0 +1,6 @@ +_, _, return_code = ~"false" +assert return_code == 1 + +exit_code = 123 +_, _, return_code = ~f"exit {exit_code}" +assert return_c...
2021-06-23T12:49:43+00:00Z
How to deal with return codes Perhaps I miss something easy. But I could not see how I would deal with return codes > 0, i.e a command I issue returns an error. Example: `~'cat /etc/shadow`
You could do something like: ``` return_code = ~'cat /etc/shadow 2> /dev/null; echo $?' print(return_code) # 1 ``` Bash itself has support for a bunch of these redirect requirements. Although not the cleanest, this should work for such cases. I could possibly change the syntax of the return btw: `output, s...
0.0.1-alpha
2982a0236b071330f975cb9fccd48df5389cf274
["tests.zxpy_test::test_stdout_stderr_returncode[echo hello world-hello world\\n--0]", "tests.zxpy_test::test_stdout_stderr_returncode[echo -n failed && exit 200-failed--200]", "tests.zxpy_test::test_stdout_stderr_returncode[cat .--cat: .: Is a directory\\n-1]", "tests.zxpy_test::test_files[./tests/test_files/returncod...
["tests.zxpy_test::test_shell_output[echo hello world-hello world]", "tests.zxpy_test::test_shell_output[ls | tail -6 | wc -l-6]", "tests.zxpy_test::test_shell_output[find . -maxdepth 1 -name '*\\\\.py' | grep -v test | wc -l-3]", "tests.zxpy_test::test_shell_output[cat /etc/shadow 2> /dev/null; echo $?-1]", "tests.zxp...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__samila-73
sepandhaghighi/samila
c4f193f6c46522bdbceedfbaf646b1060a84bdf8
diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d7ff5..3035ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added +- `PLOT_DATA_ERROR` error message +- `_GI_initializer` function +- `generate_para...
python
diff --git a/test/error_test.py b/test/error_test.py index 263d9bd..35995c4 100644 --- a/test/error_test.py +++ b/test/error_test.py @@ -2,25 +2,42 @@ """ >>> from samila import * >>> import os +>>> import json >>> from pytest import warns >>> g = GenerativeImage(data="data.json") Traceback (most recent call last...
2022-01-04T15:24:12+00:00Z
Plot from JSON #### Description You can make a unique Samila art with a **pair of function** and a **random seed**. Also you can plot your art with different configurations like `projection`, `color` and etc. It would be nice if we have a `config` parameter which initialize some settings for desired art (with the ...
0.0.1-alpha
78f4c9a4d0e0b4d0dcd9ecb3acb647d2e40b3485
["test.error_test::error_test", "test.function_test::function_test", "test.overall_test::overall_test", "test.warning_test::warning_test"]
["samila.genimage::samila.genimage.GenerativeImage"]
["samila.params::samila.params.Projection", "test.nft_upload_test::nft_upload_test"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__llm-replicate-8
simonw/llm-replicate
1540533307f38f3b2eb9cfaf47ca327a30c28460
diff --git a/README.md b/README.md index 8113a54..dcbd0a8 100644 --- a/README.md +++ b/README.md @@ -29,29 +29,75 @@ To fetch and save details of [the default collection](https://replicate.com/coll ```bash llm replicate fetch-models ``` +To add specific models that aren't listed in that collection, use the `llm repl...
python
diff --git a/tests/test_replicate.py b/tests/test_replicate.py index ad6ee67..a74407b 100644 --- a/tests/test_replicate.py +++ b/tests/test_replicate.py @@ -2,6 +2,8 @@ from click.testing import CliRunner import json from llm.cli import cli import pathlib +import pytest +import sqlite_utils from unittest.mock impor...
2023-07-18T18:54:20+00:00Z
Support for chat models and conversations https://replicate.com/a16z-infra/llama13b-v2-chat is LLaMA v2. ```bash llm replicate add a16z-infra/llama13b-v2-chat --alias llama2 llm -m llama2 "say hello" ``` Outputs: > to your new favorite drink. > The classic cocktail, reimagined. > Introducing the Espresso Ma...
I'm going to implement this as a flag you pass to `llm replicate add`: ```bash llm replicate add a16z-infra/llama13b-v2-chat --alias llama2 --chat ``` The `--chat` option will be recorded in `models.json` and will cause it to use the `User: ...\nAssistant:` prompt format. I'll add a way to set a custom prompt ...
0.0.1-alpha
9cd567e947730aebbc9b1a5984c5e93c26c5ac5c
["tests.test_replicate::test_add_model[True]"]
["tests.test_replicate::test_add_model[False]"]
["tests.test_replicate::test_replicate_prompt", "tests.test_replicate::test_chat_model_prompt"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mivade__argparse_dataclass-41
mivade/argparse_dataclass
11cf9ef468a9f5d54d83275b9317492bf98c68ce
diff --git a/argparse_dataclass.py b/argparse_dataclass.py index 482861d..1b7b560 100644 --- a/argparse_dataclass.py +++ b/argparse_dataclass.py @@ -252,7 +252,6 @@ else: help=None, metavar=None, ): - _option_strings = [] for option_string in option_strings: ...
python
diff --git a/tests/test_argumentparser.py b/tests/test_argumentparser.py index 0929273..972ce1c 100644 --- a/tests/test_argumentparser.py +++ b/tests/test_argumentparser.py @@ -228,6 +228,34 @@ class ArgumentParserTests(unittest.TestCase): self.assertEqual(params.name, "John Doe") self.assertEqual(par...
2023-03-07T18:11:38+00:00Z
Support Union types again Consider the scenario, where an argument could have one of multiple types (see code below). Under version 0.2.1 this code worked. Now under 1.0.0 it breaks with "TypeError: Union types other than 'Optional' are not supported" ``` from dataclasses import dataclass, field from typing impor...
Closed via #42.
0.0.1-alpha
5919cf2464a542d1f2ba4a6053510bf4688e9d7c
["tests.test_argumentparser.ArgumentParserTests::test_union_args"]
["tests.test_argumentparser.ArgumentParserTests::test_basic", "tests.test_argumentparser.ArgumentParserTests::test_basic_negative", "tests.test_argumentparser.ArgumentParserTests::test_choices", "tests.test_argumentparser.ArgumentParserTests::test_choices_negative", "tests.test_argumentparser.ArgumentParserTests::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonmesmith__agentflow-35
simonmesmith/agentflow
2c84f4f4166bc267e8a99f57a8941cb934f09ea6
diff --git a/agentflow/flow.py b/agentflow/flow.py index c6cc06d..e328a29 100644 --- a/agentflow/flow.py +++ b/agentflow/flow.py @@ -211,6 +211,16 @@ class Flow: :param task: The task to be processed. :type task: Task """ + self.messages.append( + { + "role": ...
python
diff --git a/tests/test_flow.py b/tests/test_flow.py index 5c8185d..b300931 100644 --- a/tests/test_flow.py +++ b/tests/test_flow.py @@ -19,13 +19,29 @@ def mock_llm_respond( settings: Settings, messages: List[Dict[str, str]], functions: Optional[List[Dict[str, str]]] = None, -) -> Dict[str, str]: +) -> ...
2023-08-09T15:42:07+00:00Z
Expand flow test coverage to include function execution It's hard to test function execution without actually using an LLM, which we don't want to do for a few reasons (nondeterminism, use of a third-party API that can go down, pinging that API every time we run a test, etc.). We should expand test_flow.py to test tha...
0.0.1-alpha
1b0b2cc394b641ad16217e6da528d488e93b1f3f
["tests.test_flow::test_flow_with_functions"]
["tests.test_flow::test_file_not_found", "tests.test_flow::test_flow_basic", "tests.test_flow::test_flow_with_variables", "tests.test_function::test_function", "tests.test_function_create_image::test_execute", "tests.test_function_get_url::test_execute_html", "tests.test_function_get_url::test_execute_text", "tests.tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ttu__ruuvitag-sensor-157
ttu/ruuvitag-sensor
6338aebcc4c6a1041efcf6cd8a3eb4eb8ea3eb62
diff --git a/README.md b/README.md index 8511a99..0f6223e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ RuuviTag Sensor is a Python library for communicating with [RuuviTag BLE Sensor * [Bleson install guide](#Bleson) * Python 3.7+ * If you need to use Python 2.x or <3.7, check [install instructi...
python
diff --git a/tests/test_ruuvitag_sensor.py b/tests/test_ruuvitag_sensor.py index 2334e1d..bfadff2 100644 --- a/tests/test_ruuvitag_sensor.py +++ b/tests/test_ruuvitag_sensor.py @@ -1,5 +1,5 @@ -from pytest import raises from unittest.mock import patch +from pytest import raises from ruuvitag_sensor.ruuvi import Ruu...
2022-07-18T19:43:14+00:00Z
Changing the spelling of datas to data As the correct correct spelling for data is data and not data**s** I would like to correct this. However as there is (at least) one function (`get_datas()`) with datas in the name doing this change would cause an API breakage. How should I go about tho make this change? I see t...
Hi! Thanks for bringing this up. Breaking API is not often a good choice, especially in cases where we do not really make any significant improvement. But I agree that we should fix this. My suggestion would be that we add get_data-method to RuuviTagSensor, but we do not remove get_datas-method, but it is marked ...
0.0.1-alpha
df0b6f0c980f7893d9993db381766139b0806144
["tests.test_ruuvitag_sensor.TestRuuviTagSensor::test_find_tags", "tests.test_ruuvitag_sensor.TestRuuviTagSensor::test_get_data_for_sensors", "tests.test_ruuvitag_sensor.TestRuuviTagSensor::test_get_data", "tests.test_ruuvitag_sensor.TestRuuviTagSensor::test_get_data_with_macs"]
["tests.test_data_formats.TestDataFormats::test_convert_data_valid_data", "tests.test_data_formats.TestDataFormats::test_convert_data_not_valid_binary", "tests.test_data_formats.TestDataFormats::test_convert_data_not_valid", "tests.test_data_formats.TestDataFormats::test_get_data_format_3_valid_data", "tests.test_data_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__samila-41
sepandhaghighi/samila
d2a35903652a3ab668ea71328cb5310c2c0adaae
diff --git a/samila/functions.py b/samila/functions.py index 169ca60..64bd31e 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -2,7 +2,8 @@ """Samila functions.""" import requests -from .params import Projection, DEFAULT_PROJECTION, VALID_COLORS, NFT_STORAGE_API, NFT_STORAGE_SUCCESS_MESSAGE, OVERVIEW +...
python
diff --git a/test/function_test.py b/test/function_test.py index 9955a4f..142256e 100644 --- a/test/function_test.py +++ b/test/function_test.py @@ -2,6 +2,7 @@ """ >>> import random >>> import math +>>> import os >>> import pickle >>> from samila import GenerativeImage, Projection >>> from samila.functions impor...
2021-10-12T13:03:10+00:00Z
Save Method #### Description We need a method which can save Samila arts into different types of images. It would need to just save the generated plot. #### Steps/Code to Reproduce ``` >>> g.save(filename="samile.png") ``` #### Expected Behavior Save the plotted art into a given filename file. #### Actu...
@sadrasabouri I will handle this issue
0.0.1-alpha
3c8030de978982c161dcc9d540cf50b0c1774453
["test.function_test::function_test"]
["samila.genimage::samila.genimage.GenerativeImage"]
["samila.params::samila.params.Projection"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pylessard__python-can-isotp-59
pylessard/python-can-isotp
8e473b288106aaf65da1449c1c47489b5c3bceb9
diff --git a/doc/source/isotp/implementation.rst b/doc/source/isotp/implementation.rst index e355994..db80cf4 100755 --- a/doc/source/isotp/implementation.rst +++ b/doc/source/isotp/implementation.rst @@ -211,6 +211,17 @@ The transport layer ``params`` parameter must be a dictionary with the following Refer to :ref...
python
diff --git a/test/test_transport_layer.py b/test/test_transport_layer.py index de462f7..68360da 100755 --- a/test/test_transport_layer.py +++ b/test/test_transport_layer.py @@ -120,6 +120,23 @@ class TestTransportLayer(TransportLayerBaseTest): self.assertEqual(data, bytearray(payload)) self.assertIsNo...
2022-03-06T23:57:29+00:00Z
Possibility to switch off Flow Control sending on Rx I have some projects where it is not necessary to send a flow control after reception of first frame In my case another ECU is taking care of that. Proposal: Implement a parameter to switch off flow control on reception, e.g. ![image](https://user-images.github...
Hi I'd like to take care of this modification as I'd like it to be unit tested and documented. Do you need to transmit with your stack? I was thinking about disabling completely transmission in Listen Mode. Any opinion? Thank you Hi Pierre, actually the idea was to be able to transmit still, but having the opt...
0.0.1-alpha
184106b8d959db130a127c484fc868f70998f323
["test.test_transport_layer.TestTransportLayer::test_receive_multiframe_check_no_flowcontrol_listen_mode"]
["test.test_transport_layer.TestTransportLayer::test_can_fd_singleframe_tx_dl", "test.test_transport_layer.TestTransportLayer::test_canfd_multiframe_boundary_txdl_64", "test.test_transport_layer.TestTransportLayer::test_long_multiframe_2_flow_control", "test.test_transport_layer.TestTransportLayer::test_long_multiframe...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__nafas-3
sepandhaghighi/nafas
863f2648031e044859084f0c299a0270919d2666
diff --git a/CHANGELOG.md b/CHANGELOG.md index 99e6c34..10fc891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Adde...
python
diff --git a/test/test.py b/test/test.py index c8ae886..a267d07 100644 --- a/test/test.py +++ b/test/test.py @@ -39,6 +39,33 @@ Cautions: 2. If you have asthma or high blood pressure should not hold the breath 3. If you feel dizzy, nauseous, or lightheaded stop practicing and rest <BLANKLINE> +>>> validate_config({"...
2025-03-20T03:27:14+00:00Z
Add custom program feature
Loading information from a config file to add a new program.
0.0.1-alpha
b01399b3aa7d8d4e8471b2bff015bebfd04fbcf1
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
xflr6__graphviz-114
xflr6/graphviz
0c503a32f5f17f99a6e0ad8ac29fb441e3c0a9f2
diff --git a/docs/manual.rst b/docs/manual.rst index e3c4f92..bf94f7a 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -453,6 +453,19 @@ Both produce the same result: (:ref:`example <cluster.py>`). Also see the `Subgraphs and Clusters` section of `the DOT language documentation <DOT_>`_. +Subgraphs sup...
python
diff --git a/tests/test_dot.py b/tests/test_dot.py index 831e602..21af487 100644 --- a/tests/test_dot.py +++ b/tests/test_dot.py @@ -74,6 +74,15 @@ def test_attr_invalid_kw(cls): cls().attr('spam') +def test_inherit_render_properties(): + # non default values + d = Graph(format='svg', directory='..',...
2020-10-13T10:22:15+00:00Z
subgraphs don't inherit format Hello again, So I thought about how it might be useful to save the source or render subgraphs. It appears that this code: ``` import graphviz d=graphviz.Digraph() d.format="svg" d.attr(shape="box") with d.subgraph(name="cluster_1") as sub: sub.node("1","hello") ...
Thanks. I am not sure how good of a use case it is to `render()` a subgraph that was created via the context-manager (if a subgraph is meaningful also on its own, one might rather create the subgraphs independently and then add them to the (super)graph). In other words, this was not envisioned. On the other hand, I ...
0.0.1-alpha
9bc680336bb5228f2ffa3e8e65bd11d1db8be572
["tests.test_dot::test_inherit_render_properties"]
["README.rst::README.rst", "graphviz.__init__::graphviz", "graphviz.dot::graphviz.dot", "graphviz.lang::graphviz.lang.a_list", "graphviz.lang::graphviz.lang.attr_list", "graphviz.lang::graphviz.lang.escape", "graphviz.lang::graphviz.lang.nohtml", "graphviz.lang::graphviz.lang.quote", "graphviz.lang::graphviz.lang.quote...
["docs.manual.rst::manual.rst", "tests.test_backend::test_render_missing_file[quiet=False]", "tests.test_backend::test_render_missing_file[quiet=True]", "tests.test_backend::test_render[dot-pdf-None-None-pdf]", "tests.test_backend::test_render[dot-plain-dot-core-core.dot.plain]", "tests.test_backend::test_render_img", ...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-distro__distro-238
python-distro/distro
4d76bd160f8ef98dadd260218f2bce42c03435d1
diff --git a/src/distro/distro.py b/src/distro/distro.py index 826616e..8c76d71 100755 --- a/src/distro/distro.py +++ b/src/distro/distro.py @@ -151,7 +151,8 @@ def linux_distribution(full_distribution_name: bool = True) -> Tuple[str, str, s * ``version``: The result of :func:`distro.version`. - * ``codena...
python
diff --git a/tests/test_distro.py b/tests/test_distro.py index 6ffe654..78abf47 100644 --- a/tests/test_distro.py +++ b/tests/test_distro.py @@ -1833,6 +1833,9 @@ class TestInfo(DistroTestCase): self.ubuntu14_os_release = os.path.join( DISTROS_DIR, "ubuntu14", "etc", "os-release" ) + ...
2022-02-13T17:56:57+00:00Z
Distro 1.40: possible regression in distro.codename() Calls to `distro.codename()` worked as expected in 1.30, but in 1.40 I'm seeing what amounts to truncated output. **Python 3.6.7 on Ubuntu 18.04** 1.30 Bionic Beaver 1.40 bionic **Python 3.7.*x* on Ubuntu 18.10** 1.30 Cosmic Cuttlefish 1.4...
This also breaks compatibility between `platform.linux_distribution` and `distro.linux_distribution`: ``` >>> platform.linux_distribution(), distro.linux_distribution() (('Ubuntu', '18.04', 'bionic'), ('Ubuntu', '18.04', 'Bionic Beaver')) ``` You are right, it looks like #230 broke this, and thus the compatibilit...
0.0.1-alpha
a08f31b676bd74995157aee566bb34d871ea89c0
["tests.test_distro.TestInfo::test_linux_distribution"]
["tests.test_distro.TestNonLinuxPlatform::test_cant_use_on_windows", "tests.test_distro.TestCli::test_cli_for_coverage_yuch", "tests.test_distro.TestCli::test_cli_can_parse_root_dir_args", "tests.test_distro.TestCli::test_cli", "tests.test_distro.TestCli::test_cli_json", "tests.test_distro.TestCli::test_cli_with_root_d...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
vzhd1701__evernote-backup-86
vzhd1701/evernote-backup
ec6585395280327aa0c2004c63acccb718ed5eaf
diff --git a/evernote_backup/note_formatter.py b/evernote_backup/note_formatter.py index a559700..e521d2f 100644 --- a/evernote_backup/note_formatter.py +++ b/evernote_backup/note_formatter.py @@ -42,8 +42,8 @@ class NoteFormatter(object): "source-url": note.attributes.sourceURL, "sour...
python
diff --git a/tests/test_note_formatter.py b/tests/test_note_formatter.py index ff3e763..ff2821a 100644 --- a/tests/test_note_formatter.py +++ b/tests/test_note_formatter.py @@ -48,6 +48,9 @@ test_note_data = Note( source="desktop.win", sourceURL="https://www.example.com/page?category=blog&post_id=123"...
2025-04-07T07:08:11+00:00Z
[Bug]: Reminder Time Formatted Incorrectly in exported note inside a notebook ### evernote-backup version 1.9.3 ### What OS are you using? MacOS ### OS Version / Linux distribution Sonoma 14.4.1 ### Bug description Yarle reports that the reminder time is in the wrong format. evernote-backup's notebook XML of...
It looks like the problem is in note_formatter.py that has (starting in line 34 of the source I looked at): ``` if note.attributes: note_skeleton["note"]["note-attributes"] = { "subject-date": fmt_time(note.attributes.subjectDate), "latitude": note.attributes.l...
0.0.1-alpha
eceea645e444b777d948481b77f4cc076e930518
["tests.test_note_formatter::test_formatter"]
["tests.test_cli_app::test_cli_main_import", "tests.test_cli_app_util::test_unscrambler", "tests.test_cli_app_util::test_natural_order_group", "tests.test_cli_app_util::test_cli_test_tty[10-0:10]", "tests.test_cli_app_util::test_cli_test_tty[65-01:05]", "tests.test_cli_app_util::test_cli_test_tty[3605-01:00:05]", "test...
["tests.test_cli_app::test_cli_quiet[True-50]", "tests.test_cli_app::test_cli_quiet[False-20]", "tests.test_cli_app::test_cli_verbose[True-10]", "tests.test_cli_app::test_cli_verbose[False-20]", "tests.test_cli_app::test_cli_test_tty[False-%(asctime)s | [%(levelname)s] | %(thread)d | %(message)s]", "tests.test_cli_app:...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
timvink__mkdocs-print-site-plugin-46
timvink/mkdocs-print-site-plugin
857625cab1b10ee309c4f385665865ec2b6965aa
diff --git a/docs/demo_content.md b/docs/demo_content.md index 34330e9..685b8d6 100644 --- a/docs/demo_content.md +++ b/docs/demo_content.md @@ -19,6 +19,17 @@ When combining all pages into one, `mkdocs-print-site-plugin` will also ensure a - [Dummy section](#dummy-section) lower down this demo page - The [Manual Tes...
python
diff --git a/tests/test_urls.py b/tests/test_urls.py index 28cbf79..95e3227 100644 --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -26,6 +26,7 @@ def test_is_external(): Test. """ assert is_external("https://www.google.com") + assert is_external("mailto:me@abc.com") assert not is_external("/...
2021-05-10T14:29:43+00:00Z
Invalid mailto urls Magic links with email can be clicked here: * https://majkinetor.github.io/mm-docs-template/demo/#links-footnotes-and-comments But on print page it brings bad browser url `https://majkinetor.github.io/mm-docs-template/demo/mailto:majkinetor@gmail.com` * https://majkinetor.github.io/mm-docs-tem...
0.0.1-alpha
0f9e994690392c3be563389a6c79facb6c5978c9
["tests.test_urls::test_is_external"]
["tests.test_exclude::test_exclude", "tests.test_urls::test_get_page_key", "tests.test_urls::test_is_attachment", "tests.test_urls::test_fix_href_links", "tests.test_urls::test_update_anchor_ids_noupdate", "tests.test_urls::test_update_anchor_ids[h1]", "tests.test_urls::test_update_anchor_ids[h2]", "tests.test_urls::te...
["tests.test_building::test_windmill", "tests.test_building::test_no_toc", "tests.test_building::test_add_to_nav_works", "tests.test_building::test_basic_build", "tests.test_building::test_basic_build2", "tests.test_building::test_basic_build3", "tests.test_building::test_basic_build4", "tests.test_building::test_basic...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
swingerman__ha-dual-smart-thermostat-133
swingerman/ha-dual-smart-thermostat
08b25be5fe14c843daf8bc1fd4903053437d59ca
diff --git a/custom_components/dual_smart_thermostat/climate.py b/custom_components/dual_smart_thermostat/climate.py index b314db4..b4b1cc1 100644 --- a/custom_components/dual_smart_thermostat/climate.py +++ b/custom_components/dual_smart_thermostat/climate.py @@ -387,7 +387,9 @@ class DualSmartThermostat(ClimateEntity...
python
diff --git a/tests/test_cooler_mode.py b/tests/test_cooler_mode.py index 154e2a8..f1ab4e0 100644 --- a/tests/test_cooler_mode.py +++ b/tests/test_cooler_mode.py @@ -284,11 +284,11 @@ async def test_set_preset_mode_set_temp_keeps_preset_mode( state = hass.states.get(common.ENTITY) assert state.attributes.get("...
2024-03-21T12:16:02+00:00Z
Thermostat supports climate.turn_off service but not climate.turn_on? I noticed after I most updated the other day to the most recent version through HACS, my dual smart thermostat I set up no longer supports `climate.turn_on`, which means I can no longer turn it on through google assistant. Is this intentional? ``...
Please check [v0.9.5-beta.2](https://github.com/swingerman/ha-dual-smart-thermostat/releases/tag/v0.9.5-beta.2)
0.0.1-alpha
80ddb3b02a41530279a6240d5e378b8ea765f881
["tests.test_cooler_mode::test_set_preset_mode_set_temp_keeps_preset_mode[none-23]", "tests.test_cooler_mode::test_set_preset_mode_set_temp_keeps_preset_mode[away-16]", "tests.test_cooler_mode::test_set_preset_mode_set_temp_keeps_preset_mode[comfort-20]", "tests.test_cooler_mode::test_set_preset_mode_set_temp_keeps_pre...
["tests.test_cooler_mode::test_unique_id", "tests.test_cooler_mode::test_setup_defaults_to_unknown", "tests.test_cooler_mode::test_setup_gets_current_temp_from_sensor", "tests.test_cooler_mode::test_get_hvac_modes", "tests.test_cooler_mode::test_set_preset_mode[none-23]", "tests.test_cooler_mode::test_set_preset_mode[a...
["tests.test_heater_mode::test_precision"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
yukinarit__pyserde-610
yukinarit/pyserde
f2d048ce6aee01c184512a9b983faf5c22c664e7
diff --git a/serde/de.py b/serde/de.py index fd96f99..bd0d78e 100644 --- a/serde/de.py +++ b/serde/de.py @@ -16,7 +16,7 @@ from beartype import beartype, BeartypeConf from beartype.door import is_bearable from beartype.roar import BeartypeCallHintParamViolation from dataclasses import dataclass, is_dataclass -from t...
python
diff --git a/tests/test_flatten.py b/tests/test_flatten.py index 85c0b39..7adf26d 100644 --- a/tests/test_flatten.py +++ b/tests/test_flatten.py @@ -81,3 +81,37 @@ def test_flatten_not_supported(se: Any, de: Any) -> None: @serde class Foo: bar: list[Bar] = field(flatten=True) + + +def tes...
2024-11-16T14:05:05+00:00Z
Deserializing Flattened fields with Defaults don't work together as expected Hi @yukinarit - Love the project - Thank you for maintaining it! I noticed some unexpected behavior when deserializing flattened fields that have a default_factory. It looks like `pyserde` returns the defaults instead of the expected dese...
Hi @magreenberg1! Thanks for reporting. It seems like a bug. Let me look into it. @magreenberg1 pyserde v0.22.2 was published in PyPI! Thank you!
0.0.1-alpha
d0f924c94775d2e66445d7a81b0eeca8f3d01b30
["tests.test_flatten::test_flatten_default", "tests.test_flatten::test_flatten_default_alias"]
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-19
simonw/git-history
d7229eb41320a8abd061660892dd4aa8e0314aec
diff --git a/README.md b/README.md index 108d762..eef6ea2 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,13 @@ CREATE TABLE [item_changed] ( [column] INTEGER REFERENCES [columns]([id]), PRIMARY KEY ([item_version], [column]) ); +CREATE VIEW item_version_detail AS select + commits.commit_at as _commit...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 661f37c..81d095c 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -1,6 +1,7 @@ from click.testing import CliRunner from git_history.cli import cli from git_history.utils import RESERVED +import itertools import json i...
2021-12-03T03:57:11+00:00Z
Create a view that joins against commits to get the date Browsing and querying `item_version` is a lot more interesting if there's a date column, which currently requires a manual join. A SQL view can fix this (at least within Datasette).
```sql create view item_version_detail as select commits.commit_at as _commit_at, item_version.* from item_version join commits on commits.id = item_version._commit ```
0.0.1-alpha
a852cae55542080eb9f3661310ca0ea3d0c6bd21
["tests.test_git_history::test_file_with_id[None]", "tests.test_git_history::test_file_with_id[custom]", "tests.test_git_history::test_file_with_id_full_versions[None]", "tests.test_git_history::test_file_with_id_full_versions[custom]", "tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history:...
["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
netbox-community__pynetbox-281
netbox-community/pynetbox
d7754e8ddf8e63ab907623e9501a0f6d3efb4001
diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py index 49d9dc5..b8cac5a 100644 --- a/pynetbox/core/response.py +++ b/pynetbox/core/response.py @@ -207,8 +207,8 @@ class Record(object): else: yield i, cur_attr - def __getitem__(self, item): - return item + d...
python
diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index dddd32e..f5495f9 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -11,6 +11,36 @@ else: class RecordTestCase(unittest.TestCase): + def test_attribute_access(self): + test_values = { + "id"...
2020-08-16T17:26:42+00:00Z
`__getitem__()` for Record sends back its argument Hey! The code for `__getitem__()` in `response.py` is: ```python def __getitem__(self, item): return item ``` This is quite confusing if you happen to use the dict notation instead of the attribute notation. I would suggest to either support th...
Interesting thought, just to give some background (and going completely on memory) the whole point in implementing it was so that users could easily cast objects to dicts to help in debugging. It was never really intended to be a fully featured interface in parallel with attributes. Not saying it couldn't be, but hasn'...
0.0.1-alpha
eddf4d2f0f50842f9ecf1e8cb277c98acd51f3a3
["tests.unit.test_response.RecordTestCase::test_dict_access"]
["tests.test_ipam.IPAddressTestCase::test_filter", "tests.test_ipam.IPAddressTestCase::test_get", "tests.test_ipam.IPAddressTestCase::test_get_all", "tests.test_ipam.IPAddressTestCase::test_modify", "tests.test_dcim.DeviceTypeTestCase::test_delete", "tests.test_dcim.DeviceTypeTestCase::test_diff", "tests.test_dcim.Devi...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__git-history-39
simonw/git-history
986846b0b40ee01f887c1b8e2632d0169a5740fe
diff --git a/README.md b/README.md index f5568ec..4373dd3 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,8 @@ You can import additional modules using `--import`. This example shows how you c ' \ --id TreeID +You can import nested modules such as [ElementTree](https://docs.python.org/3/library/x...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 8c15fd9..73cb0b3 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -763,6 +763,48 @@ def test_convert(repo, tmpdir, convert, expected_rows): assert rows == expected_rows +def test_convert_xml(repo, tmpdir): + ru...
2021-12-06T22:26:12+00:00Z
Support for `--import xml.etree.ElementTree` https://github.com/simonw/neededge-history/blob/main/v1.xml This should work, but doesn't without a small change: ``` git-history file neededge.db v1.xml --id url --convert ' tree = xml.etree.ElementTree.fromstring(content) return [site.attrib for site in tree.iter("...
Here's the fix that worked: ```diff @@ -463,7 +473,7 @@ def compile_convert(convert, imports): locals = {} globals = {"json": json} for import_ in imports: - globals[import_] = __import__(import_) + globals[import_.split(".")[0]] = __import__(import_) exec(code_o, globals, loca...
0.0.1-alpha
56487a83da8b247a50d89c3b18b1f476b6860034
["tests.test_git_history::test_convert_xml"]
["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
oscal-compass__compliance-trestle-1667
oscal-compass/compliance-trestle
e67f73c7cc3203037dd4d83b92ac317cd6e70978
diff --git a/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md b/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md index 9a1d2ac..0286b5d 100644 --- a/docs/tutorials/ssp_profile_catalog_authoring/ssp_profile_catalog_authoring.md +++ b/docs/tutorials/ssp_profile_ca...
python
diff --git a/tests/data/json/comp_def_c.json b/tests/data/json/comp_def_c.json new file mode 100644 index 0000000..f56d434 --- /dev/null +++ b/tests/data/json/comp_def_c.json @@ -0,0 +1,121 @@ +{ + "component-definition": { + "uuid": "2652b814-2a6b-4b6d-a0ae-8bc7a007209f", + "metadata": { + "title": "comp d...
2024-09-16T19:04:57+00:00Z
Component definitions without rules have unexpected markdown editing behavior ## Describe the bug Trestle does not support OSCAL-compliant Component Definitions and require Rule properties for correct processing. When using OSCAL Component Definitions without rule properties, the markdown files are generated withou...
- Support Component Definition without rules (If a component has no defined rules attached, the control implementation should be processed differently) - Determine the workflow with the SSP and make sure it is consistent
0.0.1-alpha
25dbc7a4ae823c8645e8861f3763883e855b44af
["tests.trestle.core.commands.author.component_test::test_component_workflow_no_rules"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sergioburdisso__pyss3-9
sergioburdisso/pyss3
4ec009a853ce9c1f71f6bfd4f6c6de93cb4d3fda
diff --git a/examples/extract_insight.ipynb b/examples/extract_insight.ipynb index 7bb3026..b328b94 100644 --- a/examples/extract_insight.ipynb +++ b/examples/extract_insight.ipynb @@ -238,6 +238,7 @@ "metadata": {}, "source": [ "<br>\n", + "\n", "And that's all! is it? want to go a little bit deep...
python
diff --git a/tests/test_pyss3.py b/tests/test_pyss3.py index e6503d4..cfd64a2 100644 --- a/tests/test_pyss3.py +++ b/tests/test_pyss3.py @@ -276,9 +276,6 @@ def test_multilabel(): y_pred = [[], ['toxic'], ['severe_toxic'], ['obscene'], ['insult'], ['toxic', 'insult']] - with pytest.raises(ValueError): - ...
2020-05-19T13:43:37+00:00Z
Multilabel Live Test Hey @sergioburdisso, I've noticed taht you fixed recently the Multilabel fit issue #6 But the Live_Test.run(clf, X_test, y_test) still does not accept y_test as List[List[str]] It would be really great to have it If you don't have time maybe I could submit a PR? Olivier
Hi @oterrier! Thanks for creating this issue. Yes, Issue #6 added the possibility to load multi-label datasets from disk using two common file structures. Now I'm currently working on Issue #5, which, once finished, will enable PySS3 to provide full support for multi-label classification. I've just finished working ...
0.0.1-alpha
15657ee348d40c92736753ee0e184cf9fd665406
["tests.test_pyss3::test_multilabel"]
["tests.test_cmd_line::test_ss3prompt", "tests.test_pyss3::test_pyss3_functions", "tests.test_pyss3::test_pyss3_ss3", "tests.test_server::test_http_helper_functions", "tests.test_server::test_live_test[0]", "tests.test_server::test_live_test[1]", "tests.test_server::test_live_test[2]", "tests.test_server::test_live_tes...
["tests.test_util::test_evaluation"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pcubillos__bibmanager-75
pcubillos/bibmanager
fb8d6dd0c4f6836b61784f89e956f6b604ef4fd0
diff --git a/.travis.yml b/.travis.yml index 7aea669..d5915c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,18 @@ language: python +os: linux +dist: focal -matrix: +jobs: include: - python: 3.6 - python: 3.7 - sudo: required - dist: xenial + - python: 3.8 + - python: 3.9 install: - pi...
python
diff --git a/tests/conftest.py b/tests/conftest.py index e6c810b..1d286b7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -549,6 +549,10 @@ def reqs(requests_mock): folsom = {'msg': 'Retrieved 1 abstracts, starting with number 1.', 'export': '@ARTICLE{2018MNRAS.481.5286F,\n author = {{Folsom}, C....
2021-12-05T18:14:12+00:00Z
User-defined tags when adding and searching for entries I currently annotate my hard copies of papers with personally defined tags, similar to the Unified Astronomy Thesaurus but more flexible because I can write down any tag I want, and keep track of which papers are associated with which tags by writing them down in...
Hi! Hmm, no, sorry, the current code does not have tags. But in principle, I think it's possible to implement (and I think it's a good idea!). I'll look elsewhere to see how it is made and will think about it. Thanks! My vision would be to change the signature of `bibm ads-add` to `bibm ads-add [ads-key] [bibkey] ...
0.0.1-alpha
04e65f6063d4b3574ac1659f8d01d24a99908303
["tests.test_bib_manager::test_display_list_no_verb", "tests.test_bib_manager::test_display_list_verb_neg", "tests.test_cli::test_cli_search_verbosity_negative[mock_prompt_session0]", "tests.test_utils::test_tokenizer_default", "tests.test_utils::test_tokenizer_value_token", "tests.test_utils::test_tokenizer_value_none...
["tests.test_ads::test_key_update_journal_year", "tests.test_ads::test_key_update_year", "tests.test_ads::test_key_update_journal", "tests.test_bib_manager::test_Bib_minimal", "tests.test_bib_manager::test_Bib_ads_entry", "tests.test_bib_manager::test_Bib_update_content", "tests.test_bib_manager::test_Bib_mismatched_br...
["tests.test_ads::test_search", "tests.test_ads::test_search_limit_cache", "tests.test_ads::test_search_start", "tests.test_ads::test_search_unauthorized", "tests.test_ads::test_display_all", "tests.test_ads::test_display_first_batch", "tests.test_ads::test_display_second_batch", "tests.test_ads::test_display_over", "t...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-61
matthewwithanm/python-markdownify
ed3eee78d2ad85a4b96be273ab4726bec12d4aad
diff --git a/README.rst b/README.rst index 6545a8c..b64318a 100644 --- a/README.rst +++ b/README.rst @@ -106,6 +106,13 @@ escape_underscores If set to ``False``, do not escape ``_`` to ``\_`` in text. Defaults to ``True``. +keep_inline_images_in + Images are converted to their alt-text when the images are loca...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 6cf39ac..018b7c1 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -133,12 +133,13 @@ def test_hn_nested_simple_tag(): def test_hn_nested_img(): image_attributes_to_markdown = [ - ("", ""), - ("alt='Al...
2022-04-13T17:55:34+00:00Z
Doesn't properly convert image inside table Take the following html as an example: `<table> <tbody> <tr> <td> <img src="https://avatars.githubusercontent.com/u/57845632?s=400&u=48a7889c50d234959a518020779ae2dd0c1e6546&v=4"> </td> </tr> </tbody> </table>` When running this through markdownify, it for some reason ...
I've hit the same issue, I think this is because once you get to a `td` element then `convert_children_as_inline` [is set to `True`](https://github.com/matthewwithanm/python-markdownify/blob/develop/markdownify/__init__.py#L110-L114), which forces `convert_image` to [return the content of the image's `alt` tag](https:/...
0.0.1-alpha
423b7e948c1a55dbd545877405060a5093e390c7
["tests.test_conversions::test_hn_nested_img"]
["tests.test_advanced::test_chomp", "tests.test_advanced::test_nested", "tests.test_advanced::test_ignore_comments", "tests.test_advanced::test_ignore_comments_with_other_tags", "tests.test_advanced::test_code_with_tricky_content", "tests.test_advanced::test_special_tags", "tests.test_args::test_strip", "tests.test_arg...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tinytag__tinytag-166
tinytag/tinytag
d8a62a2d32f6a1163ed3ef66a84a1967c8c6ab2a
diff --git a/README.md b/README.md index 47f3d08..7ce1b72 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,14 @@ List of possible attributes you can get with TinyTag: tag.track_total # total number of tracks as string tag.year # year or date as string -For non-common fields and fields specifi...
python
diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py index 4f68a4a..d412c20 100644 --- a/tinytag/tests/test_all.py +++ b/tinytag/tests/test_all.py @@ -66,8 +66,14 @@ testfiles = OrderedDict([ 'album': 'The Young Americans', 'title': 'Play Dead', 'filesize': 256, 'track': '12', 'artist'...
2024-02-26T14:31:25+00:00Z
[BUG] Can't read `extra` tags from .m4a files **Describe the bug** I added a custom field (via mp3tag) to audio files of various types, but that custom field only appears in tinytag's `extra` collection for the mp3 files and not the m4a files. **To Reproduce** 1. Unzip the Songs.zip attachment to find two files ...
Support for extra tags from m4a files has not been implemented yet.
0.0.1-alpha
5e09252706f250fe7667fd58d3f10229dc461da4
["tinytag.tests.test_all::test_file_reading[samples/UTF16.mp3-expected7]", "tinytag.tests.test_all::test_file_reading[samples/id3_comment_utf_16_double_bom.mp3-expected17]", "tinytag.tests.test_all::test_file_reading[samples/id3v1_does_not_overwrite_id3v2.mp3-expected20]", "tinytag.tests.test_all::test_file_reading[sam...
["tinytag.tests.test_all::test_file_reading[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header_2channel.mp3-expected3]...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-890
more-itertools/more-itertools
1ae91eb4ff6ee9c326bc1ceb52e2d6edbdb0c3a8
diff --git a/more_itertools/more.py b/more_itertools/more.py index 7fa96ad..1d4a090 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1792,7 +1792,9 @@ def zip_offset(*iterables, offsets, longest=False, fillvalue=None): return zip(*staggered) -def sort_together(iterables, key_list=(0,), key=...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 89317cc..b25343f 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -2173,6 +2173,29 @@ class SortTogetherTest(TestCase): ], ) + def test_strict(self): + # Test for list of lists or tuples + self.assertRaises( +...
2024-08-05T02:48:35+00:00Z
Add a strict option to sort_together() A *strict* option would detect data size mismatches. This would avoid silently dropping data: ``` >>> iterables = [(4, 3, 2, 1), ('a', 'b', 'c')] >>> sort_together(iterables) [(2, 3, 4), ('c', 'b', 'a')] ```
Good suggestion! I'll accept a PR that does this, or do it myself if there are no volunteers.
0.0.1-alpha
2ff5c5a2df0ba40f4ec44cd91b9ffeef8ae67014
["tests.test_more.SortTogetherTest::test_strict"]
["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pytest-dev__pytest-bdd-512
pytest-dev/pytest-bdd
4602314d0315f8c3277890ccab7167ba3875352a
diff --git a/src/pytest_bdd/scenario.py b/src/pytest_bdd/scenario.py index bc8f34e..cb2a126 100644 --- a/src/pytest_bdd/scenario.py +++ b/src/pytest_bdd/scenario.py @@ -18,6 +18,7 @@ import logging import os import re from collections.abc import Iterable, Iterator +from inspect import signature from typing import T...
python
diff --git a/tests/feature/test_scenario.py b/tests/feature/test_scenario.py index 2c61964..19c5ccf 100644 --- a/tests/feature/test_scenario.py +++ b/tests/feature/test_scenario.py @@ -393,3 +393,36 @@ def test_multilanguage_support(pytester): ("given", "che uso uno step con ", "esempio 2"), ("then", ...
2024-12-01T10:50:56+00:00Z
would you like reduce similar steps impl? for this situation: ```feature Given a phone Given a <black> color phone Given a <size>GB phone Given a large dark phone ``` currently, we need write four step implements. in my ext version, we can write step impl like: ```python @given("a phone") # -> a white...
You can use fixtures for default parameters as a workaround. I have done this in the past for table parameters. @ktzoulas You don't understand what I mean. for a better e.g. ```python @then("the goods should sold out", available=True) @then("the goods should not sold out", available=False) def step_check_sold_out...
0.0.1-alpha
d527a6769b09d011a8c6f92685af51ae6a4e4bfb
["tests.feature.test_scenario::test_default_value_is_used_as_fallback"]
["tests.args.cfparse.test_args::test_every_step_takes_param_with_the_same_name", "tests.args.cfparse.test_args::test_argument_in_when", "tests.args.parse.test_args::test_every_steps_takes_param_with_the_same_name", "tests.args.parse.test_args::test_argument_in_when_step_1", "tests.args.regex.test_args::test_every_steps...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-999
octodns/octodns
1032abf558f0eadb66491ef54a9882123b7df58b
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a59c14..25c23ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ * octodns-report access --lenient flag to allow running reports with records sourced from providers with non-compliant record data. * Correctly handle FQDNs in TinyDNS config files that end ...
python
diff --git a/tests/test_octodns_record.py b/tests/test_octodns_record.py index 88a7dfc..becc802 100644 --- a/tests/test_octodns_record.py +++ b/tests/test_octodns_record.py @@ -8,6 +8,7 @@ from octodns.idna import idna_encode from octodns.record import ( AliasRecord, ARecord, + CnameRecord, Create, ...
2023-07-17T16:01:56+00:00Z
Missing TinyDNS data source record types I have been doing some TinyDNS to OctoDNS conversions recently and noticed that there are some record types that OctoDNS source script is missing: - `&`: - example: `&fqdn:ip:x:ttl:timestamp:lo` - Name server for domain fqdn. tinydns-data creates - an NS record sho...
> I have been doing some TinyDNS to OctoDNS conversions recently and noticed that there are some record types that OctoDNS source script is missing: `TinyDNSSource` definitely is partial, I believe what was initially added as just what was present in the configs we were converting at the time. > `&`: > * exampl...
0.0.1-alpha
49aca9db10d961068b22225892efb988b990ebe2
["tests.test_octodns_record.TestRecord::test_parse_rdata_texts", "tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_ignores_subs", "tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_populate_in_addr_arpa", "tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_populate_normal", "tests.te...
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__samila-32
sepandhaghighi/samila
edc2df20e64bffbca9baa823e0e0002ea23fed91
diff --git a/samila/functions.py b/samila/functions.py index d17ca69..e81102d 100644 --- a/samila/functions.py +++ b/samila/functions.py @@ -4,6 +4,7 @@ import requests import io import json +import random from .params import Projection, DEFAULT_PROJECTION, VALID_COLORS, NFT_STORAGE_API, OVERVIEW from .params impo...
python
diff --git a/test/warning_test.py b/test/warning_test.py index 248b2c2..3c445f0 100644 --- a/test/warning_test.py +++ b/test/warning_test.py @@ -4,7 +4,7 @@ >>> import json >>> from samila import * >>> from pytest import warns ->>> with warns(RuntimeWarning, match="Neither function nor data is provided."): +>>> with...
2021-12-14T15:27:28+00:00Z
Random Functions #### Description Samila tends to be plug and play so it'll be better if we consider two functions (known as `f1` and `f2`) to be assigned to a random function. Construction of a random function it's not that much straightforward and this issue tracker is going to discuss about it. #### Steps/Code...
0.0.1-alpha
7a325d6da7a53bfb132a008737fe1f19bd86a032
["test.warning_test::warning_test"]
["samila.genimage::samila.genimage.GenerativeImage", "test.error_test::error_test", "test.function_test::function_test", "test.overall_test::overall_test"]
["samila.params::samila.params.Projection", "test.nft_upload_test::nft_upload_test"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__lsprotocol-60
microsoft/lsprotocol
ec1fe9cb04a7bdc7e52a50a3a8393dc187aa3b45
diff --git a/generator/requirements.txt b/generator/requirements.txt index d3ff443..fef6c48 100644 --- a/generator/requirements.txt +++ b/generator/requirements.txt @@ -18,9 +18,9 @@ importlib-resources==5.9.0 \ # via # -r ./generator/requirements.in # jsonschema -jsonschema==4.12.1 \ - --hash=sha...
python
diff --git a/tests/requirements.txt b/tests/requirements.txt index 51e6f76..a3a7cf2 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -42,9 +42,9 @@ iniconfig==1.1.1 \ --hash=sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3 \ --hash=sha256:bc3af051d7d14b2ee5ef9969666de...
2022-08-19T20:58:34+00:00Z
Add `total_ordering` for `Position`, `Range`, and `Location` types.
0.0.1-alpha
b545c8107129e3a39e2c9a46b5d9fecbd8262dc3
["tests.test_location::test_location_repr", "tests.test_position::test_position_comparison[a4-b4->-True]", "tests.test_position::test_position_comparison[a5-b5->=-True]", "tests.test_position::test_position_comparison[a6-b6->-True]", "tests.test_position::test_position_comparison[a7-b7->=-True]", "tests.test_position::...
["tests.test_cattrs_special_cases::test_simple", "tests.test_cattrs_special_cases::test_numeric_validation", "tests.test_cattrs_special_cases::test_forward_refs", "tests.test_cattrs_special_cases::test_union_with_complex_type[data0]", "tests.test_cattrs_special_cases::test_union_with_complex_type[data1]", "tests.test_c...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tkem__cachetools-164
tkem/cachetools
d33a8bb43e7e995fa9890901a6a32c5cdc1dd9c5
diff --git a/cachetools/func.py b/cachetools/func.py index 0124a49..5bfc0dd 100644 --- a/cachetools/func.py +++ b/cachetools/func.py @@ -26,7 +26,9 @@ _CacheInfo = collections.namedtuple('CacheInfo', [ class _UnboundCache(dict): - maxsize = None + @property + def maxsize(self): + return None ...
python
diff --git a/tests/test_func.py b/tests/test_func.py index 31e96e6..c194a02 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -10,7 +10,9 @@ class DecoratorTestMixin(object): def test_decorator(self): cached = self.decorator(maxsize=2)(lambda n: n) - + self.assertEqual(cached.cache_para...
2020-04-08T11:14:35+00:00Z
Add cache_parameters() to cachetools.func decorators See https://docs.python.org/3.9/library/functools.html#functools.lru_cache.
0.0.1-alpha
1cab650af7d816b8506991f9b77c2e27dca62b9c
["tests.test_func.LFUDecoratorTest::test_decorator", "tests.test_func.LFUDecoratorTest::test_decorator_clear", "tests.test_func.LFUDecoratorTest::test_decorator_nocache", "tests.test_func.LFUDecoratorTest::test_decorator_typed", "tests.test_func.LFUDecoratorTest::test_decorator_unbound", "tests.test_func.LFUDecoratorTe...
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing_subclass", "tests.test_cache.CacheTest:...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pretix__python-drafthorse-18
pretix/python-drafthorse
75617a8a1ec9c9626793d2e1d0a323c8cfab8d7a
diff --git a/README.rst b/README.rst index 4666ec5..357809d 100644 --- a/README.rst +++ b/README.rst @@ -84,7 +84,8 @@ Generating:: trade_tax.calculated_amount = Decimal("0.00") trade_tax.basis_amount = Decimal("999.00") trade_tax.type_code = "VAT" - trade_tax.category_code = "E" + trade_tax.catego...
python
diff --git a/tests/test_mininal.py b/tests/test_mininal.py index a0da38f..0bd7f53 100644 --- a/tests/test_mininal.py +++ b/tests/test_mininal.py @@ -54,7 +54,8 @@ def test_readme_construction_example(): trade_tax.calculated_amount = Decimal("0.00") trade_tax.basis_amount = Decimal("999.00") trade_tax.typ...
2024-01-19T17:12:14+00:00Z
validation of tax exemption reason code (BT-121) in FACTUR-X_EXTENDED fails setting a tax exemption reason code (BT-121) ```python trade_tax = ApplicableTradeTax() trade_tax.exemption_reason_code = 'VATEX-EU-AE' ``` fails to validate using scheme FACTUR-X_EXTENDED ``` lxml.etree.XMLSyntaxError: Element '{...
0.0.1-alpha
4019506f3e086fc078787c45e1ec2fb7c208a32b
["tests.test_mininal::test_readme_construction_example"]
["tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Reisekostenabrechnung.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Elektron.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_XRECHNUNG_Einfach.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_X...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__llm-gpt4all-24
simonw/llm-gpt4all
32eb69d208699f56588b9aaba5c94272fc575993
diff --git a/llm_gpt4all.py b/llm_gpt4all.py index 5423ee0..54554f4 100644 --- a/llm_gpt4all.py +++ b/llm_gpt4all.py @@ -180,7 +180,7 @@ class Gpt4AllModel(llm.Model): self._details["filename"], allow_download=False, verbose=False ) return True - except ValueError: + ...
python
2024-04-19T22:31:53+00:00Z
llm models command failing After installing the llm-gpt4all plugin and running llm models, i get the following error on my Mac. Any ideas? `Traceback (most recent call last): File "/opt/homebrew/bin/llm", line 8, in <module> sys.exit(cli()) ^^^^^ File "/opt/homebrew/Cellar/llm/0.13.1/libex...
the guy in the thread before you solved this: Go to your gpt4all.py file (mentioned in the error) and change this: def is_installed(self): try: GPT4All.retrieve_model( self._details["filename"], allow_download=False, verbose=False ) return True -...
0.0.1-alpha
67079c00fa64cba4f163c4579c2c4aab2c91f45a
["tests.test_llm_gpt4all::test_llm_models"]
["tests.test_llm_gpt4all::test_plugin_is_installed"]
["tests.test_llm_gpt4all::test_conversation_prompt_blocks[ggml-gpt4all-j-v1-expected_blocks0]", "tests.test_llm_gpt4all::test_conversation_prompt_blocks[orca-mini-7b-expected_blocks1]", "tests.test_llm_gpt4all::test_conversation_prompt_blocks[ggml-mpt-7b-chat-expected_blocks2]", "tests.test_llm_gpt4all::test_conversati...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
luolingchun__flask-openapi3-188
luolingchun/flask-openapi3
9b941059e96a618b4207c05610dfb0cc9994e41a
diff --git a/flask_openapi3/models/server_variable.py b/flask_openapi3/models/server_variable.py index 28d413a..5c1c78c 100644 --- a/flask_openapi3/models/server_variable.py +++ b/flask_openapi3/models/server_variable.py @@ -3,7 +3,7 @@ # @Time : 2023/7/4 9:57 from typing import List, Optional -from pydantic imp...
python
diff --git a/tests/test_server.py b/tests/test_server.py new file mode 100644 index 0000000..3e9b183 --- /dev/null +++ b/tests/test_server.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# @Author : llc +# @Time : 2024/11/10 12:17 +from pydantic import ValidationError + +from flask_openapi3 import Server, ServerVaria...
2024-11-10T04:51:12+00:00Z
ServerVariable.enum should be optional Per https://spec.openapis.org/oas/v3.1.0#fixed-fields-4, `enum` is An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. I think this was interpreted as enum being a required property, when in reality it's o...
Thanks for your report, I will fix it.
0.0.1-alpha
160ab4947bd7ced998ba2d80019e7db783d2c298
["tests.test_server::test_server_variable"]
["tests.test_api_blueprint::test_openapi", "tests.test_api_blueprint::test_post", "tests.test_api_blueprint::test_put", "tests.test_api_blueprint::test_patch", "tests.test_api_blueprint::test_delete", "tests.test_api_view::test_openapi", "tests.test_api_view::test_get_list", "tests.test_api_view::test_post", "tests.tes...
["tests.test_api_view_args::test_get_view_kwargs", "tests.test_async::test_get_openapi", "tests.test_async::test_post_openapi", "tests.test_async::test_get_list", "tests.test_async::test_post", "tests.test_command::test_openapi_command"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tkem__cachetools-292
tkem/cachetools
990665be51af3ae879136709e8846e61d7c0e12e
diff --git a/src/cachetools/__init__.py b/src/cachetools/__init__.py index 5a9a042..6471a85 100644 --- a/src/cachetools/__init__.py +++ b/src/cachetools/__init__.py @@ -26,7 +26,6 @@ from . import keys class _DefaultSize: - __slots__ = () def __getitem__(self, _): @@ -378,7 +377,6 @@ class TTLCache(_Ti...
python
diff --git a/tests/test_ttl.py b/tests/test_ttl.py index 9a33cc5..957b360 100644 --- a/tests/test_ttl.py +++ b/tests/test_ttl.py @@ -26,7 +26,6 @@ class TTLTestCache(TTLCache): class TTLCacheTest(unittest.TestCase, CacheTestMixin): - Cache = TTLTestCache def test_ttl(self): @@ -132,28 +131,32 @@ class ...
2024-08-18T18:24:58+00:00Z
Extending `TTLCache`, `expire()` does not call `popitem()` Before reporting a bug, please make sure you have the latest `cachetools` version installed: ``` pip install --upgrade cachetools ``` **Describe the bug** For [extending a class](https://cachetools.readthedocs.io/en/latest/#extending-cache-classes), the...
The report seems related to https://github.com/tkem/cachetools/issues/205 and https://github.com/tkem/cachetools/issues/103 If it's not possible or planned to add a notification callback when an item is removed because expired in TTLCache, it could be useful to make it more explicit in the docs. Thanks @GianlucaFica...
0.0.1-alpha
c22fc7d1baeba5454f6bb5d10f89cffd71764dbe
["tests.test_ttl.TTLCacheTest::test_ttl_datetime", "tests.test_ttl.TTLCacheTest::test_ttl_expire"]
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing", "tests.test_cache.CacheTest::test_mis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-59
pyprojectx/pyprojectx
a363935313788421168a77012606ba6f3cf04d50
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1325d9..5a549ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v2.0.3 (2024-01-16) +---------------------------- +### Features & Improvements +- #59 px should have an init command that adds the pw script to the current folder + +Release v2.0.2 (202...
python
diff --git a/tests/integration/test_px.py b/tests/integration/test_px.py index 555bc05..6e5b110 100644 --- a/tests/integration/test_px.py +++ b/tests/integration/test_px.py @@ -32,7 +32,9 @@ def test_install_px(tmp_project): assert px_dir.joinpath(f"px{SCRIPT_EXTENSION}").exists() assert px_dir.joinpath(f"pxg...
2024-01-16T09:21:18+00:00Z
(🎁) `px` should have an `init` command that adds the `pw` script to the current folder When I want to create a new project I have to lookup and run the command to download `pw`, but I already have `px` installed, it should be able to initialize a project.
Going for a simple solution that prevents file locking issues when trying to replace the pw scripts that are executing. So instead of adding an `--init` option, I'll add a `download-pw` alias to the default global ~/.pyprojectx/global/pyproject.toml: ```toml [tool.pyprojectx.aliases] # linux download-pw = "curl ...
0.0.1-alpha
6cf611d84df68be045b7974d24e6fa64f19c8d7d
["tests.integration.test_px::test_install_px"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.integration.test_pw::test_automatic_lock_update", "tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tes...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mivade__argparse_dataclass-48
mivade/argparse_dataclass
37baa76136b21562ccd219d717f1b9faf77077c9
diff --git a/README.rst b/README.rst index b53b7ee..f4f6979 100644 --- a/README.rst +++ b/README.rst @@ -185,6 +185,39 @@ Configuring a field with the Optional generic type: >>> print(parser.parse_args(["--name", "John", "--id", "1234"])) Options(name='John', id=1234) + +Creating argument groups by group ti...
python
diff --git a/tests/test_argumentgroups.py b/tests/test_argumentgroups.py new file mode 100644 index 0000000..3be9c37 --- /dev/null +++ b/tests/test_argumentgroups.py @@ -0,0 +1,181 @@ +import argparse +from dataclasses import dataclass, field + +import unittest + +from argparse_dataclass import ArgumentParser + + +clas...
2023-08-05T19:06:04+00:00Z
Support Argument groups Hi, it is possible to use argument groups in argparse? This is useful when you want to group arguments together. For example, you can group arguments by their functionality. ```python import argparse parser = argparse.ArgumentParser() group = parser.add_argument_group('Training o...
My initial thought on how to implement something like this would be to include a `group` field in the field metadata. Pull requests are welcome! We are interested in this use case too - specifically being able to add a group (derived from dataclass) onto a traditional ArgumentParser. The use case is that we have a m...
0.0.1-alpha
c41a7c65a65070a0a1a3f28721c168d35d3a556a
["tests.test_argumentgroups.ArgumentParserGroupsTests::test_argument_groups", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_dict", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_dict_description", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_empty", "tests.test_a...
["tests.test_argumentparser.ArgumentParserTests::test_basic", "tests.test_argumentparser.ArgumentParserTests::test_basic_negative", "tests.test_argumentparser.ArgumentParserTests::test_choices", "tests.test_argumentparser.ArgumentParserTests::test_choices_negative", "tests.test_argumentparser.ArgumentParserTests::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pypa__readme_renderer-249
pypa/readme_renderer
3f286340f2fef1f9a5f6d31e37d5bf7a82e2b406
diff --git a/readme_renderer/clean.py b/readme_renderer/clean.py index 6c89fd5..9353e1f 100644 --- a/readme_renderer/clean.py +++ b/readme_renderer/clean.py @@ -30,7 +30,7 @@ ALLOWED_TAGS = [ "br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div", "dl", "dt", "h1", "h2", "h3", "h4", "h5", "...
python
diff --git a/tests/fixtures/test_rst_003.html b/tests/fixtures/test_rst_003.html index 17cefc9..113e64c 100644 --- a/tests/fixtures/test_rst_003.html +++ b/tests/fixtures/test_rst_003.html @@ -1,8 +1,8 @@ -<div class="section" id="required-packages"> +<section id="required-packages"> <h2>Required packages</h2> <p>To ...
2022-08-17T18:58:08+00:00Z
[Discuss] Migrate to using HTML5 as the renderer We've been using docutils' html4css1 renderer since this library was introduced in 0.1.0 9 years ago, https://github.com/pypa/readme_renderer/commit/f3cde472d95b1feb6542fed6833aab8972e7b8be#diff-dbec05995ebd89ac0dd19fa6b9c4e63006152a3d3ab2fe049711670eca1d3f4eR19 docu...
I'd be in favor of this. PyPI also runs the `update_description_html` task [once every 5 minutes](https://github.com/pypi/warehouse/blob/1cba72f7f2a95fe5e0a64a7325414c3375102f0b/warehouse/packaging/__init__.py#L103) to re-render descriptions that have been rendered with older versions of this library, so kicking off...
0.0.1-alpha
d853780f665817d49e5d7340cc693e31f199102d
["tests.test_rst::test_rst_fixtures[test_rst_tables.rst]", "tests.test_rst::test_rst_fixtures[test_rst_math.rst]", "tests.test_rst::test_rst_fixtures[test_rst_docinfo.rst]", "tests.test_rst::test_rst_fixtures[test_rst_caption.rst]", "tests.test_rst::test_rst_fixtures[test_rst_admonitions.rst]", "tests.test_rst::test_rs...
["tests.test_clean::test_invalid_link", "tests.test_markdown::test_missing_variant", "tests.test_noextra::test_no_extra[GFM]", "tests.test_noextra::test_no_extra[CommonMark]", "tests.test_rst::test_rst_fixtures[test_rst_svg_attrs.rst]", "tests.test_rst::test_rst_fixtures[test_rst_svg.rst]", "tests.test_rst::test_rst_fi...
["tests.test_rst::test_rst_fixtures[test_rst_linkify.rst]", "tests.test_rst::test_rst_fixtures[test_rst_008.rst]"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
redimp__otterwiki-155
redimp/otterwiki
e7d92bee553dc31f7fcd6a60f5523d90b4d040c5
diff --git a/otterwiki/preferences.py b/otterwiki/preferences.py index a34bfbc..dff7e94 100644 --- a/otterwiki/preferences.py +++ b/otterwiki/preferences.py @@ -166,6 +166,7 @@ def handle_app_preferences(form): def handle_content_and_editing(form): for name in [ "commit_message", + "wikilink_style...
python
diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 8086681..5178ff6 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -3,7 +3,7 @@ import pytest from bs4 import BeautifulSoup -from otterwiki.renderer import render, clean_html +from otterwiki.renderer import render, clean_html, Otte...
2024-11-17T12:12:06+00:00Z
Support both `[[PageName | Title]]` and `[[Title | PageName]]` wiki links Most wiki platforms use `PageName` before `Title` (MediaWiki, DokuWiki, PmWiki, TikiWiki, MoinMoin), as well as many PKM apps like Obsidian, iA Writer, et al. Although there are some that use `Title` before `PageName`, it less common. Ott...
Hey @quinncomendant yeah the different styles of Wikilinks are a painpoint. I could not decide which one to chose and picked the one that was in the mistune Examples. Will add an option to the preferences, so that admins can configure if the wikilink should be parsed as `[[PageName | Title]]` or `[[Title | PageName]...
0.0.1-alpha
067668fac9f9b255b0f2057926a477eabeeabc2a
["tests.test_renderer::test_wiki_link_compatibilty_mode"]
["tests.test_attachments::test_app_with_attachments", "tests.test_attachments::test_list_attachments", "tests.test_attachments::test_get_attachment0_legcay", "tests.test_attachments::test_get_attachment0", "tests.test_attachments::test_edit_attachment0", "tests.test_attachments::test_thumbnail_legacy", "tests.test_atta...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ushiboy__nmcli-27
ushiboy/nmcli
f09bc60f63c8de197f930c9da94d3a35d17219ff
diff --git a/nmcli/_device.py b/nmcli/_device.py index a76354e..07c4707 100644 --- a/nmcli/_device.py +++ b/nmcli/_device.py @@ -89,17 +89,13 @@ class DeviceControl(DeviceControlInterface): self._syscmd.nmcli(['device', 'delete', ifname]) def wifi(self) -> List[DeviceWifi]: - r = self._syscmd.nmc...
python
diff --git a/tests/data/test_device.py b/tests/data/test_device.py index 9e12999..ba2f2f2 100644 --- a/tests/data/test_device.py +++ b/tests/data/test_device.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long from nmcli.data import Device, DeviceWifi def test_device_to_json(): @@ -33,29 +34,15 @@ def test_device_w...
2021-02-03T23:39:02+00:00Z
Still get parse error on ssid with spaces File "/home/yacov/.local/lib/python3.8/site-packages/nmcli/data/device.py", line 74, in parse_include_bssid_line raise ValueError('Parse failed [%s]' % text) ValueError: Parse failed [ 40:B0:34:86:A1:F0 DIRECT-EF-HP OfficeJet Pro 6960 Infra 11 65 Mbit/s ...
Thanks for the feedback. I'll check it. forked and testing, I have an SSID with more than one space, this is where it breaks 'DIRECT-EF-HP OfficeJet Pro 6960' ok, ^(\*|\s)\s+\S*\s+(\S*|\S+\s[\S]+|\S+\s[\S]+\s[\S]+|\S+\s[\S]+\s[\S]+\s[\S]+)\s+(\S*)\s+(\d+)\s+(\d+)\sMbit\/s\s+(\d+)\s+\S+\s+(.*)$ this regex worked fo...
0.0.1-alpha
231fe8c602d6a213ea9fa13118e34417bc529171
["tests.data.test_device::test_device_wifi_parse", "tests.test_device::test_device_wifi"]
["tests.data.test_connection::test_to_json", "tests.data.test_connection::test_parse", "tests.data.test_device::test_device_to_json", "tests.data.test_device::test_device_wifi_to_json", "tests.data.test_general::test_to_json", "tests.data.test_general::test_parse", "tests.data.test_radio::test_to_json", "tests.dummy.te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pylessard__python-udsoncan-51
pylessard/python-udsoncan
e633d91c115546c2754d93c9ba16da6989a07f6d
diff --git a/udsoncan/client.py b/udsoncan/client.py index d5fff56..673d0c3 100755 --- a/udsoncan/client.py +++ b/udsoncan/client.py @@ -272,7 +272,12 @@ class Client: if 'security_algo' not in self.config or not callable(self.config['security_algo']): raise NotImplementedError("Client configurati...
python
diff --git a/test/client/test_security_access.py b/test/client/test_security_access.py index d92d36c..d145e5b 100755 --- a/test/client/test_security_access.py +++ b/test/client/test_security_access.py @@ -260,6 +260,16 @@ class TestUnlockSecurityService(ClientServerTest): response = self.udsclient.unlock_secur...
2020-04-17T23:56:08+00:00Z
SecurityAccess does not handle already-unlocked server If a UDS server is already unlocked for a given security level, then it responds to subsequent requestSeed requests for that security level with an all-zero seed value (see ISO 14229-1:2020 Section 10.4.1). However, `udsoncan` doesn't appear to handle this case...
Thank you very much for the clear and detailed bug report. I missed that fact when I read the standard. This issue is already fixed and the fix is published in v.1.12.2 Regards Wow, super fast response. Thanks for the fix!
0.0.1-alpha
138cfcdda9bace0f4d823e0a79703258b9f9552c
["test.client.test_security_access.TestUnlockSecurityService::test_unlock_already_unlocked"]
["test.test_helper_class.TestDataFormatIdentifier::test_ali_oob_values", "test.test_helper_class.TestDataFormatIdentifier::test_dfi", "test.test_helper_class.TestDataFormatIdentifier::test_dfi2", "test.test_helper_class.TestDataFormatIdentifier::test_from_byte", "test.test_helper_class.TestDataFormatIdentifier::test_st...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-26
simonw/git-history
3458d4f339c95608862818b0b375b62fcfbd7896
diff --git a/README.md b/README.md index 3d84f3b..e1b1138 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,8 @@ If you have a column with a name such as `_commit_` it will be renamed too, addi - `--csv` - treat the data is CSV or TSV rather than JSON, and attempt to guess the correct dialect - `--dialect` - use ...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 336925c..55d2a4d 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -539,9 +539,14 @@ def test_convert(repo, tmpdir, convert, expected_rows): ([], ["1", "2", "3"]), (["--skip", 0], ["2", "3"]), (["...
2021-12-02T22:02:43+00:00Z
`--start-at` and `--start-after` options Found a bad commit which broke the script: https://github.com/simonw/sf-tree-history/commit/3fb63a99dfab8a75c83d341c67afc9abf484e0c4 in https://github.com/simonw/git-history/issues/21#issuecomment-983130553_ Solution: options to say "start at this commit" or "start at the co...
The reason I want both is that it's actually not trivial to look up the commit that came directly after a commit in a Git history - so if you find a commit that's broken and think "OK, I want to start at the next one" looking up what that next one is would be non-trivial. So having both options makes sense to me. I'...
0.0.1-alpha
29f9f8d7e54b40f083097b9591cd0f7a4fd847fa
["tests.test_git_history::test_skip_options[options3-expected_texts3]", "tests.test_git_history::test_skip_options[options4-expected_texts4]", "tests.test_git_history::test_skip_options[options5-expected_texts5]", "tests.test_git_history::test_skip_options[options6-expected_texts6]"]
["tests.test_git_history::test_file_without_id[None]", "tests.test_git_history::test_file_without_id[custom]", "tests.test_git_history::test_file_with_id[None]", "tests.test_git_history::test_file_with_id[custom]", "tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history::test_csv_tsv[trees.cs...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mseitzer__pytorch-fid-50
mseitzer/pytorch-fid
bb0c5c985ad30e4c8f58716146a61c42750989da
diff --git a/src/pytorch_fid/fid_score.py b/src/pytorch_fid/fid_score.py index e1e1255..23f8ff0 100755 --- a/src/pytorch_fid/fid_score.py +++ b/src/pytorch_fid/fid_score.py @@ -65,8 +65,11 @@ parser.add_argument('path', type=str, nargs=2, help=('Paths to the generated images or ' ...
python
diff --git a/tests/test_fid_score.py b/tests/test_fid_score.py index 75617d9..eac6e8c 100644 --- a/tests/test_fid_score.py +++ b/tests/test_fid_score.py @@ -39,3 +39,20 @@ def test_calculate_fid_given_statistics(mocker, tmp_path, device): dims=dim) assert fid_...
2020-11-30T14:40:28+00:00Z
Making it compatible for other image extensions as well please add the 'jpeg' etc. image extensions as well to reduce the time for saving the entire datasets into 'jpg' or 'png' extensions.
Good point. Any other extensions you have in mind? Thanks! We may consider these : IMG_EXTENSIONS = ( '.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff', '.webp', ) Please add these extra extensions, otherwise, I have to save my dataset into compatible e...
0.0.1-alpha
2313fbdad72507c0af7daaf43d1887fc95453762
["tests.test_fid_score::test_image_types"]
[]
["tests.test_fid_score::test_calculate_fid_given_statistics"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
octodns__octodns-996
octodns/octodns
9e0c0e92a95c29c847a7d53f86538eeef5860065
diff --git a/CHANGELOG.md b/CHANGELOG.md index 43a8e39..aab426b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ * Added simple IgnoreRootNsFilter * Minor refactor on YamlProvider to add get_filenames making it a bit easier to create specialized providers inheriting from it +* Fixed bug in OwnershipP...
python
diff --git a/tests/test_octodns_processor_ownership.py b/tests/test_octodns_processor_ownership.py index e7211a7..bd0a630 100644 --- a/tests/test_octodns_processor_ownership.py +++ b/tests/test_octodns_processor_ownership.py @@ -7,6 +7,7 @@ from unittest import TestCase from helpers import PlannableProvider from oc...
2023-05-14T00:49:05+00:00Z
Processors removing last change from a plan cause issues. Two things here: * When a processors can removes the last change from a plan it should return `None` (no plan) rather than an empty plan. * Ownership processor does not do this at the very least, others may not as well... * When a processor returns `Non...
> * When a processor returns `None` we should stop the processors loop as we'd be passing that `None` into them to work on and that doesn't make sense. Was incorrect/misremembering here. Looks like processors do run on `None` plans and can if they want add plans where previously they didn't exist so this is just a b...
0.0.1-alpha
d35b246ed4cb3d9ea35e7d2f39e7928cb403058e
["tests.test_octodns_processor_ownership.TestOwnershipProcessor::test_remove_last_change"]
["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yuma-m__pychord-47
yuma-m/pychord
8ba9a07f11597c026f9faf80501d621b38265979
diff --git a/pychord/constants/qualities.py b/pychord/constants/qualities.py index 8111abe..bee32f6 100644 --- a/pychord/constants/qualities.py +++ b/pychord/constants/qualities.py @@ -56,6 +56,7 @@ QUALITY_DICT = OrderedDict(( ('9#5', (0, 4, 8, 10, 14)), ('7#9b5', (0, 4, 6, 10, 15)), ('7#9#5', (0, 4, 8,...
python
diff --git a/test/test_component.py b/test/test_component.py index 839e402..f487e47 100644 --- a/test/test_component.py +++ b/test/test_component.py @@ -63,6 +63,13 @@ class TestChordComponent(unittest.TestCase): com1 = c.components(visible=True) self.assertEqual(com1, ["C", "E", "G", "A"]) + def...
2020-12-26T01:24:27+00:00Z
One missing quality m7b9b5 Hello, Please could you add this missing quality? m7b9b5 = 0, 3, 6, 10, 13 It's the 9th version of the m7-5 which can be found in 6th degree chord in major scales.
Hi @ldrolez, m7b9b5 quality was added to v0.5.1 release. Please confirm and let me know if there's something wrong. Thank you.
0.0.1-alpha
3d85e71a6bee0c15b25ddda2c5685cc8807136a4
["test.test_component.TestChordComponent::test_appended_chord"]
["test.test_constants.TestConstants::test_note_and_val", "test.test_analyzer.TestNotesToPositions::test_add9", "test.test_analyzer.TestNotesToPositions::test_eleventh", "test.test_analyzer.TestNotesToPositions::test_major", "test.test_analyzer.TestNotesToPositions::test_ninth", "test.test_analyzer.TestNotesToPositions:...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ncclient__ncclient-631
ncclient/ncclient
802d6b4f52ff3814d2f39cc89ece0e1bb388de30
diff --git a/ncclient/transport/ssh.py b/ncclient/transport/ssh.py index def258f..799561b 100644 --- a/ncclient/transport/ssh.py +++ b/ncclient/transport/ssh.py @@ -414,7 +414,12 @@ class SSHSession(Session): append_agent_keys=list(paramiko.Agent().get_keys()) for key_filename in key_filenam...
python
diff --git a/test/unit/transport/certs/id_ed25519_test-cert.pub b/test/unit/transport/certs/id_ed25519_test-cert.pub new file mode 100644 index 0000000..3587b03 --- /dev/null +++ b/test/unit/transport/certs/id_ed25519_test-cert.pub @@ -0,0 +1,1 @@ +ssh-ed25519-cert-v01@openssh.com AAAAIHNzaC1lZDI1NTE5LWNlcnQtdjAxQG9wZW...
2025-06-24T17:28:31+00:00Z
Certificate data is not loaded when a corresponding public key is found in an ssh agent Currently, when a public key is found in an SSH agent, no attempt is made to load the corresponding certificate data. This would be useful for certificate authentication when the key material is only accessible through an SSH agen...
0.0.1-alpha
d552928be0becf629fbf3a95a6a59e5f034d0ce3
["test.unit.transport.test_ssh.TestSSH::test_auth_agent_with_cert", "test.unit.transport.test_ssh.TestSSH::test_auth_agent_with_key"]
["test.unit.devices.test_alu.TestAluDevice::test_add_additional_operations", "test.unit.devices.test_alu.TestAluDevice::test_get_capabilities", "test.unit.devices.test_alu.TestAluDevice::test_get_xml_base_namespace_dict", "test.unit.devices.test_alu.TestAluDevice::test_get_xml_extra_prefix_kwargs", "test.unit.devices.t...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pathintegral-institute__mcpm.sh-138
pathintegral-institute/mcpm.sh
c72f637c85be4bb2be264f91d7a924556797c635
diff --git a/README.md b/README.md index c892544..a56fdcd 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,8 @@ mcpm share "npx -y @modelcontextprotocol/server-everything" --retry 3 ```bash mcpm config clear-cache # Clear MCPM's registry cache. Cache defaults to refresh every 1 hour. +mcpm config set ...
python
diff --git a/tests/conftest.py b/tests/conftest.py index ab0ee9f..32a5adf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,12 +7,14 @@ import os import sys import tempfile from pathlib import Path +from unittest.mock import Mock import pytest # Add the src directory to the path for all tests sys.p...
2025-06-24T07:19:08+00:00Z
[General]: Configuring support for “bun x” instead of “npx” So that when adding to applications, it would replace it with “bun x”
Hi there – I’ve searched the code-base (source, docs and build/CI scripts) for any hard-coded use of “npx” and couldn’t find a single occurrence. The project does not invoke Node tooling directly, so there is nothing that would currently be swapped out for “bun x”. Unless there is a specific file or command I’ve mis...
0.0.1-alpha
3c7797481c311cfdb16b3add82455a0f07ab838d
["tests.test_add::test_add_server_with_configured_npx"]
["tests.test_access_monitor::test_initialize_storage", "tests.test_access_monitor::test_track_event", "tests.test_access_monitor::test_multiple_events", "tests.test_access_monitor::test_get_monitor_utility", "tests.test_access_monitor::test_raw_request_response", "tests.test_access_monitor::test_backward_compatibility"...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-9
sepandhaghighi/mycoffee
c44a3255e311a0ed9eaa67b859269b78c07aca4b
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index c027d58..1e5b681 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -84,6 +84,7 @@ body: label: MyCoffee version description: Which version of MyCoffee are you us...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 7e9b173..51d06c2 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -116,7 +116,7 @@ True >>> _ = parser.add_argument('--version', help='version', nargs="?", const=1) >>> args = parser.parse_args({"--version":True}) >>> run(args) -0....
2024-09-29T21:56:04+00:00Z
[Feature]: `--digits` argument ### Describe the feature you want to add Add the `--digits` argument to specify the number of decimals to use when rounding ### Describe your proposed solution ```shell > mytimer --method=chemex --digits=5 ``` ### Describe alternatives you've considered, if relevant _No response_ ...
0.0.1-alpha
aa2e38b3513b528de09e6c25d42a77fd5c435237
["test.functions_test::functions_test"]
["test.verified_test::verified_test"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
openfga__python-sdk-73
openfga/python-sdk
18369e52190d12dcd7dad064928eebfad579e391
diff --git a/openfga_sdk/api_client.py b/openfga_sdk/api_client.py index 2c4ed12..328c519 100644 --- a/openfga_sdk/api_client.py +++ b/openfga_sdk/api_client.py @@ -30,6 +30,7 @@ from openfga_sdk.exceptions import ( ApiValueError, FgaValidationException, RateLimitExceededError, + ServiceException, ) ...
python
diff --git a/test/test_open_fga_api.py b/test/test_open_fga_api.py index cd52c08..0717faf 100644 --- a/test/test_open_fga_api.py +++ b/test/test_open_fga_api.py @@ -1250,8 +1250,10 @@ class TestOpenFgaApi(IsolatedAsyncioTestCase): http_resp=http_mock_response(response_body, 500) ) + retry...
2024-03-27T19:03:30+00:00Z
Python SDK should retry on 5xx errors ### Checklist - [X] I have looked into the [README](https://github.com/openfga/python-sdk/blob/main/README.md) and have not found a suitable solution or answer. - [X] I have looked into the [documentation](https://openfga.dev/docs) and have not found a suitable solution or answer...
0.0.1-alpha
f337b949987af10128db549646e2e0b47be139a1
["test.test_open_fga_api.TestOpenFgaApi::test_500_error_retry"]
["test.test_validation.TestValidation::test_is_well_formed_ulid_string_invalid_ulids", "test.test_validation.TestValidation::test_is_well_formed_ulid_string_valid_ulids", "test.test_open_fga_api_sync.TestOpenFgaApiSync::test_400_error", "test.test_open_fga_api_sync.TestOpenFgaApiSync::test_404_error", "test.test_open_f...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
maroba__findiff-28
maroba/findiff
dd479f24955c406d2dae910cdb999edfc427aedb
diff --git a/findiff/operators.py b/findiff/operators.py index 19212b9..6e8d450 100644 --- a/findiff/operators.py +++ b/findiff/operators.py @@ -100,7 +100,10 @@ class FinDiff(LinearMap): def matrix(self, shape, h=None, acc=None): if acc is None: - acc = DEFAULT_ACC + if self.acc i...
python
diff --git a/test/test_bugs.py b/test/test_bugs.py index d6c17db..c1f2a35 100644 --- a/test/test_bugs.py +++ b/test/test_bugs.py @@ -29,6 +29,19 @@ class TestOldBugs(unittest.TestCase): # in issue 25 the following line resulted in a TypeError findiff.coefficients(deriv=1, acc=15) + def test_matri...
2020-08-29T10:27:31+00:00Z
Matrix representation does not pass accuracy order ``` d = FinDiff(0, 1, 2) d2 = FinDiff(0, 1, 2, acc=4) d-d2 ``` results in zero matrix.
0.0.1-alpha
6a09cffb6436bfbc235eabf44f8306eccbfb917f
["test.test_bugs.TestOldBugs::test_matrix_repr_with_different_accs"]
["test.test_utils.TestUtils::test_all_index_tuples_for_shape", "test.test_utils.TestUtils::test_to_index_tuple", "test.test_utils.TestUtils::test_to_long_index", "test.test_pde.TestPDE::test_1d_damped_osc_driv_dirichlet", "test.test_pde.TestPDE::test_1d_dirichlet_hom", "test.test_pde.TestPDE::test_1d_dirichlet_inhom", ...
["test.test_findiff.TestFinDiffNonUniform::test_matrix_1d_coeffs_nonuni", "test.test_findiff.TestFinDiffNonUniform::test_matrix_1d_nonuni", "test.test_findiff.TestFinDiffNonUniform::test_matrix_2d_mixed_nonuni", "test.test_findiff.TestFinDiffNonUniform::test_matrix_2d_nonuni"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
okta__okta-sdk-python-289
okta/okta-sdk-python
645be11943fb4d193acfb9355af9cedcb5158907
diff --git a/README.md b/README.md index 95498e7..f963d25 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,8 @@ config = { 'authorizationMode': 'PrivateKey', 'clientId': '{yourClientId}', 'scopes': ['okta.users.manage'], - 'privateKey': 'YOUR_PRIVATE_JWK' # this parameter should be type of str + ...
python
diff --git a/tests/mocks.py b/tests/mocks.py index 07cf7b0..37c1aa9 100644 --- a/tests/mocks.py +++ b/tests/mocks.py @@ -243,6 +243,7 @@ def mock_cache_return_none(*args, **kwargs): def mock_cache_return_value(*args, **kwargs): return CACHE_VALUE + def mock_next_link(self_url: URL): return self_url.update...
2023-02-10T17:16:25+00:00Z
The client_assertion JWT kid is invalid. When configuring an OktaClient via privateKey, if the application you are targeting has multiple JWKs, the following error occurs: `{'message': "HTTP 401 {'error': 'invalid_client', 'error_description': 'The client_assertion JWT kid is invalid.'}"}` This works fine if the...
Resolved in 2.9.0
0.0.1-alpha
4c48c8e9ed44b56f89aeef244c18dc9165056b54
["tests.unit.test_jwt::test_private_key_with_kid_in_private_key", "tests.unit.test_jwt::test_private_key_with_kid_in_config"]
["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes...
["tests.integration.test_org_it.TestOrgResource::test_get_org_contact_user", "tests.integration.test_org_it.TestOrgResource::test_update_org_contact_user", "tests.integration.test_subscription_it.TestSubscriptionResource::test_get_role_subscription_by_notification_type", "tests.integration.test_subscription_it.TestSubs...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
podaac__data-subscriber-28
podaac/data-subscriber
ea1329e771f3826603fb57516dca401021615f6d
diff --git a/CHANGELOG.md b/CHANGELOG.md index 58e1080..2f3fa36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [1.7.0] +### Added +- Added ability ...
python
diff --git a/tests/test_subscriber.py b/tests/test_subscriber.py index 2ab1c5e..d07aace 100644 --- a/tests/test_subscriber.py +++ b/tests/test_subscriber.py @@ -26,7 +26,7 @@ def test_validate(): a = validate(["-c", "viirs", "-d", "/data", "-b=-180,-90,180,90", "-m", "100"]) assert a.minutes == 100, "should e...
2021-11-15T18:33:43+00:00Z
"list index out of range" with "PODAAC" provider I'm not sure if it's possible to use this tool for datasets not on the cloud, but there are some nice features I'd like to use.  I specified the provider as `PODAAC` and got an error, where it seemed to do nothing with the default `POCLOUD` provider. I can download the...
Hi Joe, currently this has only been tested as a migration tool for users moving to the cloud. We'll take a look at this functionality and see if it's a straight forward fix. so a few things, we found a bug in the code when looking at this. we're writing a fix for that, but it won't allow us to move forward with u...
0.0.1-alpha
6391f820d633299f4619a9c163792bec009a8dc3
["tests.test_subscriber::test_validate"]
["tests.test_subscriber::test_temporal_range"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }