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
sendgrid__python-http-client-144
sendgrid/python-http-client
57ed611ff548348f3cb44dab3974fb7d0537a7c2
diff --git a/python_http_client/client.py b/python_http_client/client.py index d3b600a..3a56235 100644 --- a/python_http_client/client.py +++ b/python_http_client/client.py @@ -175,12 +175,12 @@ class Client(object): try: return opener.open(request, timeout=timeout) except HTTPError as er...
python
diff --git a/tests/test_unit.py b/tests/test_unit.py index 8ef5116..36b115f 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -1,22 +1,20 @@ import pickle import unittest -from python_http_client.client import Client +from python_http_client.client import Client, HTTPError, urllib from python_http_client...
2020-08-20T21:29:04+00:00Z
UnboundLocalError: local variable 'exc' referenced before assignment ### Issue Summary In the new release 3.3.0, the variable `exc` is referenced before assignement [in the client.py file](https://github.com/sendgrid/python-http-client/blob/main/python_http_client/client.py#L180). It worked fine on version 3.2.7. It ...
I'm getting this too We are getting this too. Working on a fix ... still getting this issue. the latest pypi package still has the same issue. will this fix be updated on pypi? Released.
0.0.1-alpha
e1c869560d89d5e546b9e387ee73305b0d10fe34
["tests.test_unit.TestClient::test__getattr__"]
["tests.test_repofiles.RepoFiles::test_file_existence", "tests.test_unit.TestClient::test__", "tests.test_unit.TestClient::test__build_client", "tests.test_unit.TestClient::test__build_url", "tests.test_unit.TestClient::test__build_versioned_url", "tests.test_unit.TestClient::test__init__", "tests.test_unit.TestClient:...
["tests.test_daterange.DateRangeTest::test__daterange"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-29
matthewwithanm/python-markdownify
3544322ed238dcada6f69a86e39380279fcefafc
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 2cd8fc8..c2e2ec0 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -131,7 +131,8 @@ class MarkdownConverter(object): return text href = el.get('href') title = el.get('title') - if self.options[...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index f5fc1c2..2896322 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -34,7 +34,11 @@ def test_chomp(): def test_a(): - assert md('<a href="http://google.com">Google</a>') == '[Google](http://google.com)' + assert m...
2021-01-02T16:22:36+00:00Z
Autolink fails for a link with underscore See the following snippet: ```python3 from markdownify import markdownify as md md('<a href="https://community.kde.org/Get_Involved">https://community.kde.org/Get_Involved</a>') # [https://community.kde.org/Get\\_Involved](https://community.kde.org/Get_Involved) ```
Hi @IlyaBizyaev, thanks for the issue. See 453b6040962713ef90f6272c6984a5a19ec9d636 for the proposed changes. Do you have any comments? Best, Alex Thank you for the fix! Looks good :)
0.0.1-alpha
453b6040962713ef90f6272c6984a5a19ec9d636
["tests.test_conversions::test_a"]
["tests.test_advanced::test_nested", "tests.test_args::test_strip", "tests.test_args::test_do_not_strip", "tests.test_args::test_convert", "tests.test_args::test_do_not_convert", "tests.test_basic::test_single_tag", "tests.test_basic::test_soup", "tests.test_basic::test_whitespace", "tests.test_conversions::test_chomp"...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
numirias__pytest-json-report-69
numirias/pytest-json-report
bd58bd5608437dbb7b8ad920a10d40138d1f49ee
diff --git a/pytest_jsonreport/plugin.py b/pytest_jsonreport/plugin.py index 947eb66..d88ced1 100644 --- a/pytest_jsonreport/plugin.py +++ b/pytest_jsonreport/plugin.py @@ -143,7 +143,10 @@ class JSONReport(JSONReportBase): if self._must_omit('collectors'): return for item in items: - ...
python
diff --git a/tests/test_jsonreport.py b/tests/test_jsonreport.py index 366b4cb..bcb8006 100644 --- a/tests/test_jsonreport.py +++ b/tests/test_jsonreport.py @@ -592,3 +592,18 @@ def test_bug_41(misc_testdir): """#41: Create report file path if it doesn't exist.""" misc_testdir.runpytest('--json-report', '--js...
2021-09-24T22:01:33+00:00Z
Not working when using --last-failed Using pytest-json-report 1.4.0 and pytest 6.2.5. There is a bug when using `pytest --last-failed --json-report`, and no all tests are executed. See the traceback: INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/opt/app-root/lib64/python3.8/site-package...
0.0.1-alpha
af77e4bb2b9e10a387e879a6c960c54ba32fbb0c
["tests.test_jsonreport::test_bug_69"]
["tests.test_jsonreport::test_arguments_in_help", "tests.test_jsonreport::test_no_report", "tests.test_jsonreport::test_create_report", "tests.test_jsonreport::test_create_report_file_from_arg", "tests.test_jsonreport::test_create_no_report", "tests.test_jsonreport::test_terminal_summary", "tests.test_jsonreport::test_...
["tests.test_jsonreport::tests_only[0]", "tests.test_jsonreport::tests_only[1]", "tests.test_jsonreport::tests_only[4]", "tests.test_jsonreport::test_report_keys[0]", "tests.test_jsonreport::test_report_keys[1]", "tests.test_jsonreport::test_report_keys[4]", "tests.test_jsonreport::test_report_collectors[0]", "tests.te...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
maroba__findiff-32
maroba/findiff
c553663d5628d501987cb9fdf3e366d5587a4f64
diff --git a/findiff/diff.py b/findiff/diff.py index ae3e04a..503bcfa 100644 --- a/findiff/diff.py +++ b/findiff/diff.py @@ -260,10 +260,8 @@ class Diff(LinearMap): def __init__(self, axis, order, **kwargs): - assert isinstance(axis, int) - assert isinstance(order, int) - assert axis >= 0 ...
python
diff --git a/test/test_bugs.py b/test/test_bugs.py index 20be4fa..265cf26 100644 --- a/test/test_bugs.py +++ b/test/test_bugs.py @@ -81,6 +81,13 @@ class TestOldBugs(unittest.TestCase): stl = stencil1.data[char_pt] self.assertDictEqual(expected[char_pt], stl) + def test_order_as_numpy_int...
2020-12-30T10:57:35+00:00Z
Recent release does not accept Numpy integers as parameters It seems that you have added checks like `assert isinstance(order, int)` recently. This prevents using Numpy integers, such as `np.int32` which the code was able to handle before. I suggest using `assert isinstance(order, numbers.Integral)` instead, and ca...
You are right, I didn‘t think of people using numpy integers. I will fix it shortly. Ok, I changed it, and released v0.8.7 on pypi. I can confirm that the new version fixes this.
0.0.1-alpha
110b58aef9642e6fae04602a1b77f303e6a1882b
["test.test_bugs.TestOldBugs::test_order_as_numpy_integer"]
["test.test_vector.TestDivergence::test_3d_divergence_on_vector_func", "test.test_vector.TestDivergence::test_3d_divergence_on_vector_func_of_wrong_dim", "test.test_diff.DiffTest::test_add_two_diffs", "test.test_diff.DiffTest::test_identity", "test.test_diff.DiffTest::test_linear_comb", "test.test_diff.DiffTest::test_m...
["test.test_bugs.TestOldBugs::test_accuracy_should_be_passed_down_to_stencil", "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.TestFinDiff...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
netbox-community__pynetbox-221
netbox-community/pynetbox
479f0dbe309fe037dcbf4ebee46d0a9241aeebc8
diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py index 57fac7c..63e528c 100644 --- a/pynetbox/core/response.py +++ b/pynetbox/core/response.py @@ -25,8 +25,7 @@ def get_return(lookup, return_fields=None): """Returns simple representations for items passed to lookup. Used to return a "simpl...
python
diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index eea9c5d..c9581a5 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -112,6 +112,43 @@ class RecordTestCase(unittest.TestCase): test = Record(test_values, None, None) self.assertEqual(dict(test), tes...
2020-02-11T00:39:47+00:00Z
using strings for choice fields results in always updating an object Python: 3.6.9 NetBox: 2.7.3 pynetbox: 4.2.4 NetBox 2.7.0 introduced **API Choice Fields Now Use String Values**: https://github.com/netbox-community/netbox/releases/tag/v2.7.0 When using a string for a choice field, pynetbox always update th...
I'm running into this as well. I think 2.8 will not return the ID any longer so the issue will fix itself due to the following code: https://github.com/digitalocean/pynetbox/blob/master/pynetbox/core/response.py#L39 Is there anyway we can pass in the `return_fields` somehow? If I could just set the value to return ...
0.0.1-alpha
f58e7ee5dcfb1b7d853f3a3deb6a44ae22d0690b
["tests.unit.test_response.RecordTestCase::test_choices_idempotence_v27"]
["tests.test_dcim.InterfaceConnectionsTestCase::test_compare", "tests.test_dcim.InterfaceConnectionsTestCase::test_delete", "tests.test_dcim.InterfaceConnectionsTestCase::test_filter", "tests.test_dcim.InterfaceConnectionsTestCase::test_get", "tests.test_dcim.InterfaceConnectionsTestCase::test_get_all", "tests.test_dci...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pytest-dev__pytest-bdd-511
pytest-dev/pytest-bdd
f47c6d2fb55efae18ba1df4319a7f766ee67edcc
diff --git a/CHANGES.rst b/CHANGES.rst index 661df2d..58200fa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ Unreleased - Text after the `#` character is no longer stripped from the Scenario and Feature name. - Gherkin keyword aliases can now be used and correctly reported in json and terminal output (see...
python
diff --git a/tests/feature/test_gherkin_terminal_reporter.py b/tests/feature/test_gherkin_terminal_reporter.py index d034373..09f7db2 100644 --- a/tests/feature/test_gherkin_terminal_reporter.py +++ b/tests/feature/test_gherkin_terminal_reporter.py @@ -297,3 +297,59 @@ def test_scenario_alias_keywords_are_accepted(pyte...
2024-11-13T23:11:30+00:00Z
Rule keyword It'd be nice to have support for the [Rule](https://cucumber.io/docs/gherkin/reference/#rule) keyword and update for `Background` to support rule level declarations. Has anyone started on this? For now global declarations of `Rule` at the top level are just treated as part of the feature description ...
Looks like this is already represented as a goal in #394 @youtux could you please review the approach in elchupanebrej/pytest-bdd#32 With official parser and model provided by that tool we could provide additional level of integrability for pytest-bdd Fork https://github.com/elchupanebrej/pytest-bdd-ng could be use...
0.0.1-alpha
8f9df7ca2baebf1f2f9108fe09713eebcf46d799
["tests.feature.test_gherkin_terminal_reporter::test_rule_example_format_uses_correct_keywords", "tests.feature.test_rule_example_format::test_rule_example_format", "tests.feature.test_tags::test_tags_selector", "tests.generation.test_generate_missing::test_generate_missing"]
["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-1110
octodns/octodns
bc901dbe074eb8c7c723f07ec917e27348e646ca
diff --git a/CHANGELOG.md b/CHANGELOG.md index d353bd8..fa7fb68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ ## v1.?.0 - 2023-??-?? - * Record.lenient property added similar to other common/standard _octodns data -* Fix bug with Record.copy when values is an empty list [] * Processor.process_sourc...
python
diff --git a/tests/test_octodns_processor_meta.py b/tests/test_octodns_processor_meta.py index c5af501..b99dd19 100644 --- a/tests/test_octodns_processor_meta.py +++ b/tests/test_octodns_processor_meta.py @@ -124,12 +124,15 @@ class TestMetaProcessor(TestCase): self.assertEqual(self.meta_up_to_date, record) ...
2023-12-01T20:01:15+00:00Z
octodns manager removes `octodns-meta` records on upgrade During upgrades from 0.9.21 to 1.3.0 octodns drops all `octodns-meta` records with `include_meta: True` set. This happens for NS1, Route53 and PowerDNS providers - others have not been tested. The log shows that its correctly added to the `global_post_process...
Using https://github.com/octodns/octodns/tree/main/examples/basic I can reproduce this when setting ``` --- manager: include_meta: True ``` Resulting in: ``` examples/basic [main●] » octodns-sync --config-file=config/octodns.yaml 2023-11-28T14:50:24 [140704352357184] INFO Manager __init__: config_file=config/octo...
0.0.1-alpha
78f6464418cb21e6a147e9025a94825d90e46f30
["tests.test_octodns_processor_meta.TestMetaProcessor::test_process_source_and_target_zones"]
["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-241
netbox-community/pynetbox
9ec1f2500ef24bca970e20f82f5847c6e6057b87
diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py index 40e0b5d..7602395 100644 --- a/pynetbox/core/response.py +++ b/pynetbox/core/response.py @@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and...
python
diff --git a/tests/fixtures/dcim/interface.json b/tests/fixtures/dcim/interface.json index 711d1ca..7ccfc66 100644 --- a/tests/fixtures/dcim/interface.json +++ b/tests/fixtures/dcim/interface.json @@ -42,5 +42,26 @@ "id": 1, "url": "http://localhost:8000/api/dcim/cables/1/", "label": "" - ...
2020-06-23T01:16:32+00:00Z
Inconsitent hashing for nested api objects Let me try to explain this in a clear fashion: When comparing the results of two api endpoints, for instance a `vlan` record and a specific vlan in the list of records returned in a specific `Interface` `tagged_vlans`, the hashing algorithm makes it so that even though the...
We could potentially fix this by either: 1. having a proper `endpoint` when the `Record` is created; 2. `__key__()`/`__hash__()` functions to use "something_else" - That something_else could be the api url for this object itself but not all `Records` possesses it; 3. creating all the netbox models in pynetbox and ...
0.0.1-alpha
9524c33cd46eff8b14d7be03a162f6bef69d270b
["tests.test_ipam.VlanTestCase::test_vlan_in_interface"]
["tests.test_circuits.ProviderTestCase::test_filter", "tests.test_circuits.ProviderTestCase::test_get", "tests.test_circuits.ProviderTestCase::test_get_all", "tests.test_dcim.ConsoleServerPortTemplateTestCase::test_compare", "tests.test_dcim.ConsoleServerPortTemplateTestCase::test_delete", "tests.test_dcim.ConsoleServe...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tedder__requests-aws4auth-49
tedder/requests-aws4auth
f95011d6510d4e8c6620579cffbefe6e245aee7b
diff --git a/requests_aws4auth/aws4auth.py b/requests_aws4auth/aws4auth.py index 66bf1b4..3862ddf 100644 --- a/requests_aws4auth/aws4auth.py +++ b/requests_aws4auth/aws4auth.py @@ -721,7 +721,7 @@ class AWS4Auth(AuthBase): qs_strings = [] for name in sorted(qs_items): vals = qs_items[name...
python
2021-06-04T03:51:37+00:00Z
Regression in 1.1.0 Authentication has begun failing for us with multiple query strings because the `1.1.0` release (which is not tagged in GitHub) has introduced [this commit from 5 years ago](https://github.com/tedder/requests-aws4auth/commit/abfe2f93c896ef3c69c1a02535c9e7a2ff05dcfa) which appears to be a regressio...
Martin- thanks for teasing out the root cause of the problem. I've been too casual with the release process, so I just cut it from main. I want to compare the pip version against my local server that I uploaded from and see why there's a difference. I'll definitely add a unit test, thank you very much for giving bre...
0.0.1-alpha
1d01f46950d9290773939bf17ff73d67f8cfa308
["requests_aws4auth.test.test_requests_aws4auth.AWS4Auth_AmzCanonicalQuerystring_Test::test_multi_params"]
["requests_aws4auth.test.test_requests_aws4auth.AWS4Auth_EncodeBody_Test::test_encode_body_bytes", "requests_aws4auth.test.test_requests_aws4auth.AWS4Auth_EncodeBody_Test::test_encode_body_safe_unicode_to_other_bytes", "requests_aws4auth.test.test_requests_aws4auth.AWS4Auth_EncodeBody_Test::test_encode_body_safe_unicod...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
soda-inria__hazardous-64
soda-inria/hazardous
ddc2f350c1f932953aab1604d94ecb95c06f1ec0
diff --git a/hazardous/data/_competing_weibull.py b/hazardous/data/_competing_weibull.py index 2b15f9c..1a5f6b9 100644 --- a/hazardous/data/_competing_weibull.py +++ b/hazardous/data/_competing_weibull.py @@ -101,4 +101,4 @@ def make_synthetic_competing_weibull( return X, y frame = pd.concat([X, y], axi...
python
diff --git a/hazardous/data/tests/test_competing_weibull.py b/hazardous/data/tests/test_competing_weibull.py index 594dbe3..1dd4dd0 100644 --- a/hazardous/data/tests/test_competing_weibull.py +++ b/hazardous/data/tests/test_competing_weibull.py @@ -1,4 +1,5 @@ import pytest +from numpy.testing import assert_array_equa...
2025-01-14T15:44:39+00:00Z
make_synthetic_competing_weibull function returns error with default parameters The dataset generating function [make_synthetic_competing_weibull](https://github.com/soda-inria/hazardous/blob/main/hazardous/data/_competing_weibull.py#L35) with default parameters (when `return_X_y=False`): ```python make_synthetic_co...
Sorry, didn't see it was WIP in #25
0.0.1-alpha
82fe8cbf8c2804669525e5d066e35a5ca9fa8296
["hazardous.data.tests.test_competing_weibull::test_make_synthetic_competing_weibull_return[0]", "hazardous.data.tests.test_competing_weibull::test_make_synthetic_competing_weibull_return[1]", "hazardous.data.tests.test_competing_weibull::test_make_synthetic_competing_weibull_return[2]"]
["hazardous._survival_boost::hazardous._survival_boost.SurvivalBoost", "hazardous.data.tests.test_competing_weibull::test_competing_weibull_no_censoring[0]", "hazardous.data.tests.test_competing_weibull::test_competing_weibull_no_censoring[1]", "hazardous.data.tests.test_competing_weibull::test_competing_weibull_no_cen...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
open-feature__python-sdk-424
open-feature/python-sdk
9c2ed71c6efdc2ece9ae89cf91f3b019c44b0033
diff --git a/openfeature/client.py b/openfeature/client.py index 1edfca6..fc6e65a 100644 --- a/openfeature/client.py +++ b/openfeature/client.py @@ -295,37 +295,39 @@ class OpenFeatureClient: reversed_merged_hooks = merged_hooks[:] reversed_merged_hooks.reverse() - status = self.get_provider_...
python
diff --git a/tests/test_client.py b/tests/test_client.py index 7f0ca46..f6002c1 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -221,6 +221,7 @@ def test_should_shortcircuit_if_provider_is_not_ready( assert flag_details.reason == Reason.ERROR assert flag_details.error_code == ErrorCode.PROVIDE...
2025-01-29T15:57:44+00:00Z
Finally hooks do not get called when the provider is not ready
0.0.1-alpha
8f2cabaa32f595304ecd6964b6ae21909672ef4a
["tests.test_client::test_should_shortcircuit_if_provider_is_not_ready", "tests.test_client::test_should_shortcircuit_if_provider_is_in_irrecoverable_error_state"]
["tests.evaluation_context.test_evaluation_context::test_empty_evaluation_context_can_be_merged_with_non_empty_context", "tests.evaluation_context.test_evaluation_context::test_non_empty_context_can_be_merged_with_empty_evaluation_context", "tests.evaluation_context.test_evaluation_context::test_second_targeting_key_ov...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
microsoft__fabric-cicd-86
microsoft/fabric-cicd
b19fd6f51356985c99682a8783b42234188156fc
diff --git a/src/fabric_cicd/fabric_workspace.py b/src/fabric_cicd/fabric_workspace.py index 489d18a..151362f 100644 --- a/src/fabric_cicd/fabric_workspace.py +++ b/src/fabric_cicd/fabric_workspace.py @@ -175,6 +175,7 @@ class FabricWorkspace: def _refresh_repository_items(self) -> None: """Refreshes the ...
python
diff --git a/tests/test_fabric_workspace.py b/tests/test_fabric_workspace.py index 988bebb..84f7970 100644 --- a/tests/test_fabric_workspace.py +++ b/tests/test_fabric_workspace.py @@ -578,3 +578,238 @@ find_replace: # With specific environment (PPE), replacement SHOULD occur assert "test-guid-to-replace" not...
2025-07-07T19:50:13+00:00Z
Item Missing Logical ID Breaks Deployment ### What is the problem? If an artifact is missing a logical ID in the platform file (for example "logicalId": ""), the replace step in our logic blows up the base64 encoded value passed into the API breaking everything. This happens because we match on an empty string. ### ...
0.0.1-alpha
bcc380efd94c5200fe13dc832ec24359ad745023
["tests.test_fabric_workspace::test_empty_logical_id_validation", "tests.test_fabric_workspace::test_whitespace_only_logical_id_validation", "tests.test_fabric_workspace::test_empty_logical_id_validation_during_publish", "tests.test_fabric_workspace::test_multiple_empty_logical_ids_validation", "tests.test_fabric_works...
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
zheller__flake8-quotes-95
zheller/flake8-quotes
26fe39c9b9a160a4dc2f3c975f71f0479bc193b7
diff --git a/flake8_quotes/__init__.py b/flake8_quotes/__init__.py index 3bfa556..5a127df 100644 --- a/flake8_quotes/__init__.py +++ b/flake8_quotes/__init__.py @@ -42,10 +42,12 @@ class QuoteChecker(object): MULTILINE_QUOTES = { '\'': { 'good_multiline': '\'\'\'', + 'good_multilin...
python
diff --git a/test/data/doubles_multiline_string.py b/test/data/doubles_multiline_string.py index b2857a2..6f79509 100644 --- a/test/data/doubles_multiline_string.py +++ b/test/data/doubles_multiline_string.py @@ -1,7 +1,9 @@ s = """ This "should" -"not" be +be "linted" """ s = ''' This "should" "not" be -linted "...
2020-05-12T23:11:50+00:00Z
Multiline quote raise wrong error As you wrote: We follow the PEP8 conventions to avoid backslashes in the string. So, no matter what configuration you are using (single or double quotes) these are always valid strings ``` s = 'double "quotes" wrapped in singles are ignored' s = "single 'quotes' wrapped in doubles...
Can you share your flake8 configuration? Are you enabling/disabling avoid-escape? On Fri, Apr 17, 2020, 8:30 AM Zoynels <notifications@github.com> wrote: > As you wrote: > We follow the PEP8 conventions to avoid backslashes in the string. So, no > matter what configuration you are using (single or double quotes) thes...
0.0.1-alpha
efdf5b54d85b579b1bdb288baf89da1e0e2d6f6f
["test.test_checks.DoublesTestChecks::test_multiline_string", "test.test_checks.DoublesTestChecks::test_multiline_string_using_lines", "test.test_checks.SinglesTestChecks::test_multiline_string"]
["test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_absent", "test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_doubles", "test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_singles", "test.test_checks.TestChecks::test_get_noqa_...
["test.test_checks.TestFlake8Stdin::test_stdin"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
movingpandas__movingpandas-465
movingpandas/movingpandas
61a4930788ee060f4ea2cac318890f8685100813
diff --git a/movingpandas/trajectory_cleaner.py b/movingpandas/trajectory_cleaner.py index 39600ea..d15bb2c 100644 --- a/movingpandas/trajectory_cleaner.py +++ b/movingpandas/trajectory_cleaner.py @@ -88,7 +88,13 @@ class IqrCleaner(TrajectoryCleaner): ixs.append(ix.tolist()) indices = pd.Series...
python
diff --git a/movingpandas/tests/test_trajectory_cleaner.py b/movingpandas/tests/test_trajectory_cleaner.py index abfa05d..7091825 100644 --- a/movingpandas/tests/test_trajectory_cleaner.py +++ b/movingpandas/tests/test_trajectory_cleaner.py @@ -5,7 +5,7 @@ from movingpandas.trajectory_collection import TrajectoryCollec...
2025-05-11T19:54:59+00:00Z
AttributeError with custom x / y column names As reported in https://codeberg.org/movingpandas/trajectools/issues/73
0.0.1-alpha
1594568896441a9425083bb097dc12305356f8b7
["movingpandas.tests.test_trajectory_cleaner.TestTrajectoryCleanerNonGeo::test_iqr_cleaner_collection_nongeo", "movingpandas.tests.test_trajectory_cleaner.TestTrajectoryCleanerNonGeo::test_outlier_cleaner_collection_nongeo", "movingpandas.tests.test_trajectory_generalizer.TestTrajectoryGeneralizerNonGeo::test_tdtr_nong...
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "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" }
sherbold__autorank-33
sherbold/autorank
74116564d3d9e67a52b6f657a82ee788e5b5cba8
diff --git a/autorank/_util.py b/autorank/_util.py index 07cc884..e3f8893 100644 --- a/autorank/_util.py +++ b/autorank/_util.py @@ -304,14 +304,14 @@ def rank_multiple_nonparametric(data, alpha, verbose, all_normal, order, effect_ return _ComparisonResult(rankdf, pval, cd, 'friedman', 'nemenyi', effsize_method, r...
python
diff --git a/tests/test_autorank.py b/tests/test_autorank.py index b112afa..b4ad124 100644 --- a/tests/test_autorank.py +++ b/tests/test_autorank.py @@ -459,6 +459,8 @@ class TestAutorank(unittest.TestCase): self.assertTrue(res.homoscedastic) self.assertEqual(res.omnibus, 'ttest') create_repo...
2025-06-02T09:50:05+00:00Z
Implement force_mode for bayesian analysis The parameter force_mode is currently ignored for Bayesian analysis. This should be changed.
0.0.1-alpha
93fb86ec287eb6c5a6866f8c6c6bc9f8652a509f
["tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_multiple", "tests.test_autorank.TestAutorank::test_autorank_force_mode_nonparametric_two", "tests.test_autorank.TestAutorank::test_autorank_force_mode_parametric_multiple_nonnormal", "tests.test_autorank.TestAutorank::test_autorank_force_mode_pa...
["tests.test_autorank.TestAutorank::test_autorank_absoluterope", "tests.test_autorank.TestAutorank::test_autorank_force_effect_size", "tests.test_autorank.TestAutorank::test_autorank_force_mode_parametric_multiple_heteroscedastic", "tests.test_autorank.TestAutorank::test_autorank_invalid", "tests.test_autorank.TestAuto...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
woctezuma__download-steam-reviews-16
woctezuma/download-steam-reviews
c546485ab74ffd72243623fc6f8eb8a557d1f370
diff --git a/steamreviews/download_reviews.py b/steamreviews/download_reviews.py index 600c71d..bd44385 100644 --- a/steamreviews/download_reviews.py +++ b/steamreviews/download_reviews.py @@ -68,6 +68,13 @@ def get_processed_app_ids(): return all_app_ids +def get_default_review_type(): + # Reference: https...
python
2021-05-18T16:04:34+00:00Z
Some request examples dont seem to work I tried to do the `Download reviews for one appID, with specific request parameters (language, sentiment, store)` request example without any editing from the readme, but I always get the error ``` Traceback (most recent call last): File "C:\Users\samsample\Desktop\stea...
The error happens here: https://github.com/woctezuma/download-steam-reviews/blob/4b8068fba3243500999864d34eb6b8a0ce3c2579/steamreviews/download_reviews.py#L296 which means `query_summary` does not have the field `total_reviews` after the call `download_reviews_for_app_id_with_offset()`: https://github.com/woct...
0.0.1-alpha
dc9a094fe20bc73cbc97f9f2d3c05859db8a4431
["steamreviews.tests.test_steamreviews.TestSteamReviewsMethods::test_download_reviews_filtered_by_negative_review_type", "steamreviews.tests.test_steamreviews.TestSteamReviewsMethods::test_download_reviews_filtered_by_positive_review_type"]
["steamreviews.tests.test_steamreviews.TestSteamReviewsMethods::test_download_reviews", "steamreviews.tests.test_steamreviews.TestSteamReviewsMethods::test_download_reviews_filtered_by_language", "steamreviews.tests.test_steamreviews.TestSteamReviewsMethods::test_download_reviews_filtered_by_non_steam_purchase_type", "...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
miyuchina__mistletoe-86
miyuchina/mistletoe
4b436516adac955ebf19abe06d1fc91e82c70e48
diff --git a/mistletoe/span_token.py b/mistletoe/span_token.py index 3f92a65..466496c 100644 --- a/mistletoe/span_token.py +++ b/mistletoe/span_token.py @@ -127,7 +127,7 @@ class Strikethrough(SpanToken): """ Strikethrough tokens. ("~~some text~~") """ - pattern = re.compile(r"(?<!\\)(?:\\\\)*~~(.+)~~...
python
diff --git a/test/test_span_token.py b/test/test_span_token.py index 2b5aa23..353dfa8 100644 --- a/test/test_span_token.py +++ b/test/test_span_token.py @@ -45,6 +45,11 @@ class TestStrikethrough(TestBranchToken): def test_parse(self): self._test_parse(span_token.Strikethrough, '~~some text~~', 'some text...
2021-09-18T20:56:50+00:00Z
Multiple strikethrough tokens on one line don’t parse correctly When there are multiple strikethroughs on one line, mistletoe only generates one `<del>` element as a result: ``` $ mistletoe master mistletoe [...
@fqxp, fixed by _manually_ merging your PR #87, thank you!
0.0.1-alpha
afb379488205f2ba3a802525f174559a34834113
["test.test_span_token.TestStrikethrough::test_parse_multiple"]
["test.test_span_token.TestRawText::test_attribute", "test.test_span_token.TestRawText::test_no_children", "test.test_ast_renderer.TestASTRenderer::test", "test.test_ast_renderer.TestASTRenderer::test_footnotes", "test.test_block_token.TestTableRow::test_easy_table_row", "test.test_block_token.TestTableRow::test_match"...
["test.test_cli.TestCLI::test_convert_file_success"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oceanbase__sql-lifecycle-management-41
oceanbase/sql-lifecycle-management
c7ee00f838631fe4840f96a4b7356c51e1ef5e63
diff --git a/src/parser/oceanbase_parser/lexer.py b/src/parser/oceanbase_parser/lexer.py index a060c05..5578234 100644 --- a/src/parser/oceanbase_parser/lexer.py +++ b/src/parser/oceanbase_parser/lexer.py @@ -73,7 +73,7 @@ def t_INTEGER(t): # String literal def t_SCONST(t): - r'\'([^\\\n]|(\\.))*?\'' + r'\'([...
python
diff --git a/test/parser/test_parser_dml.py b/test/parser/test_parser_dml.py index 8077a22..4434c93 100644 --- a/test/parser/test_parser_dml.py +++ b/test/parser/test_parser_dml.py @@ -471,7 +471,6 @@ SELECT channel_code , contact_number FROM customer_contact_channels WHERE active result = oceanbase_parser.par...
2023-06-29T08:27:09+00:00Z
[Bug]: single quote escape lex error SELECT director_id FROM movies WHERE movie_title = 'It''s Winter' ![image](https://github.com/oceanbase/sql-lifecycle-management/assets/27209261/adc5dbc6-9f5c-4371-8fe8-cdcb73f44018)
0.0.1-alpha
5f02fdf5ccd4503430467d90bc90c81a22e5b313
["test.parser.test_parser_dml.MyTestCase::test_single_quote_escape"]
["test.optimizer.test_optimizer.MyTestCase::test_1", "test.optimizer.test_optimizer.MyTestCase::test_optimize", "test.optimizer.test_optimizer.MyTestCase::test_optimize_index_recommendation", "test.optimizer.test_optimizer.MyTestCase::test_optimize_index_recommendation2", "test.optimizer.test_optimizer.MyTestCase::test...
[]
{ "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-1025
octodns/octodns
0b5265e1b87487e4438cebf2b9899e2a3cea8bbb
diff --git a/CHANGELOG.md b/CHANGELOG.md index c22651e..7b8025f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ ## v1.1.0 - 2023-??-?? - ??? +#### Noteworthy changes + +* New dynamic zone config support that allows wildcard entries in the octoDNS + config to be expanded by the source provider(s). See ...
python
diff --git a/tests/config/dynamic-config-no-list-zones.yaml b/tests/config/dynamic-config-no-list-zones.yaml new file mode 100644 index 0000000..4b8bd90 --- /dev/null +++ b/tests/config/dynamic-config-no-list-zones.yaml @@ -0,0 +1,21 @@ +providers: + in: + # does not support list_zones + class: helpers.SimplePro...
2023-08-10T22:38:33+00:00Z
Support for "all" zones of a provider in config file Allow same action on all zones in a provider. For instance, if there are 12 zones in PowerDNS and we want to sync them to cloudflare then we can simply use keyword "all" (like in DNScontrol's get-zones command, or any other convenient keyword) instead of listing all...
We'd looked at this sort of thing in the past, though in that case it also included "fully" managing the zones in target providers and deleting any zones that aren't configured. Liked the idea, but the effort was too much for the time available. This ask is a bit less involved if it's constrained just to including a...
0.0.1-alpha
6e7f036b6ef53990ab03c56530e6cd2ada8e330c
["tests.test_octodns_manager.TestManager::test_dump", "tests.test_octodns_manager.TestManager::test_dynamic_config", "tests.test_octodns_manager.TestManager::test_dynamic_config_unsupported_zone", "tests.test_octodns_provider_yaml.TestYamlProvider::test_list_zones", "tests.test_octodns_provider_yaml.TestSplitYamlProvid...
["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" }
simonw__git-history-28
simonw/git-history
a1f4cbea490894e23120afce7ec005800773f25a
diff --git a/README.md b/README.md index 89bec68..46a75e3 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,7 @@ Additional options: - `--ignore TEXT` - one or more columns to ignore - they will not be included in the resulting database. - `--csv` - treat the data is CSV or TSV rather than JSON, and attempt to gu...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 6625ab6..336925c 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -83,6 +83,7 @@ def make_repo(tmpdir): "TreeID\tname\n1\tSophia\n2\tCharlie", "utf-8", ) + (repo_dir / "increment.txt").write_text(...
2021-12-02T21:19:24+00:00Z
`--skip` option for skipping individual commits > I'm going to add a `--skip` option too for skipping individual commits. _Originally posted by @simonw in https://github.com/simonw/git-history/issues/26#issuecomment-984990838_
Documented here: https://github.com/simonw/git-history/tree/3458d4f339c95608862818b0b375b62fcfbd7896#additional-options
0.0.1-alpha
ddcbe1acd4da999d3061783dd706bb2c68e3c90d
["tests.test_git_history::test_skip_options[options1-expected_texts1]", "tests.test_git_history::test_skip_options[options2-expected_texts2]"]
["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" }
prometheus__client_python-1037
prometheus/client_python
e364a96f506bbb70ae744e0b3307e4b693e28258
diff --git a/prometheus_client/samples.py b/prometheus_client/samples.py index 8735fed..53c4726 100644 --- a/prometheus_client/samples.py +++ b/prometheus_client/samples.py @@ -28,10 +28,10 @@ class Timestamp: return not self == other def __gt__(self, other: "Timestamp") -> bool: - return self.se...
python
diff --git a/tests/test_samples.py b/tests/test_samples.py index 796afe7..7b59218 100644 --- a/tests/test_samples.py +++ b/tests/test_samples.py @@ -12,6 +12,8 @@ class TestSamples(unittest.TestCase): self.assertEqual(samples.Timestamp(1, 2) > samples.Timestamp(1, 1), True) self.assertEqual(samples.Ti...
2024-05-28T20:11:34+00:00Z
Timestamp comparison is wrong Currently, `samples.Timestamp` implementation for comparisons is: ``` def __gt__(self, other: "Timestamp") -> bool: return self.sec > other.sec or self.nsec > other.nsec def __lt__(self, other: "Timestamp") -> bool: return self.sec < other.sec or self.nsec...
0.0.1-alpha
09a5ae30602a7a81f6174dae4ba08b93ee7feed2
["tests.test_samples.TestSamples::test_gt", "tests.test_samples.TestSamples::test_lt"]
["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" }
semuconsulting__pyrtcm-1
semuconsulting/pyrtcm
96d8ad8179943c98f0144ad215b378f9244be0ee
diff --git a/README.md b/README.md index e9eca1c..c480732 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ The following examples are available in the /examples folder: 1. `rtcmfile.py` - illustrates how to stream RTCM data from binary log file. 2. `rtcmserial.py` - illustrates how to stream RTCM data from...
python
diff --git a/tests/test_stream.py b/tests/test_stream.py index 3fde36d..1c693de 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -166,7 +166,15 @@ class StreamTest(unittest.TestCase): self.assertIsNone(raw_data) def testparsebuffer5(self): # test parse_buffer method with short buffer ...
2022-03-31T16:24:56+00:00Z
Ntrip client + pyrtcm RTCM data can also be obtained from RTCM sources using RTCM clients such as https://github.com/nunojpg/ntripclient or https://github.com/liukai-tech/NtripClient-Tools. Is it possible to submit a stream from an RTCM client to pyrtcm?
Hi @foxittt Sorry, no. `pyrtcm` can parse RTCM3 data from any Serial (UART) data stream or binary datafile, but not (for example) an HTTP/TCP socket, so it would be necessary to convert any NTRIP data stream into one or other of these accepted formats before pyrtcm could parse it. There are no current plans to add s...
0.0.1-alpha
7d973e31baeaca984f63b55c8ab213eeb857addf
["tests.test_stream.StreamTest::testparsebuffer5"]
["tests.test_definitions.DefinitionTest::testdfres", "tests.test_definitions.DefinitionTest::testpayloaddfs", "tests.test_static.StaticTest::testattsiz", "tests.test_static.StaticTest::testatttyp", "tests.test_static.StaticTest::testbits2val", "tests.test_static.StaticTest::testcrc24q", "tests.test_static.StaticTest::t...
["unittest.loader._FailedTest.tests::testsuite"]
{ "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" }
roniemartinez__latex2mathml-63
roniemartinez/latex2mathml
929614450ff8ec467d440a892bd30bf4e882af7c
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c7e6fa..247969f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 2.8.3 - 2020-03-08 +### Fixed +- Discontinues parsing when \right is reached (#63) + ## 2.8.2 - 2020-03-06 ### Fixed - IndexError: list index out of range (#61) diff --...
python
diff --git a/tests/test_aggregator.py b/tests/test_aggregator.py index 0131408..459bf8c 100644 --- a/tests/test_aggregator.py +++ b/tests/test_aggregator.py @@ -185,3 +185,9 @@ def test_issue_61(): r'\frac', ['123', [r'\left', '(', [r'\sqrt', ['x'], '+', '5'], r'\right', ')']], ['x', '+', '4'], ...
2020-03-08T08:37:27+00:00Z
Redundant symbol "}" `converter.convert(r"\sqrt {\sqrt {\left( x^{3}\right) + v}}")` return: `<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msqrt><mrow><msqrt><mrow><mrow><mo fence="true" form="prefix" stretchy="true">&#x00028;</mo><mrow><msup><mi>x</mi><mrow><mn>3</mn></mrow></msup></mrow><mo fence="true"...
0.0.1-alpha
a1d24ee40fdd0a6bd539ec67877d980f958f7ddc
["tests.test_aggregator::test_issue_63", "tests.test_converter::test_issue_63"]
["tests.test_aggregator::test_alphabets", "tests.test_aggregator::test_empty_group", "tests.test_aggregator::test_numbers", "tests.test_aggregator::test_numbers_with_decimals", "tests.test_aggregator::test_numbers_and_alphabets", "tests.test_aggregator::test_decimals_and_alphabets", "tests.test_aggregator::test_string_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
taobojlen__django-zeal-28
taobojlen/django-zeal
6412406b9edd7911cafd857b43e05ab3c5f9537e
diff --git a/src/zeal/patch.py b/src/zeal/patch.py index 7a7657d..708febe 100644 --- a/src/zeal/patch.py +++ b/src/zeal/patch.py @@ -91,10 +91,19 @@ def patch_queryset_function( hasattr(queryset, "__zeal_patched") and queryset.__zeal_patched # type: ignore ): return queryset + ...
python
diff --git a/tests/test_patch.py b/tests/test_patch.py index 0a0f286..2981796 100644 --- a/tests/test_patch.py +++ b/tests/test_patch.py @@ -1,6 +1,7 @@ import sys import pytest +from django.db import models from djangoproject.social.models import User from tests.factories import UserFactory @@ -23,3 +24,67 @@ ...
2024-11-22T11:44:23+00:00Z
RecursionError when model implements a custom `__eq__` method that access a relation ## Description I ran into this when adding `django-zeal` to an app that I am working on. I had a model that implemented a custom `__eq__` method and when this got hit via a test, `RecursionError: maximum recursion depth exceeded` w...
this is now fixed in zeal 2.0.2 thanks to @bradleyess !
0.0.1-alpha
d1570593bde02cd5f020fcbfb21350df03e43026
["tests.test_patch::test_handles_nested_relation_equality"]
["tests.test_listeners::test_can_log_errors", "tests.test_listeners::test_can_log_all_traces", "tests.test_listeners::test_errors_include_caller", "tests.test_listeners::test_can_exclude_with_allowlist", "tests.test_listeners::test_can_use_fnmatch_pattern_in_allowlist_model", "tests.test_listeners::test_can_use_fnmatch...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyfar__pyfar-26
pyfar/pyfar
39e07177e42966cdef7fabb88a5813ac6c06c188
diff --git a/pyfar/dsp/filter.py b/pyfar/dsp/filter.py index 63c53df..36cac98 100644 --- a/pyfar/dsp/filter.py +++ b/pyfar/dsp/filter.py @@ -120,7 +120,7 @@ def cheby1(signal, N, ripple, frequency, btype='lowpass', sampling_rate=None): filt = FilterSOS(sos, fs) filt.comment = (f"Chebychev Type I {btype} of or...
python
diff --git a/tests/test_dsp.py b/tests/test_dsp.py index 775c517..b8435ae 100644 --- a/tests/test_dsp.py +++ b/tests/test_dsp.py @@ -1,4 +1,3 @@ -from pyfar.dsp.dsp import group_delay import pytest import numpy as np import numpy.testing as npt @@ -173,7 +172,7 @@ def sine_plus_impulse_mock(): frequencies = np....
2020-11-26T09:32:14+00:00Z
Add testing for filters ## Description There is currently no testing for filters because they were finished over night for the pyfar seminar
0.0.1-alpha
18e2aa35dfdbc53c5f70291d83c60b02068a9b0c
["tests.test_filter::test_cheby1", "tests.test_filter::test_cheby2", "tests.test_filter::test_ellip", "tests.test_filter::test_peq", "tests.test_filter::test_shelve", "tests.test_filter::test_crossover"]
["tests.test_coordinates::test_coordinates_init", "tests.test_coordinates::test__systems", "tests.test_coordinates::test_coordinate_names", "tests.test_coordinates::test_exist_systems", "tests.test_coordinates::test_systems", "tests.test_coordinates::test_coordinates_init_val", "tests.test_coordinates::test_coordinates...
["tests.test_coordinates::test_show", "tests.test_coordinates::test_get_nearest_k", "tests.test_dsp::test_phase_rad", "tests.test_dsp::test_phase_deg", "tests.test_dsp::test_phase_unwrap", "tests.test_dsp::test_phase_deg_unwrap", "tests.test_eq_area_partitions::test_caps_dim_2", "tests.test_eq_area_partitions::test_cap...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
roniemartinez__latex2mathml-61
roniemartinez/latex2mathml
30827e5c505e156e9f58056494752019d656720f
diff --git a/CHANGELOG.md b/CHANGELOG.md index cddb367..1c7e6fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 2.8.2 - 2020-03-06 +### Fixed +- IndexError: list index out of range (#61) + ## 2.8.1 - 2020-03-06 ### Fixed - Add support for \math* (#60) diff --git a/latex2mathml/ag...
python
diff --git a/tests/test_aggregator.py b/tests/test_aggregator.py index 76600ef..2dae94c 100644 --- a/tests/test_aggregator.py +++ b/tests/test_aggregator.py @@ -176,3 +176,12 @@ def test_issue_60(): latex = r'\mathrm{...}' expected = [r'\mathrm', ['.', '.', '.']] assert expected == list(aggregate(latex))...
2020-03-06T15:51:20+00:00Z
IndexError: list index out of range ### When convert r"\frac{x + 4}{x + \frac{123 \left(\sqrt{x} + 5\right)}{x + 4} - 8}" an error was thrown: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\latex2mathml\convert...
0.0.1-alpha
ad201c323bc80464c571c727a5bbac097336df22
["tests.test_aggregator::test_issue_61", "tests.test_converter::test_issue_61"]
["tests.test_aggregator::test_alphabets", "tests.test_aggregator::test_empty_group", "tests.test_aggregator::test_numbers", "tests.test_aggregator::test_numbers_with_decimals", "tests.test_aggregator::test_numbers_and_alphabets", "tests.test_aggregator::test_decimals_and_alphabets", "tests.test_aggregator::test_string_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tonybaloney__perflint-20
tonybaloney/perflint
a054489e045124e363ddfb8a6f290c501fef5592
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc37c0..02eda1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes +## 0.8.0 (main) + +* Bugfix: No longer suggests list comprehensions when the if statement has an elif/else clause + ## 0.7.0 (28th March 2022) * Added a standalone entry point (...
python
diff --git a/tests/functional/comprehensions.py b/tests/functional/comprehensions.py index a2d24cb..669b962 100644 --- a/tests/functional/comprehensions.py +++ b/tests/functional/comprehensions.py @@ -24,9 +24,28 @@ def should_be_a_dict_comprehension(): for x, y in pairs: result[x] = y + def should...
2022-04-01T03:46:48+00:00Z
Comprehensions can only have If with no Elif/Else This is being raised as a potential comprehension, which is impossible ```python def should_not_be_a_list_comprehension(args): """Internal helper for get_args.""" res = [] for arg in args: if not isinstance(arg, tuple): res.ap...
0.0.1-alpha
263ca248a342bf9c70268a122b0fae18c1b52061
["tests.test_comprehension_checker.TestComprehensionChecker::test_complex_list_filter", "tests.test_comprehension_checker.TestComprehensionChecker::test_complex_filtered_dict_assignment", "tests.test_comprehension_checker.TestComprehensionChecker::test_complex_filtered_dict_assignment2"]
["tests.test_comprehension_checker.TestComprehensionChecker::test_simple_list_filter", "tests.test_comprehension_checker.TestComprehensionChecker::test_simple_list_copy", "tests.test_comprehension_checker.TestComprehensionChecker::test_simple_dict_assignment", "tests.test_comprehension_checker.TestComprehensionChecker:...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sciunto-org__python-bibtexparser-376
sciunto-org/python-bibtexparser
f935bc369702110d01aeec3c1216132896052c13
diff --git a/bibtexparser/entrypoint.py b/bibtexparser/entrypoint.py index 7faee81..1c82468 100644 --- a/bibtexparser/entrypoint.py +++ b/bibtexparser/entrypoint.py @@ -5,7 +5,7 @@ from .library import Library from .middlewares.middleware import Middleware from .middlewares.parsestack import default_parse_stack, defa...
python
diff --git a/tests/test_writer.py b/tests/test_writer.py index 3053353..f23aa94 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -41,7 +41,7 @@ def _dummy_entry(): def test_single_simple_blocks(block, expected_string): """Test the @string serializer.""" library = Library(blocks=[block]) - s...
2023-05-31T09:13:45+00:00Z
Crash bug For a file `test.bib` with the content: ``` @inproceedings{DBLP:conf/amw/GuagliardoL18, author = {Paolo Guagliardo and Leonid Libkin}, editor = {Dan Olteanu and Barbara Poblete}, title = {How Standard is the {SQL} Standard?}, booktitle ...
Thanks for reporting. This is odd. Is this going to be closed by #377? Yup. The PR aims to fix this issue.
0.0.1-alpha
14535f3e6fab870343f560e23657caf60b009514
["tests.test_writer::test_single_simple_blocks[block0-@string{myKey = \"myValue\"}\\n]", "tests.test_writer::test_single_simple_blocks[block1-@preamble{\"myValue\"}\\n]", "tests.test_writer::test_single_simple_blocks[block2-@comment{myValue}\\n]", "tests.test_writer::test_single_simple_blocks[block3-#myValue\\n]", "tes...
["tests.middleware_tests.test_enclosing::test_removal_of_enclosing_on_string[inplace-John Doe-double_quotes]", "tests.middleware_tests.test_enclosing::test_removal_of_enclosing_on_string[inplace-John Doe-curly_braces]", "tests.middleware_tests.test_enclosing::test_removal_of_enclosing_on_string[inplace-John Doe-no_encl...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oscal-compass__compliance-trestle-1461
oscal-compass/compliance-trestle
3d54f07cad319cf6986dcc4c0abbbeec38b9bad7
diff --git a/trestle/tasks/csv_to_oscal_cd.py b/trestle/tasks/csv_to_oscal_cd.py index 0ca9d7e..7244735 100644 --- a/trestle/tasks/csv_to_oscal_cd.py +++ b/trestle/tasks/csv_to_oscal_cd.py @@ -1647,11 +1647,12 @@ class _CsvMgr(): return rval def _undecorate_header(self) -> None: - """Undecorate h...
python
diff --git a/tests/trestle/tasks/csv_to_oscal_cd_test.py b/tests/trestle/tasks/csv_to_oscal_cd_test.py index 37286f5..392b4a5 100644 --- a/tests/trestle/tasks/csv_to_oscal_cd_test.py +++ b/tests/trestle/tasks/csv_to_oscal_cd_test.py @@ -382,6 +382,24 @@ def test_execute_missing_heading(tmp_path: pathlib.Path) -> None: ...
2024-06-05T15:47:36+00:00Z
task csv-to-oscal-cd should allow any case for headings. ## Issue description / feature objectives Different heading case should be tolerated. For example $$Control_Id_List, $$control_id_list, $$Control_id_list, etc. should all be allowed. ## Caveats / Assumptions N/A ## Completion Criteria Code to supp...
Current code snippet: `COMPONENT_DESCRIPTION = 'Component_Description'` `component_description = self._csv_mgr.get_value(rule_key, COMPONENT_DESCRIPTION)` If the column heading in the .csv is `Component_Description` a match will occur. The change request is to make the matching to be case insensitive, so that a ...
0.0.1-alpha
677c7ea81d78c0d5356b3f0bb5b7563565a2938f
["tests.trestle.tasks.csv_to_oscal_cd_test::test_execute_case_insensitive_heading"]
["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" }
tusharsadhwani__zxpy-9
tusharsadhwani/zxpy
e401cc0b872a5d6c3b99e6d6de84d90942c628ef
diff --git a/zx.py b/zx.py index bb57f01..7ee2337 100644 --- a/zx.py +++ b/zx.py @@ -273,6 +273,35 @@ def setup_zxpy_repl() -> None: print() install() + sys.exit() + + +class ZxpyConsole(code.InteractiveConsole): + """Runs zxpy over""" + + def runsource( + self, + source: str, + ...
python
diff --git a/tests/zxpy_test.py b/tests/zxpy_test.py index ddbe93f..480a777 100644 --- a/tests/zxpy_test.py +++ b/tests/zxpy_test.py @@ -89,10 +89,7 @@ def test_raise() -> None: assert exc.value.args == (1,) -def test_interactive( - monkeypatch: pytest.MonkeyPatch, - capsys: pytest.CaptureFixture[str], -...
2022-08-06T11:37:34+00:00Z
Improve zx REPL - Has some weird variable scoping issues (eg. recursive functions don't work) - Autocomplete barely works (can probably be fixed by reading and appending to the `~/.python_history` file)
```python >>> def f(n): ... if n < 2: ... return 1 ... return f(n-1) + f(n-2) ... >>> f(10) Traceback (most recent call last): File "/home/tushar/.local/lib/python3.8/site-packages/zx.py", line 325, in install exec(code_obj) File "<input>", line 1, in <module> File "<input>", line 4, in f ...
0.0.1-alpha
15eb6170a033027512ad83b4923651336c801c48
["tests.zxpy_test::test_interactive"]
["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-2]", "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" }
nteract__testbook-44
nteract/testbook
f0ea5228fbe542b0da88af54f2f12d1476f7ef5e
diff --git a/testbook/client.py b/testbook/client.py index 4264646..f54da0a 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -93,8 +93,10 @@ class TestbookNotebookClient(NotebookClient): """ Executes a cell or list of cells """ - - if not isinstance(cell, list): + if ...
python
diff --git a/testbook/tests/test_execute.py b/testbook/tests/test_execute.py index d895d75..eabe25b 100644 --- a/testbook/tests/test_execute.py +++ b/testbook/tests/test_execute.py @@ -45,6 +45,25 @@ def test_testbook_with_execute_context_manager(notebook): assert notebook.cell_output_text('execute_foo') == 'foo' ...
2020-08-09T17:05:55+00:00Z
execute slice/range of cells
0.0.1-alpha
e1248fbcc7d29a66c5aa31f213d537785d5096da
["testbook.tests.test_execute::test_testbook_range", "testbook.tests.test_execute::test_testbook_slice[slice_params0-6]", "testbook.tests.test_execute::test_testbook_slice[slice_params1-4]"]
["testbook.tests.test_client::test_cell_index[2-2]", "testbook.tests.test_client::test_cell_index[hello-1]", "testbook.tests.test_client::test_cell_index_raises_error[cell_index_args0-TypeError]", "testbook.tests.test_client::test_cell_index_raises_error[non-existent-tag-TestbookCellTagNotFoundError]", "testbook.tests....
[]
{ "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" }
taobojlen__django-zeal-25
taobojlen/django-zeal
2aa1b42c3a441d6b66f52dd2ba70abc6ffe5efee
diff --git a/README.md b/README.md index 3e932a6..6d8d154 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Catch N+1 queries in your Django project. ## Features - Detects N+1s from missing prefetches and from use of `.defer()`/`.only()` -- Friendly error messages like `N+1 detected on User.followers at myap...
python
diff --git a/tests/test_listeners.py b/tests/test_listeners.py index 0ce5d7a..03edc02 100644 --- a/tests/test_listeners.py +++ b/tests/test_listeners.py @@ -24,7 +24,7 @@ def test_can_log_errors(settings, caplog): assert len(w) == 1 assert issubclass(w[0].category, UserWarning) assert re.sear...
2024-11-09T10:44:25+00:00Z
Exception message and allow list improvements As I installed zeal in a big project, it founds lots of little violations here and there. Fixing everything would make a confusing PR, so I thought about starting by installing the tool, ignoring all the existing violations, the fix them one by one. At least the list shou...
i just released zeal 2.0.0 which addresses points 1 and 3! (it's a breaking change, because now that zeal validates the allowlist, there might be some extra work to do).
0.0.1-alpha
ad6fe5f6599de26ee9adf30cd372cd3fcb7cded0
["tests.test_listeners::test_can_log_errors", "tests.test_listeners::test_can_log_all_traces", "tests.test_listeners::test_errors_include_caller", "tests.test_listeners::test_can_exclude_with_allowlist", "tests.test_listeners::test_can_use_fnmatch_pattern_in_allowlist_model", "tests.test_listeners::test_can_use_fnmatch...
["tests.test_listeners::test_ignore_context_takes_precedence", "tests.test_listeners::test_reverts_to_previous_state_when_leaving_zeal_ignore", "tests.test_listeners::test_resets_state_in_nested_context", "tests.test_listeners::test_does_not_run_outside_of_context", "tests.test_listeners::test_validates_global_allowlis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sciunto-org__python-bibtexparser-454
sciunto-org/python-bibtexparser
443978e4bcf590406ca03d2cbe12625120f0a69b
diff --git a/bibtexparser/model.py b/bibtexparser/model.py index fc57a28..b6b38be 100644 --- a/bibtexparser/model.py +++ b/bibtexparser/model.py @@ -315,6 +315,10 @@ class Entry(Block): self._fields = [f for f in self._fields if f.key != key] return field + def __contains__(self, key: str) -> boo...
python
diff --git a/tests/test_model.py b/tests/test_model.py index 4807bc8..3f98771 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -77,6 +77,12 @@ def test_entry_deepcopy(): assert entry_1.fields_dict["field"] == entry_2.fields_dict["field"] +def test_entry_contain(): + entry = Entry("article", "ke...
2024-02-07T20:00:11+00:00Z
Make behaviour entry closer to `dict`: check if field is present **Is your feature request related to a problem? Please describe.** I would like to do something *if* a field is present in an entry. For example: ```python import bibtexparser from bibtexparser.middlewares.middleware import BlockMiddleware bibte...
0.0.1-alpha
a75158789aac27e017a8143b2195726dfbace21f
["tests.test_model::test_entry_contain"]
["tests.middleware_tests.test_block_middleware::test_successful_transform[middleware0-expected0]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware1-expected1]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware2-expected2]", "tests.middleware_tests.t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-713
more-itertools/more-itertools
3ac895f9e065f993a35d05a072eabfa28a819cfd
diff --git a/more_itertools/more.py b/more_itertools/more.py index 1facd8e..1c812f6 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -4502,7 +4502,7 @@ def gray_product(*iterables): f[j + 1] = j + 1 -def partial_product(*args): +def partial_product(*iterables): """Yields tuples ...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 3759eaf..9f32acf 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -5323,25 +5323,25 @@ class GrayProductTests(TestCase): class PartialProductTests(TestCase): - def test_empty(self): - self.assertEqual(tuple(mi.partial_product()), ()) +...
2023-05-18T13:50:50+00:00Z
`partial_product` is wrong for zero/one input iterables and for empty iterables - The doc says: *"Yields tuples"*. - And: *"This may be useful, for example, when testing an expensive function."* (This was also the [original proposal](https://github.com/more-itertools/more-itertools/issues/465#issue-704492388)'s use ...
It's also wrong when an input iterable is empty. Then the product is simply empty, i.e., nothing should be yielded. Currently it instead raises an error. Thanks - I'll take a PR to correct these items. Thanks @pochmann! Good catch I also successfully tested it on all 781 cases with 0 to 4 iterables of lengths 0 to 4. W...
0.0.1-alpha
146113bb4bbe93df0e86000c4de820748d8bd139
["tests.test_more.PartialProductTests::test_empty_iterable", "tests.test_more.PartialProductTests::test_no_iterables", "tests.test_more.PartialProductTests::test_one_iterable"]
["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" }
matthewwithanm__python-markdownify-168
matthewwithanm/python-markdownify
9339571ae9bbc97b10ad8685c50575b990c836bd
diff --git a/README.rst b/README.rst index 98473c6..af87f51 100644 --- a/README.rst +++ b/README.rst @@ -143,6 +143,7 @@ wrap, wrap_width If ``wrap`` is set to ``True``, all text paragraphs are wrapped at ``wrap_width`` characters. Defaults to ``False`` and ``80``. Use with ``newline_style=BACKSLASH`` to keep ...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 55702e3..01f8b91 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -224,6 +224,7 @@ def test_p(): assert md('<p>123456789 123456789</p>') == '\n\n123456789 123456789\n\n' assert md('<p>123456789\n\n\n123456789</p>...
2025-01-19T00:20:22+00:00Z
Support a wrap width value of `None` that explicitly indicates no width limit (unlimited line length) Currently we use a large numerical `wrap_width` value to collapse newlines inside paragraphs: ```python from markdownify import markdownify as md html = "<p>" + "\n".join(["This is some text."] * 10) + "</p>" ...
0.0.1-alpha
600f77d2444233b1c5e838b69390cbbf92bde1e1
["tests.test_conversions::test_p"]
["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" }
softwareunderground__gio-22
softwareunderground/gio
f4cf785355a26e1449955138da08d51742d539ed
diff --git a/gio/zmap.py b/gio/zmap.py index 32b6ad1..6771444 100644 --- a/gio/zmap.py +++ b/gio/zmap.py @@ -12,6 +12,6 @@ def read_zmap(fname): """ Read a ZMAP file and return an xarray.DataArray """ - z = zmapio.ZMAPGrid(fname) - da = xr.DataArray.from_dataframe(z.to_pandas()) - return da + ...
python
diff --git a/tests/test_zmap.py b/tests/test_zmap.py new file mode 100644 index 0000000..0f8089f --- /dev/null +++ b/tests/test_zmap.py @@ -0,0 +1,15 @@ +"""Test ZMAP reading""" + + +import gio +import xarray as xr + +def test_read_zmap(): + """Test the basics. + """ + ds = gio.read_zmap('data/ZMAP/NStopo.dat....
2022-04-22T17:01:32+00:00Z
Bug in `read_zmap()` When trying to read a zmap file I get the following error: ```python >>> import gio >>> gio.read_zmap('./data/ZMAP/NStopo.dat.txt') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/michael/dev_projects/gio/gio/zmap.py", line 16, in read_zmap da = ...
0.0.1-alpha
b61215e6c4b0aa0dec9c8c1f5709a438643c32e5
["tests.test_zmap::test_read_zmap"]
["tests.test_odt::test_read_odt", "tests.test_odt::test_read_odt_xy", "tests.test_odt::test_write_odt", "tests.test_random::test_random", "tests.test_surfer::test_surfer_6", "tests.test_surfer::test_surfer_7"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tldr-pages__tldr-python-client-167
tldr-pages/tldr-python-client
de6c3d2e17564462cd2b8197fb1bb1142c30d3d2
diff --git a/tldr.py b/tldr.py index 49e7ee5..aeaa62f 100755 --- a/tldr.py +++ b/tldr.py @@ -330,11 +330,16 @@ def colors_of(key: str) -> Tuple[str, str, List[str]]: return (color, on_color, attrs) -def output(page: str) -> None: - print() +def output(page: str, plain: bool = False) -> None: + if not pla...
python
diff --git a/tests/test_tldr.py b/tests/test_tldr.py index 9add07e..1d3c02f 100644 --- a/tests/test_tldr.py +++ b/tests/test_tldr.py @@ -24,6 +24,23 @@ def test_whole_page(): assert tldr_output == correct_output +def test_markdown_mode(): + with open("tests/data/gem.md", "rb") as f_original: + ...
2021-10-14T07:42:09+00:00Z
[Feature] Support the --markdown flag It would be awesome to add the `--markdown` option for simply printing the plain page file. If this is added, this tldr client would work with https://github.com/denisidoro/navi/tree/master
Like the `node.js` client https://github.com/tldr-pages/tldr-node-client/blob/master/README.md#usage
0.0.1-alpha
67e52a957d5658f4b53824586e84b97a41d5622a
["tests.test_tldr::test_markdown_mode"]
["tests.test_tldr::test_error_message", "tests.test_tldr::test_get_language_code[en_US.UTF-8-en]", "tests.test_tldr::test_get_language_code[en_US-en]", "tests.test_tldr::test_get_language_code[en-en]", "tests.test_tldr::test_get_language_code[pt_BR-pt_BR]", "tests.test_tldr::test_get_language_code[pt_PT-pt_PT]", "tests...
["tests.test_tldr::test_whole_page"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sighingnow__parsec.py-49
sighingnow/parsec.py
bac05e63d81531adefefc9bafef29334b118d888
diff --git a/src/parsec/__init__.py b/src/parsec/__init__.py index 8f685c1..09f3a4c 100644 --- a/src/parsec/__init__.py +++ b/src/parsec/__init__.py @@ -525,40 +525,37 @@ def separated(p, sep, mint, maxt=None, end=None): @Parser def sep_parser(text, index): cnt, values, res = 0, Value.success(index, ...
python
diff --git a/src/parsec/tests/test_parsec.py b/src/parsec/tests/test_parsec.py index 6bc79e4..b6b00e0 100644 --- a/src/parsec/tests/test_parsec.py +++ b/src/parsec/tests/test_parsec.py @@ -236,7 +236,6 @@ class ParsecCombinatorTest(unittest.TestCase): self.assertEqual(r, ['a', 'a', 'a']) self.assertEq...
2021-12-28T03:02:12+00:00Z
`separated` consume the last `sep` if `end=False` is specified 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 la...
Should be a bug. I have fixed the issue and upload a new version to pypi. Awesome, thanks!
0.0.1-alpha
cfe4400962b493ce1fac9ae05bebdb741d8ffd78
["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" }
marcolivierarsenault__moonraker-home-assistant-258
marcolivierarsenault/moonraker-home-assistant
c1917052c1a7222dc3fee5b034b18021a03ec9f4
diff --git a/custom_components/moonraker/sensor.py b/custom_components/moonraker/sensor.py index e6204ec..b945afc 100755 --- a/custom_components/moonraker/sensor.py +++ b/custom_components/moonraker/sensor.py @@ -81,7 +81,7 @@ SENSORS: tuple[MoonrakerSensorDescription, ...] = [ key="extruder_temp", na...
python
diff --git a/tests/test_sensor.py b/tests/test_sensor.py index 33e1221..e6935e7 100755 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -209,6 +209,18 @@ async def test_opt_sensor_missing(hass, get_data, get_printer_objects_list): assert state is None +async def test_missing_heater_bed(hass, get_data):...
2024-01-23T13:46:50+00:00Z
missing sensors Hi I miss many Sensors. I have 127 Entitys (most switches like GCODE etc.) but only 3 sensors: - My Sensor (? i think Filament Runout Sensor) - My_cam0 (ok) - Thumbnail (ok) Board MKS SKIPR (Armbian) Can anyone help?
can you provide logs please where can i find log-file? https://moonraker-home-assistant.readthedocs.io/en/stable/support/logs.html#go-full-debug-log Sorry. too many privacy. But here error from log: Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:361 Integration: Sensor ([documentation](h...
0.0.1-alpha
a42fd2aaeb5de513c7f4d66eec67429b1688d570
["tests.test_sensor::test_missing_heater_bed"]
["tests.test_api::test_connect_client", "tests.test_api::test_none_port_connect_client", "tests.test_binary_sensor::test_runout_filament_sensor_missing", "tests.test_binary_sensor::test_runout_filament_sensor", "tests.test_binary_sensor::test_multiple_runout_filament_sensor", "tests.test_binary_sensor::test_runout_fila...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-298
python-validators/validators
960b48b8a548fa5b104f1999ef0c18923a232c52
diff --git a/.gitignore b/.gitignore index 64ccdd0..b0e8577 100644 --- a/.gitignore +++ b/.gitignore @@ -132,6 +132,7 @@ venv/ ENV/ env.bak/ venv.bak/ +.venv.dev/ # Spyder project settings .spyderproject diff --git a/pdm.lock b/pdm.lock index 0080926..12d1b73 100644 --- a/pdm.lock +++ b/pdm.lock @@ -2,11 +2,11 @...
python
diff --git a/tests/test_between.py b/tests/test_between.py index 8e59ad6..6b1ccd7 100644 --- a/tests/test_between.py +++ b/tests/test_between.py @@ -15,7 +15,7 @@ T = TypeVar("T", int, float, str, datetime) @pytest.mark.parametrize( ("value", "min_val", "max_val"), - [(12, 11, 13), (12, None, 14), (12, 11, N...
2023-09-23T04:55:45+00:00Z
between doesn't work with the number 0 ``` >>> import validators >>> validators.between(0, min_val=0, max_val=5) ValidationError(func=between, args={'value': 0, 'min_val': 0, 'max_val': 5}) >>> validators.between(1, min_val=0, max_val=5) True >>> validators.between(0, min_val=-1, max_val=5) ValidationError(func...
For now I downgraded to validators to 0.11.0, which seems to be an old/different version of the module to work around this issue. Nice catch! Here's a patch: ```diff diff --git a/src/validators/between.py b/src/validators/between.py index 77c9ae3..2fc3a0c 100644 --- a/src/validators/between.py +++ b/src/validato...
0.0.1-alpha
f7aa59305445b43daac1065cfc51c63f96527dca
["tests.test_between::test_returns_true_on_valid_range[0-0-0]", "tests.test_between::test_returns_true_on_valid_range[0--1-3]"]
["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" }
xgcm__xhistogram-4
xgcm/xhistogram
c53fea67ab8ed4cb47dac625301454433c9eab09
diff --git a/xhistogram/core.py b/xhistogram/core.py index c14f977..9f992c2 100644 --- a/xhistogram/core.py +++ b/xhistogram/core.py @@ -88,7 +88,6 @@ def _histogram_2d_vectorized(*args, bins=None, weights=None, density=False, """Calculate the histogram independently on each row of a 2D array""" N_inputs = ...
python
diff --git a/xhistogram/test/test_core.py b/xhistogram/test/test_core.py index 1ba4f88..a5b0a05 100644 --- a/xhistogram/test/test_core.py +++ b/xhistogram/test/test_core.py @@ -28,6 +28,33 @@ def test_histogram_results_1d(block_size): @pytest.mark.parametrize('block_size', [None, 1, 2]) +def test_histogram_results...
2020-09-15T15:49:23+00:00Z
Support for density=True keyword Numpy histogram has the `density` keyword, which normalized the outputs by the bin spacing. https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html We can easily support this in xhistogram, but it has to .be plugged in. Just opening this issue to make a note of it...
This still needs to be implemented, correct? I noticed that passing the keyword does nothing on the high-level function. It looks like it goes through to the private function which expects the keyword but does nothing with it. It would be good to have a `NotImplementedError` if one passes `True` to density. Or maybe th...
0.0.1-alpha
30006a03d2691c13ea5167261251c28bfbdfc2e6
["xhistogram.test.test_core::test_histogram_results_1d_density[None]", "xhistogram.test.test_core::test_histogram_results_1d_density[1]", "xhistogram.test.test_core::test_histogram_results_1d_density[2]", "xhistogram.test.test_core::test_histogram_results_2d_density", "xhistogram.test.test_xarray::test_histogram_ones_d...
["xhistogram.test.test_core::test_histogram_results_1d[None]", "xhistogram.test.test_core::test_histogram_results_1d[1]", "xhistogram.test.test_core::test_histogram_results_1d[2]", "xhistogram.test.test_core::test_histogram_results_1d_weighted[None]", "xhistogram.test.test_core::test_histogram_results_1d_weighted[1]", ...
["xhistogram.test.test_core::test_histogram_results_3d_density"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1121
octodns/octodns
4fb0986fc56a77335ce096be83180c21892d3a97
diff --git a/CHANGELOG.md b/CHANGELOG.md index 673537c..3a7df78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## v1.?.0 - 2023-??-?? - +* Fix for bug in MetaProcessor _up_to_date check that was failing when there was + a plan with a single change type with a single value, e.g. CNAME. * Support added...
python
diff --git a/tests/test_octodns_processor_meta.py b/tests/test_octodns_processor_meta.py index b99dd19..1bbc9fd 100644 --- a/tests/test_octodns_processor_meta.py +++ b/tests/test_octodns_processor_meta.py @@ -12,6 +12,13 @@ from octodns.record import Create, Record, Update from octodns.zone import Zone +class Dumm...
2023-12-09T16:16:36+00:00Z
Meta processor breaks octodns-sync, when CNAME records are being created or updated We're seeing, that when a octodns-sync process would create or update a CNAME, that the sync process fails with below stack trace. The issue can be resolved by setting `include_meta: False` temporarily, deploying tthat code with the CN...
Another bad assumption. This should only happen when there's a single record being changed. Fix in progress...
0.0.1-alpha
ce84254b3024b94a9811f4d8b01c58ffc4184943
["tests.test_octodns_processor_meta.TestMetaProcessor::test_args_and_values", "tests.test_octodns_processor_meta.TestMetaProcessor::test_flow", "tests.test_octodns_processor_meta.TestMetaProcessor::test_is_up_to_date_meta", "tests.test_octodns_processor_meta.TestMetaProcessor::test_process_source_and_target_zones", "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" }
tinytag__tinytag-200
tinytag/tinytag
ecb777c1bad70e4592bca6e7e5086737648fc095
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py index d158755..4960b81 100644 --- a/tinytag/tinytag.py +++ b/tinytag/tinytag.py @@ -727,9 +727,7 @@ class _ID3(TinyTag): def _parse_tag(self, fh): self._parse_id3v2(fh) - attrs = ['track', 'track_total', 'title', 'artist', 'album', 'albumartist...
python
diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py index 336bf24..5189cbe 100644 --- a/tinytag/tests/test_all.py +++ b/tinytag/tests/test_all.py @@ -141,7 +141,7 @@ testfiles = dict([ {'filesize': 1130, 'album': 'Somewhere Far Beyond', 'albumartist': 'Blind Guardian', 'artist': 'Blind...
2024-02-28T06:08:39+00:00Z
[BUG] non-existent tag content appeared in mp3 files Thank you again for #192 (๑•̀ㅂ•́)و✧ --- ```python >>> TinyTag.get("E:\samples\鹿乃 - 檸檬.mp3").artist '鹿乃\x00¹ÄË' ``` This music has only one artist, however tinytag got two. And the second looks like an ... encoding error? view in Mp3tag: ![image](https...
0.0.1-alpha
acd7b039027095e4c4881a9c4941dc3520bc4239
["tinytag.tests.test_all::test_file_reading_tags[samples/id3v1_does_not_overwrite_id3v2.mp3-expected20]"]
["tinytag.tests.test_all::test_file_reading_tags[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading_tags[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading_tags[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading_tags[samples/vbr_xing_header_2ch...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sissaschool__xmlschema-452
sissaschool/xmlschema
ad306a6d1cc6305f414b25ba20aa5474d7b2fc02
diff --git a/xmlschema/validators/elements.py b/xmlschema/validators/elements.py index 182484b..7a13f0c 100644 --- a/xmlschema/validators/elements.py +++ b/xmlschema/validators/elements.py @@ -114,7 +114,6 @@ class XsdElement(XsdComponent, ParticleMixin, _ADMITTED_TAGS = XSD_ELEMENT, _block: Optional[str] = N...
python
diff --git a/tests/validators/test_schemas.py b/tests/validators/test_schemas.py index 8f37954..0ccb0aa 100644 --- a/tests/validators/test_schemas.py +++ b/tests/validators/test_schemas.py @@ -870,6 +870,143 @@ class TestXMLSchema10(XsdValidatorTestCase): schema.create_element('foo', xsd_element), XsdEleme...
2025-05-18T10:05:43+00:00Z
xmlschema does not handle substitution groups correctly Hi. Recently I have noticed what I believe to be two errors in how xmlschema handles substitution groups. The first one is that type inheritance via substitution groups does not propagate more than 1 layer down the substitution group tree. For instance if you ...
The first error seems like a simple omission in the XsdElement `_parse_substitution_group()` function. It finds the `head_element` of the substitution group, if any, and then if applicable assigns the `type` of that element to the `_head_type` variable of the current element. The problem here is twofold - firstly, it ...
0.0.1-alpha
0039bd6608ee34e09fb8091e3132675553022656
["tests.validators.test_schemas.TestXMLSchema10::test_invalid_substitution_group__issue_452", "tests.validators.test_schemas.TestXMLSchema10::test_multiple_substitution_groups__issue_452", "tests.validators.test_schemas.TestXMLSchema11::test_invalid_substitution_group__issue_452", "tests.validators.test_schemas.TestXML...
["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" }
mapping-commons__sssom-py-239
mapping-commons/sssom-py
9d4320c709ecca87c251859c39650e158c489223
diff --git a/sssom/parsers.py b/sssom/parsers.py index efb6448..c8009ca 100644 --- a/sssom/parsers.py +++ b/sssom/parsers.py @@ -337,8 +337,12 @@ def from_sssom_dataframe( """ prefix_map = _ensure_prefix_map(prefix_map) + # Need to revisit this solution. + # This is to address: A value is trying to be...
python
2022-05-04T13:41:22+00:00Z
Pandas df warning ``` A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy return super().replace( ``` This is caused by this section in `to_mapping_set_dat...
0.0.1-alpha
2dda8c864e299b650bed07e00de511cc27f0d9d8
["tests.test_collapse.TestCollapse::test_filter"]
["tests.test_collapse.TestCollapse::test_collapse", "tests.test_collapse.TestCollapse::test_diff", "tests.test_collapse.TestCollapse::test_groupings", "tests.test_collapse.TestCollapse::test_ptable", "tests.test_collapse.TestCollapse::test_row_count", "tests.test_context.TestContext::test_minimum", "tests.test_parsers....
["tests.test_cli.SSSOMCLITestSuite::test_cli_multiple_input", "tests.test_cli.SSSOMCLITestSuite::test_cli_single_input", "tests.test_collapse.TestCollapse::test_reconcile_prefix", "tests.test_conversion.SSSOMReadWriteTestSuite::test_conversion", "tests.test_convert.TestConvert::test_cob_to_owl", "tests.test_convert.Tes...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tompollard__tableone-182
tompollard/tableone
1faff6aa74bdbac74d874c51d66db3911a59ad1e
diff --git a/tableone/tables.py b/tableone/tables.py index 0f461b8..e4d9a61 100644 --- a/tableone/tables.py +++ b/tableone/tables.py @@ -216,6 +216,18 @@ class Tables: cat_slice = data[categorical].copy() + # Ensure all category levels from the full dataset are preserved + all_levels = { + ...
python
diff --git a/tests/unit/test_tableone.py b/tests/unit/test_tableone.py index 42902a4..10d70d0 100644 --- a/tests/unit/test_tableone.py +++ b/tests/unit/test_tableone.py @@ -1260,3 +1260,58 @@ class TestTableOne(object): expected = '1 (20.0)' assert t.tableone.loc["sex, n (%)", "None"]["Overall"] == ...
2025-04-07T22:43:11+00:00Z
NaN SMD Hello, thank you for the useful package. There seems to be an issue when calculating the SMD for categorical features whereby one of the categories does not have any samples and so the entire feature is set to NaN. ```py from tableone import TableOne import pandas as pd import numpy as np df = pd.DataFrame(...
Thanks Luke, and sorry! There are a couple of open issues around handling of nans. I've been swamped with other things recently, but I'll try to get onto them over the next couple of weeks. Thanks Tom. Will check back periodically and see if I can suggest a more concrete solution. Hi @tompollard, I may have found a so...
0.0.1-alpha
317a67becf250c4987570a8e4753586b856b059d
["tests.unit.test_tableone::test_smd_with_missing_category_level_in_group"]
["tests.unit.test_tableone.TestTableOne::test_examples_used_in_the_readme_run_without_raising_error_pn", "tests.unit.test_tableone.TestTableOne::test_duplicate_index_values_raise_error", "tests.unit.test_tableone.TestTableOne::test_overall_mean_and_std_as_expected_for_cont_variable", "tests.unit.test_tableone.TestTable...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-658
more-itertools/more-itertools
6793bd3e4ed15318746ed2511733f12a9932eb64
diff --git a/more_itertools/more.py b/more_itertools/more.py index 7f73d6e..c9c95a1 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1391,7 +1391,9 @@ def split_after(iterable, pred, maxsplit=-1): if pred(item) and buf: yield buf if maxsplit == 1: - ...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 6b78ca5..4673109 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -1448,6 +1448,10 @@ class SplitAfterTest(TestCase): ('a,b,c,d', lambda c: c != ',', 2), [['a'], [',', 'b'], [',', 'c', ',', 'd']], ), + ...
2022-11-24T12:38:53+00:00Z
Inconsistent behavior of split_after when maxsplit=1 I'm seeing what appears to be inconsistent behavior with `split_after` when I specify a `maxsplit` of 1. Here's what I see with no `maxsplit`: ``` >>> tuple(split_after([1], lambda x: x == 1)) ([1],) ``` And I see the same result with `maxsplit == 2`: ``` >...
Nice catch. I opened https://github.com/more-itertools/more-itertools/pull/659 for this.
0.0.1-alpha
fc1f9acf1b7e11bbc64b54f8385f2e87ecd87452
["tests.test_more.SplitAfterTest::test_max_split"]
["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" }
sepandhaghighi__pycm-499
sepandhaghighi/pycm
a9abd614dcb124168d9db197d5d7cedb63f165a4
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7baf0d0..757d508 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/warning_test.py b/Test/warning_test.py index 42e8534..b34c2d9 100644 --- a/Test/warning_test.py +++ b/Test/warning_test.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """ >>> from pycm import * +>>> from pycm.pycm_util import deprecated >>> from pytest import warns >>> large_cm = ConfusionMatrix(list...
2023-05-08T21:49:10+00:00Z
Deprecated decorator #### Description Add `deprecated` decorator
0.0.1-alpha
626aac9b898f864819f6ac7295ef5480a1494bdf
["Test.warning_test::warning_test"]
["Test.compare_test::compare_test", "Test.error_test::error_test", "Test.output_test::output_test", "Test.overall_test::overall_test", "pycm.pycm_compare::pycm.pycm_compare.Compare", "pycm.pycm_distance::pycm.pycm_distance.DistanceType", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["Test.curve_test::curve_test", "Test.function_test::function_test", "Test.plot_test::plot_test", "Test.verified_test::verified_test", "pycm.pycm_curve::pycm.pycm_curve.Curve", "pycm.pycm_curve::pycm.pycm_curve.PRCurve", "pycm.pycm_curve::pycm.pycm_curve.ROCCurve"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
prometheus__client_python-775
prometheus/client_python
c044b8838a0fa8ec0124246dcaa2ec067fb86183
diff --git a/README.md b/README.md index 9582830..ad40e40 100644 --- a/README.md +++ b/README.md @@ -338,6 +338,14 @@ from prometheus_client import start_wsgi_server start_wsgi_server(8000) ``` +By default, the WSGI application will respect `Accept-Encoding:gzip` headers used by Prometheus +and compress the respons...
python
diff --git a/tests/test_asgi.py b/tests/test_asgi.py index 77278bb..50d76d6 100644 --- a/tests/test_asgi.py +++ b/tests/test_asgi.py @@ -1,3 +1,4 @@ +import gzip from unittest import skipUnless, TestCase from prometheus_client import CollectorRegistry, Counter @@ -74,20 +75,12 @@ class ASGITest(TestCase): ...
2022-03-09T18:08:50+00:00Z
Add support for GZIP encoding As described in the [expositions format spec](https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format), Prometheus supports the optional `Content-Encoding: gzip` header. Other client libraries already support encoding the scraped metrics, for example: * [client_...
0.0.1-alpha
3c91b3f7d19346e8a67a654ae7aa3d966dd60c88
["tests.test_wsgi.WSGITest::test_gzip", "tests.test_wsgi.WSGITest::test_gzip_disabled"]
["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" }
weaviate__weaviate-python-client-85
weaviate/weaviate-python-client
504893caa343beabdc47bf4052cde579813c27a6
diff --git a/docs/changelog.rst b/docs/changelog.rst index 9cfa665..e7c435a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,10 @@ Changelog ========= +Version 3.2.5 +------------- +This patch fixes the ``'Batch' object is not callable`` error. + Version 3.2.4 ------------- | All ``class_name`...
python
diff --git a/test/test_version.py b/test/test_version.py index 5bffdb7..4a94f3a 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -8,4 +8,4 @@ class TestVersion(unittest.TestCase): Test the `__version__` global variable. """ - self.assertEqual(weaviate.__version__, "3.2.4", "Che...
2021-10-26T15:27:17+00:00Z
[BUG] `Batch` object not callable ``` Traceback (most recent call last): File "/home/alex_cannan/repos/zenai/env/bin/weaviate", line 8, in <module> sys.exit(main()) File "/home/alex_cannan/repos/zenai/env/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwarg...
0.0.1-alpha
a9e4e00c699780beb4b2ff38f687eaab8447db52
["test.test_version.TestVersion::test_version"]
["test.schema.test_validate_schema.TestSchemaValidation::test_check_class", "test.schema.test_validate_schema.TestSchemaValidation::test_check_property", "test.schema.test_validate_schema.TestSchemaValidation::test_validate_schema", "test.batch.test_requests.TestBatchReferences::test_add_and_get_request_body", "test.gq...
["test.test_util.TestUtil::test__get_dict_from_object"]
{ "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" }
marcolivierarsenault__moonraker-home-assistant-158
marcolivierarsenault/moonraker-home-assistant
1277d049768fa606509e5f4b07607e0f2305d7f8
diff --git a/custom_components/moonraker/sensor.py b/custom_components/moonraker/sensor.py index 6e2c7a8..ad0e566 100755 --- a/custom_components/moonraker/sensor.py +++ b/custom_components/moonraker/sensor.py @@ -517,13 +517,22 @@ def calculate_pct_job(data) -> float: print_expected_duration = data["estimated_time...
python
diff --git a/tests/test_sensor.py b/tests/test_sensor.py index 5a3c2d5..c615450 100755 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -217,11 +217,17 @@ async def test_calculate_pct_job(data_for_calculate_pct): async def test_calculate_pct_job_no_time(data_for_calculate_pct): data_for_calculate_pct["e...
2023-11-28T01:59:20+00:00Z
Missing data on some entities (ETA, Time Left, and Duration) while printing ## Version of the moonraker integration Moonraker API version V0.9.1 (installed with HACS) ## Describe your setup I am using a Voron printer with Klipper v0.11.0-205-g5f0d252b It's running on a raspberry pi4, hosting fluidd and mainsail ...
Hey couple of questions. Can you get [HomeAssistant debug logs](https://moonraker-home-assistant.readthedocs.io/en/stable/support/logs.html#go-full-debug-log) then start a print wait 2-3 minutes and then download the logs. Also while printing, could you get the content of http://YOUR_MOONRAKER_IP/printer/objects...
0.0.1-alpha
fc123d07647d21b7bbe8a2f3ff8ec71ee008d332
["tests.test_sensor::test_calculate_pct_job_no_time", "tests.test_sensor::test_calculate_pct_job_no_filament"]
["tests.test_api::test_connect_client", "tests.test_api::test_none_port_connect_client", "tests.test_binary_sensor::test_runout_filament_sensor_missing", "tests.test_binary_sensor::test_runout_filament_sensor", "tests.test_binary_sensor::test_multiple_runout_filament_sensor", "tests.test_binary_sensor::test_runout_fila...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
machow__quartodoc-3
machow/quartodoc
fea6e539393a252cbb93de1e575ab2480b7df405
diff --git a/quartodoc/autosummary.py b/quartodoc/autosummary.py index 1353a43..80d8a26 100644 --- a/quartodoc/autosummary.py +++ b/quartodoc/autosummary.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import logging import yaml @@ -70,6 +72,7 @@ def get_object( object_name: str, parser: str = "n...
python
diff --git a/quartodoc/tests/example_dynamic.py b/quartodoc/tests/example_dynamic.py new file mode 100644 index 0000000..574c388 --- /dev/null +++ b/quartodoc/tests/example_dynamic.py @@ -0,0 +1,11 @@ +NOTE = "Notes\n----\nI am a note" + + +def f(a, b, c): + """Return something + + {note} + """ + + +f.__doc__ ...
2023-03-14T16:34:35+00:00Z
Hook for doing dynamic things to parse docstrings griffe uses statics analysis to get objects and their docstrings, so some kinds of dynamically generated docstrings won't be found. For example: * siuba uses the `functools.partial` function to define `inner_join` as `partial(join, ...)`. * plotnine uses a deco...
While it's true that the Griffe loader visits code by default instead of using introspection, Griffe also provides a way to load data by actually importing modules. Check out the [inspector](https://mkdocstrings.github.io/griffe/reference/griffe/agents/inspector/). Maybe you'll find a way to integrate it in your code f...
0.0.1-alpha
1679759b32880f45bc17c09ad316f152e966ee4d
["quartodoc.tests.test_basic::test_replace_docstring"]
["quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n----]", "quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n---\\n-]", "quartodoc.tests.test_ast::test_transform_docstring_section[See Also\\n---------]", "quartodoc.tests.test_ast::test_transform_docstring_section[\\n\\nSee Also...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__pycm-387
sepandhaghighi/pycm
dfbaa177aa8274ce0673987e2fc26e7cbf062da8
diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e21b8..35224ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - `__imbalancement_handler__` function - `vector_serializer` function - NPV micro/macro +- `log_loss` method ...
python
diff --git a/Test/error_test.py b/Test/error_test.py index a434c29..591e1f2 100644 --- a/Test/error_test.py +++ b/Test/error_test.py @@ -148,11 +148,19 @@ pycm.pycm_error.pycmMatrixError: The input type is supposed to be pycm.Confusion Traceback (most recent call last): ... pycm.pycm_error.pycmVectorError: T...
2023-04-27T18:49:45+00:00Z
Add log loss
0.0.1-alpha
3e4d09a370090073f872398a887acd4504e031cc
["Test.error_test::error_test"]
["Test.compare_test::compare_test", "Test.output_test::output_test", "Test.overall_test::overall_test", "Test.warning_test::warning_test", "pycm.pycm_compare::pycm.pycm_compare.Compare", "pycm.pycm_distance::pycm.pycm_distance.DistanceType", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["Test.curve_test::curve_test", "Test.function_test::function_test", "Test.plot_test::plot_test", "Test.verified_test::verified_test", "pycm.pycm_curve::pycm.pycm_curve.Curve", "pycm.pycm_curve::pycm.pycm_curve.PRCurve", "pycm.pycm_curve::pycm.pycm_curve.ROCCurve"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-68
pyprojectx/pyprojectx
9c2e52fef435a162c25ddf09d95f430ff8256119
diff --git a/src/pyprojectx/install_global.py b/src/pyprojectx/install_global.py index ad849ab..8875977 100644 --- a/src/pyprojectx/install_global.py +++ b/src/pyprojectx/install_global.py @@ -32,6 +32,8 @@ def install_px(options): shutil.copy2(wrapper_dir.joinpath("pw.py"), target_pw) shutil.copy2(wrapper_di...
python
diff --git a/tests/integration/test_px.py b/tests/integration/test_px.py index b974f81..555bc05 100644 --- a/tests/integration/test_px.py +++ b/tests/integration/test_px.py @@ -31,6 +31,8 @@ def test_install_px(tmp_project): assert px_dir.joinpath("global", "pw").exists() assert px_dir.joinpath(f"px{SCRIPT_EX...
2024-01-15T06:59:40+00:00Z
(🐞) `pxg` commands don't run in the current directory ```console ~\projects\test> pxg --add poetry ... ~\projects\test> pxg poetry install [tool.poetry] section not found in C:/Users/AMONGUS/.pyprojectx/global/pyproject.toml ```
You can change the working directory in your global `~/.pyprojectx/global/pyproject.toml`: ``` [tool.pyprojectx] cwd = "." ``` I will add this as default when installing px with `--install-px`
0.0.1-alpha
a363935313788421168a77012606ba6f3cf04d50
["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" }
sepandhaghighi__mycoffee-47
sepandhaghighi/mycoffee
8fdbfb629fa37f831ccd0042dfabbe2e76262017
diff --git a/AUTHORS.md b/AUTHORS.md index cb0614e..bc3af4f 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -7,6 +7,7 @@ ---------- - [@boreshnavard](https://github.com/boreshnavard) ** - [@AHReccese](https://github.com/AHReccese) +- [@sadrasabouri](https://github.com/sadrasabouri) ** Graphic designer diff --git a/...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 6c51792..a12b182 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -158,13 +158,14 @@ Water units list: 2. `dsp` - dessertspoon 3. `g` - gram 4. `kg` - kilogram -5. `l` - liter +5. `l` - liter 6. `lb` - pound 7. `mg` - milligram ...
2024-12-09T22:30:33+00:00Z
[Feature]: Pint ### Describe the feature you want to add Support **Pint** unit (for `water`) ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://www.inchcalculator.com/convert/mill...
@sadrasabouri Are you interested in addressing this issue? Sure I'm in
0.0.1-alpha
817674ab0c5a09f8298e1f6abae3c2fedb6fc14f
["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" }
scikit-hep__resample-94
scikit-hep/resample
366ebb752c1c581518c8dcaab7075cb4c073dabf
diff --git a/resample/bootstrap.py b/resample/bootstrap.py index 7f63f8c..594912f 100644 --- a/resample/bootstrap.py +++ b/resample/bootstrap.py @@ -378,3 +378,12 @@ def _confidence_interval_bca( quant = quantile_function_gen(thetas) return quant(p_low), quant(p_high) + + +del Callable +del Generator +del O...
python
diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index ec1f993..7e91f51 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -32,6 +32,16 @@ NON_PARAMETRIC = {"ordinary", "balanced"} ALL_METHODS = NON_PARAMETRIC | PARAMETRIC +def chisquare( + obs, exp=None +): # we do not use sci...
2021-06-27T16:25:46+00:00Z
To-do list for next major release - [x] Estimate statistical uncertainty of p-value from permutation tests - [x] Allow users to pass a target precision to the permutation test instead of asking for the number of bootstrap samples - [x] Generic permutation test for user-defined test statistics - [x] allow sample arg...
@dsaxton Do you have thoughts on this? @HDembinski I think this is a good idea in principle, but there is the downside that the confidence interval could be misinterpreted. If I understand correctly, this is essentially a c.i. on the "true" p-value that would be obtained from all possible results, but this does not tra...
0.0.1-alpha
3d41e51f113b4eb570e5f4b50c94b710e0072884
["tests.test_permutation::test_PermutationResult", "tests.test_permutation::test_ttest_statistic", "tests.test_permutation::test_anova_statistic", "tests.test_permutation::test_mannwhitneyu_statistic", "tests.test_permutation::test_kruskal_statistic", "tests.test_permutation::test_pearson_statistic", "tests.test_permut...
["tests.test_bootstrap::test_resample_shape_1d[gamma]", "tests.test_bootstrap::test_resample_shape_1d[t]", "tests.test_bootstrap::test_resample_shape_1d[ordinary]", "tests.test_bootstrap::test_resample_shape_1d[pareto]", "tests.test_bootstrap::test_resample_shape_1d[poisson]", "tests.test_bootstrap::test_resample_shape...
["tests.test_version::test_local_against_pypi_version"]
{ "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" }
movingpandas__movingpandas-297
movingpandas/movingpandas
41c7af9e5a54011ce2e8cc8a26176c0cb6cfd9d4
diff --git a/movingpandas/trajectory_aggregator.py b/movingpandas/trajectory_aggregator.py index 433f63b..7dbaab8 100644 --- a/movingpandas/trajectory_aggregator.py +++ b/movingpandas/trajectory_aggregator.py @@ -246,7 +246,7 @@ class _SequenceGenerator: this_sequence = [] prev_cell_id = None ...
python
diff --git a/movingpandas/tests/test_overlay.py b/movingpandas/tests/test_overlay.py index d120d4d..a8aa825 100644 --- a/movingpandas/tests/test_overlay.py +++ b/movingpandas/tests/test_overlay.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from pytest import approx -from pandas.util.testing import assert_frame_equal +...
2023-04-04T18:16:17+00:00Z
Tests are failing for Pandas 2.0 Since Pandas 2.0 landed, our automatic tests started failing https://github.com/movingpandas/movingpandas/actions/runs/4602886873 ```ModuleNotFoundError: No module named 'pandas.util.testing```
Looks like it is just `pandas.testing.assert_frame_equal` now https://pandas.pydata.org/docs/dev/reference/api/pandas.testing.assert_frame_equal.html ```AttributeError: 'GeoDataFrame' object has no attribute 'append'. Did you mean: '_append'?``` https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html * Removed...
0.0.1-alpha
8ee9d7f0ab763e1226f7f6123dcf3eded7955869
["movingpandas.tests.test_trajectory_aggregator.TestTrajectoryCollectionAggregator::test_get_significant_points_gdf_crs_metric", "movingpandas.tests.test_trajectory_aggregator.TestTrajectoryCollectionAggregator::test_get_significant_points_gdf_crs_latlon", "movingpandas.tests.test_trajectory_aggregator.TestTrajectoryCo...
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "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" }
more-itertools__more-itertools-986
more-itertools/more-itertools
e922b86d1629b38610e2db6748574be543c34115
diff --git a/docs/api.rst b/docs/api.rst index 5b560c2..6753c28 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -153,6 +153,8 @@ These tools return summarized or aggregated data from an iterable. .. autofunction:: exactly_n(iterable, n, predicate=bool) .. autofunction:: is_sorted .. autofunction:: all_unique +.. aut...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 5e45f7e..d3717b5 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -6051,3 +6051,31 @@ class DoubleStarMapTests(TestCase): actual = list(mi.doublestarmap(lambda x: x, [])) expected = [] self.assertEqual(actual, expected) + +...
2025-05-13T21:13:59+00:00Z
argmin() and argmax() These two functions are common in machine learning. [Numpy implements them](https://numpy.org/doc/2.2/reference/generated/numpy.argmin.html) as returning the index of the first occurrence of a minimum or maximum value in an array. For more_itertools, the functions would accept any iterable or ...
Nice and compact implementations. I fee like as soon as we have this, the question will be "what about a function that returns both the index and the actual value?" So should the `[0]` be left out in the `return` statements? I have mixed feelings about this. People likely would ask for this. Since the input can be an...
0.0.1-alpha
54776467f1d7bd8c39c6fb2584ccd5ea71ec9913
["tests.test_more.ArgMinArgMaxTests::test_basic", "tests.test_more.ArgMinArgMaxTests::test_key"]
["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" }
thesimj__envyaml-9
thesimj/envyaml
e24899cadd614683154b2d78819ca3a3ce6c0bb7
diff --git a/envyaml/envyaml.py b/envyaml/envyaml.py index d02118a..e0ba807 100644 --- a/envyaml/envyaml.py +++ b/envyaml/envyaml.py @@ -30,15 +30,21 @@ RE_COMMENTS = re.compile(r"(^#.*\n)", re.MULTILINE | re.UNICODE) RE_DOT_ENV = re.compile(r"^((?!\d)[\w\- ]+=.*)$", re.MULTILINE | re.UNICODE) RE_ENV = [ - (re.c...
python
diff --git a/tests/env.test.yaml b/tests/env.test.yaml index 156ae33..7f97a5c 100644 --- a/tests/env.test.yaml +++ b/tests/env.test.yaml @@ -77,6 +77,9 @@ empty: novalues: noenvvalue: $EMPTY_ENV|"" +var_in_array: + to: [ $USERNAME ] + # # Comments # diff --git a/tests/test_envyaml.py b/tests/test_envyaml.py...
2020-12-22T21:16:43+00:00Z
Parsing fails with inline list I had the below structure in a config file and the parsing ``` mail: to: [ $HANDLERS_SMTP_TO ] ``` I get the following error `ValueError: Strict mode enabled, variable $SMTP_HANDLER_TO] not defined!` The below works just fine though ``` mail: to: - $HA...
Thanks you, good findings. fix will be soon.
0.0.1-alpha
f656a920c9fc754436658a327d05a8dbe7ce4ff9
["tests.test_envyaml::test_it_should_read_env_file", "tests.test_envyaml::test_it_should_read_custom_file", "tests.test_envyaml::test_it_should_get_default_values", "tests.test_envyaml::test_it_should_raise_key_error_when_no_values", "tests.test_envyaml::test_it_should_populate_env_variable", "tests.test_envyaml::test_...
["tests.test_envyaml::test_it_should_return_default_value", "tests.test_envyaml::test_it_should_access_environment_variables", "tests.test_envyaml::test_it_should_fail_when_access_environment_variables", "tests.test_envyaml::test_it_should_access_environ", "tests.test_envyaml::test_it_should_read_default_file", "tests....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
protectai__modelscan-28
protectai/modelscan
2723936e488595c6e1cf2e01a161965e3b748969
diff --git a/modelscan/settings.py b/modelscan/settings.py index 395dfbe..f202a8f 100644 --- a/modelscan/settings.py +++ b/modelscan/settings.py @@ -125,6 +125,9 @@ DEFAULT_SETTINGS = { ], "pty": "*", "pickle": "*", + "bdb": "*", + "pdb": "*", + "s...
python
diff --git a/tests/test_modelscan.py b/tests/test_modelscan.py index 0953ad3..464d26c 100644 --- a/tests/test_modelscan.py +++ b/tests/test_modelscan.py @@ -1,4 +1,5 @@ import aiohttp +import bdb import http.client import importlib import io @@ -88,6 +89,15 @@ class Malicious8: return sys.exit, (0,) +c...
2024-09-16T14:44:48+00:00Z
Malicious code is undetected for dill based models **Describe the bug** modelscan reports false negative for models serialized using dill. **To Reproduce** Steps to reproduce the behavior: 1. `modelscan -p path-to/model-file` 2. With sklearn, xgboost, lightgbm, catboost models 3. modelscan reports false ne...
0.0.1-alpha
2d636217bc66e7f669a889f34171438699ea7e69
["tests.test_modelscan::test_scan_pickle_operators", "tests.test_modelscan::test_scan_directory_path"]
["tests.test_modelscan::test_scan_pickle_bytes", "tests.test_modelscan::test_scan_zip", "tests.test_modelscan::test_scan_pytorch", "tests.test_modelscan::test_scan_numpy", "tests.test_modelscan::test_scan_file_path", "tests.test_modelscan::test_scan_keras[h5]", "tests.test_modelscan::test_scan_keras[keras]", "tests.tes...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
ndokter__dsmr_parser-120
ndokter/dsmr_parser
026b91cd4925a8024f41e4fceeff4c4a650839ea
diff --git a/dsmr_parser/value_types.py b/dsmr_parser/value_types.py index 4bc9ef3..487e98c 100644 --- a/dsmr_parser/value_types.py +++ b/dsmr_parser/value_types.py @@ -4,14 +4,23 @@ import pytz def timestamp(value): - naive_datetime = datetime.datetime.strptime(value[:-1], '%y%m%d%H%M%S') + try: + na...
python
diff --git a/test/test_parse_v5.py b/test/test_parse_v5.py index fe3ed84..fcc27db 100644 --- a/test/test_parse_v5.py +++ b/test/test_parse_v5.py @@ -244,3 +244,21 @@ class TelegramParserV5Test(unittest.TestCase): corrupted_telegram = TELEGRAM_V5.replace('!6EEE\r\n', '') with self.assertRaises(ParseErr...
2023-01-30T13:45:32+00:00Z
Hourly Gas Consumption is not available / Ignore line with signature \d-\d:24\.2\.1.+?\r\n, because parsing failed. In Home Assistant the `sensor.hourly_gas_consumption` always shows `unavailable`. I also regulary get the following warnings: ``` Logger: dsmr_parser.parsers Source: /usr/local/lib/python3.10/site-pac...
I think it might be useful to share the data you receive from the p1 port. The full dsmr message. > I think it might be useful to share the data you receive from the p1 port. The full dsmr message. How do I do that? > > I think it might be useful to share the data you receive from the p1 port. The full dsmr message....
0.0.1-alpha
edf535f987fdb6df7e18a2790ecc0d37f3562946
["test.test_parse_v5.TelegramParserV5Test::test_gas_timestamp_invalid"]
["test.test_filereader.FileReaderTest::test_read_as_object", "test.test_parse_fluvius.TelegramParserFluviusTest::test_checksum_invalid", "test.test_parse_fluvius.TelegramParserFluviusTest::test_checksum_missing", "test.test_parse_fluvius.TelegramParserFluviusTest::test_checksum_valid", "test.test_parse_fluvius.Telegram...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wbond__asn1crypto-243
wbond/asn1crypto
8c1f7c3952b126240bce02bd79bd7090820114b3
diff --git a/asn1crypto/cms.py b/asn1crypto/cms.py index c395b22..b104c99 100644 --- a/asn1crypto/cms.py +++ b/asn1crypto/cms.py @@ -729,6 +729,12 @@ class RecipientKeyIdentifier(Sequence): ('other', OtherKeyAttribute, {'optional': True}), ] + def _setup(self): + super(RecipientKeyIdentifier, ...
python
diff --git a/tests/test_cms.py b/tests/test_cms.py index 8f9b1e6..2698282 100644 --- a/tests/test_cms.py +++ b/tests/test_cms.py @@ -1001,3 +1001,41 @@ class CMSTests(unittest.TestCase): ]), rs.native ) + + def test_backwards_compat_field_name(self): + new_version = cms.Reci...
2023-10-12T11:55:59+00:00Z
CMS.py Contains TWO Conflicting Definitions of RecipientKeyIdentifier cms.py contains TWO definitions of "class RecipientKeyIdentifier". Unfortunately, the first defines the field "subject_key_identifier" and the latter defines the field "subjectKeyIdentifier". This snowballs, causing problems due to Python binding ti...
Commit https://github.com/wbond/asn1crypto/commit/f003c67831782ed8c225c8b11c3aa3d0cc56fb1d erroneously duplicated the `RecipientKeyIdentifier` class, which effectively changed the field name from underscores to camelCase, and gums things up as @cjamescook noted. Deleting the duplicate and sticking to using `'subject_ke...
0.0.1-alpha
8609892a88f571bc10110603c173832cd100cb44
["tests.test_cms.CMSTests::test_backwards_compat_choice_names", "tests.test_cms.CMSTests::test_backwards_compat_field_name"]
["tests.test_algos.AlgoTests::test_ccm_parameters", "tests.test_algos.AlgoTests::test_digest_parameters", "tests.test_algos.AlgoTests::test_rc2_parameters", "tests.test_algos.AlgoTests::test_rc5_parameters", "tests.test_algos.AlgoTests::test_scrypt_parameters", "tests.test_algos.AlgoTests::test_sha3_algos_round_trip_sh...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-345
microsoft/fabric-cicd
83c45544d0cc2fb36a933efc76ba2ecff7541c9d
diff --git a/src/fabric_cicd/constants.py b/src/fabric_cicd/constants.py index 65ef093..41b618e 100644 --- a/src/fabric_cicd/constants.py +++ b/src/fabric_cicd/constants.py @@ -46,7 +46,7 @@ SHELL_ONLY_PUBLISH = ["Environment", "Lakehouse", "Warehouse", "SQLDatabase"] # REGEX Constants VALID_GUID_REGEX = r"^[a-fA-F...
python
diff --git a/tests/test_fabric_workspace.py b/tests/test_fabric_workspace.py index 743ddbf..ba5eed5 100644 --- a/tests/test_fabric_workspace.py +++ b/tests/test_fabric_workspace.py @@ -171,3 +171,334 @@ def test_environment_param_with_utf8_chars( ) assert workspace.environment == utf8_test_chars["nordic...
2025-06-18T14:08:44+00:00Z
v 0.1.20 has a change in the way pipelines are deployed? ### What is the question? We noticed with the latest version seems to deploy pipelines differently. If deploying with version 0.1.20, pipelines referencing a notebook have the workspace set to '00000...' and subsequently the referenced notebook not found. Do ...
I'd confirm this as a bug, it was fixed previously under #875111, however 0.1.20 is broken the behaviour again. We've reverted to 0.1.19 and working as expected (as shown in screenshot). If you need 0.1.20 for specific reasons, the workaround is to use the params file however it would find and replace all 0000.. values...
0.0.1-alpha
ae22a637d46a1e3b5f8af8dd81b2e6115a9bc501
["tests.test_fabric_workspace::test_workspace_id_replacement_in_json", "tests.test_fabric_workspace::test_workspace_id_replacement_in_python", "tests.test_fabric_workspace::test_workspace_id_replacement_eventstream_json", "tests.test_fabric_workspace::test_workspace_id_replacement_mixed_formats", "tests.test_fabric_wor...
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mondeja__mkdocs-include-markdown-plugin-52
mondeja/mkdocs-include-markdown-plugin
08f1db5ec41c7891923074c6ad88a2bd15cb4bae
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8ced36b..3a72cf2 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.1.3 +current_version = 3.1.4 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
python
diff --git a/tests/test_nested_includes.py b/tests/test_nested_includes.py index b141cef..99574fb 100644 --- a/tests/test_nested_includes.py +++ b/tests/test_nested_includes.py @@ -138,7 +138,7 @@ Some test from final included. ## Header 2 -#### Header 3 +### Header 3 ''', id='cumulative_heading_of...
2021-06-16T11:05:51+00:00Z
Make heading-offset cumulative over nested inclusions Use case is: **File A.md**: ```# A``` **File B.md**: ```# B``` **File C.md**: ``` #C {% include-markdown "./A.md" heading-offset=1 %} {% include-markdown "./B.md" heading-offset=1 %} ``` which is already rendered as following: # C ...
Added in [v3.1.1](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases/tag/v3.1.1). Thank you for your promptitude on yesterday release, it's working just fine for straightforward cases. However I still have this more complex case which isn't working as expected. **File 4.md**: ``` #### 4 {% inc...
0.0.1-alpha
5f6b51f07f7a6aa63925e933c5d467dc540bf8fd
["tests.test_nested_includes::test_nested_include[cumulative_heading_offset]"]
["tests.test_include::test_include[simple case]", "tests.test_include::test_include[newline at end of included]", "tests.test_include::test_include[start/end]", "tests.test_include::test_include[start/end (escaped special characters)]", "tests.test_include::test_include[start/end (unescaped special characters)]", "test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
vagos__llm-sort-3
vagos/llm-sort
a6f516ecdfa4d9040330985793c6d10ec8b245ef
diff --git a/llm_sort.py b/llm_sort.py index c4c5efc..28a672b 100644 --- a/llm_sort.py +++ b/llm_sort.py @@ -82,7 +82,8 @@ def register_commands(cli): return # Initialize the LLM model. - from llm.cli import get_default_model, get_key + from llm.cli import get_default_model + ...
python
2025-02-21T17:59:33+00:00Z
`get_key` moved from `llm.cli` to `llm` I was getting this error with the latest version of `llm`: ``` File "/home/graham/.local/lib/python3.12/site-packages/llm_sort.py", line 85, in sort from llm.cli import get_default_model, get_key ImportError: cannot import name 'get_key' from 'llm.cli' (/home/graham/.local...
Thank you! I'll take a look.
0.0.1-alpha
f48e748fdd3d32f567fcba7497fb9b87d27b1f25
["tests.test_llm_sort::test_sort_allpair", "tests.test_llm_sort::test_sort_sorting", "tests.test_llm_sort::test_sort_sliding", "tests.test_llm_sort::test_sort_top_k", "tests.test_llm_sort::test_sort_file_input"]
["tests.test_llm_sort::test_sort_no_input"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
ultrabug__py3status-2269
ultrabug/py3status
332c62c93074ca01a1922f2318ccd94e2048489a
diff --git a/py3status/core.py b/py3status/core.py index befd7d7..e5805c5 100644 --- a/py3status/core.py +++ b/py3status/core.py @@ -1,3 +1,4 @@ +import importlib.metadata import sys import time from collections import deque @@ -9,8 +10,6 @@ from syslog import LOG_ERR, LOG_INFO, LOG_WARNING, syslog from threading i...
python
diff --git a/tests/test_user_modules.py b/tests/test_user_modules.py index d92259f..591c6c0 100644 --- a/tests/test_user_modules.py +++ b/tests/test_user_modules.py @@ -1,7 +1,8 @@ import argparse +import sys from pathlib import Path -import pkg_resources +import importlib.metadata import pytest import py3statu...
2025-05-17T05:57:19+00:00Z
Deprecated use of `pkg_resources` **Describe the bug** `core.py` imports `pkg_resources`, which is deprecated upstream: https://setuptools.pypa.io/en/latest/pkg_resources.html **Your py3status version** `py3status version 3.59 (python 3.12.6) on sway` This is Debian bug 1083568 (https://bugs.debian.org/1083568...
@obestwalter fyi see related PR plz version 3.62 is out!
0.0.1-alpha
2a299b1b42d7f14e2786e0249ec6403b67d102c1
["tests.test_user_modules::test__get_entry_point_based_modules"]
["tests.test_composite::test_Composite_init_1", "tests.test_composite::test_Composite_init_2", "tests.test_composite::test_Composite_init_3", "tests.test_composite::test_Composite_init_4", "tests.test_composite::test_Composite_append_1", "tests.test_composite::test_Composite_append_2", "tests.test_composite::test_Compo...
[]
{ "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" }
pygfx__pygfx-158
pygfx/pygfx
a11f250b7847f413966cc6981766be612ff0cdd9
diff --git a/pygfx/materials/_background.py b/pygfx/materials/_background.py index 0533b7a..559f2db 100644 --- a/pygfx/materials/_background.py +++ b/pygfx/materials/_background.py @@ -11,12 +11,10 @@ class BackgroundMaterial(Material): """ uniform_type = dict( - clipping_planes="0*4xf4", # array<ve...
python
diff --git a/tests/objects/test_materials.py b/tests/objects/test_materials.py index e90914a..dcbc515 100644 --- a/tests/objects/test_materials.py +++ b/tests/objects/test_materials.py @@ -12,7 +12,8 @@ for name in dir(pygfx.materials): def test_uniform_types_uniform_type(): """Check that the uniform_type always ...
2021-10-12T09:44:44+00:00Z
Let material uniform type automatically include the uniforms of the base classes Right now, each material must define its uniform type including the fields defined in base classes. This is repetitive, but also fragile for people who implement custom materials (their materials break when we add fields to a uniform. ...
0.0.1-alpha
02e1f5ff92f50899ca990b712016e10d2914fcaf
["tests.renderers.test_shader_composer::test_uniform_definitions"]
["tests.cameras.test_cameras::test_otho_camera_near_far", "tests.cameras.test_cameras::test_perspective_camera_near_far", "tests.linalg.test_euler::test_instancing", "tests.linalg.test_euler::test_x", "tests.linalg.test_euler::test_y", "tests.linalg.test_euler::test_z", "tests.linalg.test_euler::test_order", "tests.lin...
[]
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
pallets-eco__flask-sqlalchemy-1102
pallets-eco/flask-sqlalchemy
58e3979b2a56f22a1283eab9624e0a67a435594e
diff --git a/src/flask_sqlalchemy/extension.py b/src/flask_sqlalchemy/extension.py index 6e74b07..47bca61 100644 --- a/src/flask_sqlalchemy/extension.py +++ b/src/flask_sqlalchemy/extension.py @@ -14,6 +14,7 @@ from flask import current_app from flask import Flask from flask import has_app_context +from .model impo...
python
diff --git a/tests/test_model.py b/tests/test_model.py index fe76df8..835e74b 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -1,5 +1,7 @@ from __future__ import annotations +import typing as t + import pytest import sqlalchemy as sa import sqlalchemy.orm @@ -26,13 +28,17 @@ def test_custom_model_cl...
2022-09-26T16:07:42+00:00Z
model.query isn't available when using custom declarative base Discussed in https://github.com/pallets-eco/flask-sqlalchemy/discussions/1101 by @jrast. When using a custom declarative base, the extension doesn't set `model.query`.
0.0.1-alpha
11e0b1ce983fe3779eebae526023dc1a715e3096
["tests.test_model::test_custom_declarative_class[Model]", "tests.test_model::test_custom_declarative_class[object]"]
["tests.test_cli::test_shell_context", "tests.test_engine::test_default_engine", "tests.test_engine::test_engine_per_bind", "tests.test_engine::test_config_engine_options", "tests.test_engine::test_init_engine_options", "tests.test_engine::test_config_echo", "tests.test_engine::test_url_type[sqlite://]", "tests.test_en...
["tests.test_engine::test_sqlite_relative_path", "tests.test_legacy_query::test_default_query_class", "tests.test_legacy_query::test_custom_query_class", "tests.test_model_name::test_complex_inheritance", "tests.test_pagination::test_paginate", "tests.test_pagination::test_paginate_qs", "tests.test_pagination::test_pag...
{ "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" }
sissaschool__xmlschema-440
sissaschool/xmlschema
222e8b68691fb14d6a335b290386b8f0b64d5b2a
diff --git a/xmlschema/validators/facets.py b/xmlschema/validators/facets.py index 9664929..d3049b8 100644 --- a/xmlschema/validators/facets.py +++ b/xmlschema/validators/facets.py @@ -610,6 +610,8 @@ class XsdEnumerationFacets(XsdFacet, MutableSequence[ElementType]): base_type: BaseXsdType _ADMITTED_TAGS = X...
python
diff --git a/tests/validators/test_facets.py b/tests/validators/test_facets.py index 1927ea4..007d6a5 100644 --- a/tests/validators/test_facets.py +++ b/tests/validators/test_facets.py @@ -20,7 +20,8 @@ from xmlschema.names import XSD_NAMESPACE, XSD_LENGTH, XSD_MIN_LENGTH, XSD_MAX_L XSD_WHITE_SPACE, XSD_MIN_INCLUS...
2025-05-17T16:57:23+00:00Z
Regex failing validation Hi, I hope you are doing well! I have an issue of my xml failing validation due to the following regex failure reason: Validation of XML report tag 'my_tag' failed failed validating '1234567891012' with XsdPatternFacets(['^\\d{13}$']): Reason: value doesn't match any pattern of ['^\\d{13}$'] ...
Hi, despite you are not the owner of the XSD file you can patch it before building the schema. Using an XMLResource instance the XSD source can be loaded into a tree and then patched before building the schema (XMLSchema accepts an XMLResource as `source` argument). If you have a composite schema you can do the same l...
0.0.1-alpha
71acf3a7ff2df97ecd28567cd08995faf92cc178
["tests.validators.test_facets.TestXsdFacets::test_custom_pattern_facets__issue_440", "tests.validators.test_facets.TestXsd11Identities::test_custom_pattern_facets__issue_440"]
["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" }
timvink__mkdocs-table-reader-plugin-9
timvink/mkdocs-table-reader-plugin
b2d846e73d4d87fb53cd0479d64e1fedfa330528
diff --git a/mkdocs_table_reader_plugin/safe_eval.py b/mkdocs_table_reader_plugin/safe_eval.py index 092ee37..71f8959 100644 --- a/mkdocs_table_reader_plugin/safe_eval.py +++ b/mkdocs_table_reader_plugin/safe_eval.py @@ -57,7 +57,7 @@ def safe_eval(string): def parse_argkwarg(string: str): """ - Parses a str...
python
diff --git a/tests/fixtures/data_path_with_space/docs/folder with spaces/basic_table.csv b/tests/fixtures/data_path_with_space/docs/folder with spaces/basic_table.csv new file mode 100644 index 0000000..6743b2e --- /dev/null +++ b/tests/fixtures/data_path_with_space/docs/folder with spaces/basic_table.csv @@ -0,0 +1,5 ...
2020-07-07T06:20:39+00:00Z
Whitespace in csv path breaks mkDocs build process Given an abspath, it wmf if there is no whitespace in the path. With whitespace fails in MkDocs /serve build process. Path is: '/Users/username/Documents/1. Test ``` 'page_markdown', page.markdown, page=page, config=config, files=files File "/usr/local/l...
Thanks (again!) for the report, I missed that one. Fixed in [0.4.1](https://github.com/timvink/mkdocs-table-reader-plugin/releases/tag/v0.4.1) and also added some unit tests to prevent the issue from popping up again. ``` pip install --upgrade mkdocs-table-reader-plugin ``` Let me know if this fixes it for y...
0.0.1-alpha
7ae55964f76452b2baae043af2ebb420c6abfcdb
["tests.test_safe_eval::test_parseargkwarg_6", "tests.test_safe_eval::test_parseargkwarg_7"]
["tests.test_build::test_wrong_path", "tests.test_safe_eval::test_safe_eval0", "tests.test_safe_eval::test_safe_eval1", "tests.test_safe_eval::test_safe_eval2", "tests.test_safe_eval::test_safe_eval3", "tests.test_safe_eval::test_safe_eval4", "tests.test_safe_eval::test_safe_eval5", "tests.test_safe_eval::test_parsearg...
["tests.test_build::test_table_output", "tests.test_build::test_compatibility_markdownextradata", "tests.test_build::test_datapath_1", "tests.test_build::test_datapath_trailing", "tests.test_build::test_datapath_with_spaces", "tests.test_build::test_tablepath_with_spaces"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-476
microsoft/fabric-cicd
99abc216450239d916e4faab9166b12c4999be4c
diff --git a/docs/how_to/item_types.md b/docs/how_to/item_types.md index 70e0e15..cb582c9 100644 --- a/docs/how_to/item_types.md +++ b/docs/how_to/item_types.md @@ -57,6 +57,7 @@ - The `find_replace` section in the `parameter.yml` file is not applied. - The `exclude_path` variable is required when deploying a...
python
diff --git a/tests/test_publish.py b/tests/test_publish.py index f9971d1..5ad222f 100644 --- a/tests/test_publish.py +++ b/tests/test_publish.py @@ -176,3 +176,167 @@ def test_mixed_valid_and_invalid_item_types_in_scope(mock_endpoint): repository_directory=str(temp_path), item_type_in_...
2025-08-13T21:17:40+00:00Z
Error running unpublish_all_orphan_items ### Library Version 1.23 and 1.24 ### What is the problem? When running unpublish_all_orphan_items, items are not deleted, but an error is given. When using the debug mode, it appreas as if the wrong API is used to remove items: 2025-08-07T07:59:46.1407380Z URL: https://api...
Can you share more details? What is the error? What is the debug output? api.powerbi.com is synonymous with the fabric api. This is the error message : ############################################################################################## ########## Unpublishing Orphaned Items #############################...
0.0.1-alpha
d33cb2588c95cf30d69167a615987be38aafe746
["tests.test_publish::test_unpublish_feature_flag_warnings"]
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyswmm__swmmio-196
pyswmm/swmmio
a0c8dee0473deb376e12b02b529d730b26ae062d
diff --git a/README.md b/README.md index ca1472e..fb6a69c 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,7 @@ nodes.dataframe Create an image (.png) visualization of the model. By default, pipe stress and node flood duration is visualized if your model includes output data (a .rpt file should accompany the .inp)....
python
diff --git a/swmmio/tests/test_graphics.py b/swmmio/tests/test_graphics.py index f136fa0..83ff7e8 100644 --- a/swmmio/tests/test_graphics.py +++ b/swmmio/tests/test_graphics.py @@ -23,7 +23,7 @@ import pyswmm def test_draw_model(): m = swmmio.Model(MODEL_FULL_FEATURES_XY) target_img_pth = os.path.join(DATA_P...
2023-05-19T15:53:17+00:00Z
draw_model should include all links, not just conduits When running the `draw_model` function, only conduits are considered in the visualization. This should include all links (e.g. pumps, weirs, etc.)
0.0.1-alpha
9f345b5d1c98672a087d4ddbdb13fde00a43cb6a
["swmmio.tests.test_graphics::test_web_map_return_html"]
["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_pumps_composite", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
xflr6__graphviz-218
xflr6/graphviz
047569f2003627ddf634e371bca1f4787b5e777e
diff --git a/graphviz/_tools.py b/graphviz/_tools.py index 018425c..97c7dbf 100644 --- a/graphviz/_tools.py +++ b/graphviz/_tools.py @@ -106,6 +106,7 @@ def promote_pathlike_directory(directory: typing.Union[os.PathLike, str, None], def deprecate_positional_args(*, supported_number: i...
python
diff --git a/tests/test_all_classes.py b/tests/test_all_classes.py index 122bff1..abc0d31 100644 --- a/tests/test_all_classes.py +++ b/tests/test_all_classes.py @@ -210,7 +210,7 @@ def test_save_mocked(mocker, dot, filename='nonfilename', directory='nondirector mock_makedirs = mocker.patch('os.makedirs', autospec=...
2024-05-13T16:58:05+00:00Z
Fix call-signature related own `PendingDeprecationWarning` in tests E.g. in https://github.com/xflr6/graphviz/actions/runs/8317979263 ``` PendingDeprecationWarning: The signature of save will be reduced to 1 positional arg ['filename']: pass directory='doctest-output/round-table.gv' as keyword arg(s) filepat...
To suppress warnings it is [recommended](https://graphviz.readthedocs.io/en/stable/release_process.html) to test with `-W ignore:"The signature of":PendingDeprecationWarning`. Is it not possible to fix that warning instead calming it down? 🤔 (just asking) Sure, it is and I believe it will be fixed by @xflr6 soon. Sorr...
0.0.1-alpha
f0297099dac4ff3e7769ed5ace95718e53d2a5f7
["tests.test_all_classes::test_save_mocked[Graph]", "tests.test_all_classes::test_save_mocked[Digraph]", "tests.test_all_classes::test_save_mocked[Source]", "tests.test_sources::test_from_file"]
["docs.api.rst::api.rst", "docs.attributes.rst::attributes.rst", "docs.custom_dot.rst::custom_dot.rst", "docs.engines.rst::engines.rst", "docs.integration_with_viewers.rst::integration_with_viewers.rst", "docs.node_ports.rst::node_ports.rst", "docs.styling.rst::styling.rst", "graphviz.__init__::graphviz", "graphviz._to...
["README.rst::README.rst", "docs.basic_usage.rst::basic_usage.rst", "docs.escapes.rst::escapes.rst", "docs.existing_files.rst::existing_files.rst", "docs.formats.rst::formats.rst", "docs.neato_no_op.rst::neato_no_op.rst", "docs.piped_output.rst::piped_output.rst", "docs.quoting.rst::quoting.rst", "docs.raw_dot.rst::raw...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-benchmark-600
opensearch-project/opensearch-benchmark
e79599f63b186b9ba2de12948c766409742df36a
diff --git a/scripts/expand-data-corpus.py b/scripts/expand-data-corpus.py index d27134f..67d9fe0 100755 --- a/scripts/expand-data-corpus.py +++ b/scripts/expand-data-corpus.py @@ -19,12 +19,9 @@ import configparser help_msg = """ -NOTE: This is a beta feature. The user model, interface and options -are subject t...
python
diff --git a/tests/scripts_test.py b/tests/scripts_test.py new file mode 100644 index 0000000..44bcf8a --- /dev/null +++ b/tests/scripts_test.py @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license o...
2024-08-12T17:50:45+00:00Z
The expand-data-corpus script runs into exceptions in some scenarios ### Describe the bug ### Description When _expand_data_corpus_ is run without OSB having been set up (the script documentation indicates this is required, though), users see a confusing error message: ``` [ERROR] Cannot execute-test. Error in test ...
Change has been merged in.
0.0.1-alpha
fa1adf2378a2adcd7f7a4d107d266c96b4fc72b9
["tests.scripts_test.ScriptsTests::test_scr"]
["tests.builder.configs.listers.plugin_config_instance_lister_test.PluginConfigInstanceListerTest::test_list_plugin_config_instances", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathResolverTest::test_provision_config_path_defined", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathReso...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pretix__python-drafthorse-79
pretix/python-drafthorse
2af5f671ba0d513f3519c889b9909642e05aba0f
diff --git a/drafthorse/pdf.py b/drafthorse/pdf.py index 421b9cf..a5bc124 100644 --- a/drafthorse/pdf.py +++ b/drafthorse/pdf.py @@ -37,6 +37,7 @@ from pypdf.generic import ( NumberObject, create_string_object, ) +from xml.sax.saxutils import escape as xml_escape from drafthorse.xmp_schema import XMP_SCHE...
python
diff --git a/tests/test_roundtrip.py b/tests/test_roundtrip.py index 2b98e13..d745cca 100644 --- a/tests/test_roundtrip.py +++ b/tests/test_roundtrip.py @@ -2,9 +2,12 @@ import lxml.etree import os import pytest from difflib import unified_diff +from io import BytesIO +from pypdf import PdfReader from xml.dom impor...
2025-09-02T12:34:46+00:00Z
Unescaped data going to XMP metadata makes output documents unparseable When generating XMP metadata in [drafthorse/pdf.py:158](https://github.com/pretix/python-drafthorse/blob/2af5f671ba0d513f3519c889b9909642e05aba0f/drafthorse/pdf.py#L158), the data is embedded in the XML template string unescaped. Now, if any non-X...
0.0.1-alpha
e96e3bc77b26b81aa80d4018b0bc121403cd50ec
["tests.test_roundtrip::test_sample_roundtrip[zugferd_2p3_XRECHNUNG_Betriebskostenabrechnung.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p3_MINIMUM_Rechnung.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_2p3_MINIMUM_Buchungshilfe.xml]", "tests.test_roundtrip::test_sample_roundtrip[zugferd_...
["tests.test_minimal::test_readme_construction_example_pdf16[380]", "tests.test_minimal::test_readme_construction_example_pdf17[380]", "tests.test_minimal::test_readme_construction_example_pdf17_en16931[380]", "tests.test_minimal::test_readme_construction_example_pdf17_xrechnung2[380]", "tests.test_minimal::test_readme...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tusharsadhwani__zxpy-19
tusharsadhwani/zxpy
fb527cc69169dc884e48bf194c77972a54d1123f
diff --git a/zx.py b/zx.py index c3838fb..fe0362c 100644 --- a/zx.py +++ b/zx.py @@ -117,8 +117,15 @@ def run_zxpy(filename: str, module: ast.Module) -> None: """Runs zxpy on a given file""" patch_shell_commands(module) code = compile(module, filename, mode='exec') - # Passing `__name__` in locals() t...
python
2021-07-16T20:02:31+00:00Z
NameError: name 'run_shell' is not defined Sorry for being a pain in the neck. But, now using 1.4.2 it seems something else is broken Running `examples/script.py` I get ``` Traceback (most recent call last): File "/home/manfred/.local/bin/zxpy", line 8, in <module> sys.exit(cli()) File "/home/man...
Sorry, that's my bad - I didn't realize that the transformed code is using functions defined *in* zxpy. The easy solution here is to just put the used utility functions in the globals. This is prone to the user replacing it with some of their own functions with the same names but from what I can tell this was already t...
0.0.1-alpha
499e7b6d0bc916ba6f895d36aa492404e782378d
["tests.zxpy_test::test_files[./tests/test_files/yeses.py]", "tests.zxpy_test::test_files[./tests/test_files/returncode.py]", "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" }
python-lsp__python-lsp-ruff-19
python-lsp/python-lsp-ruff
500b626a775f6a38a76bb12e16796161413c35ba
diff --git a/README.md b/README.md index 00d9638..09f0df0 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ When enabled, all linting diagnostics will be provided by `ruff`. Configuration options can be passed to the python-language-server. If a `pyproject.toml` file is present in the project, `python-lsp-ru...
python
diff --git a/tests/test_ruff_lint.py b/tests/test_ruff_lint.py index f61cbbd..166a139 100644 --- a/tests/test_ruff_lint.py +++ b/tests/test_ruff_lint.py @@ -78,7 +78,15 @@ def test_ruff_config_param(workspace): mock_instance.communicate.return_value = [bytes(), bytes()] ruff_conf = "/tmp/pyproject.tom...
2023-03-01T15:59:54+00:00Z
Can't set ignored error codes I'm sending the following configuration to pylsp via the didChangeConfiguration notification but I don't get the desired effect of disabling error code D101: ```json { "pylsp": { "plugins": { "pycodestyle": { "enabled": false }, "pyflakes": { ...
Please enable debug messages for pylsp and post the log messages here, i.e. by starting pylsp with `pylsp -vvv --log-file /tmp/lsp.log` Thx for the log @astoff. This is the relevant line: ``` 2023-02-28 11:58:43,096 CET - DEBUG - pylsp_ruff.ruff_lint - Got ruff settings: {'extendSelect': None, 'enabled': True, 'ignor...
0.0.1-alpha
91a98812513166cbb270fad79242f6e59a2a38e9
["tests.test_ruff_lint::test_ruff_config_param"]
["tests.test_ruff_lint::test_ruff_executable_param"]
["tests.test_ruff_lint::test_ruff_unsaved", "tests.test_ruff_lint::test_ruff_lint", "tests.test_ruff_lint::test_ruff_config"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1066
octodns/octodns
e736280d53fd60704666b43f742a58c9e0f590f2
diff --git a/CHANGELOG.md b/CHANGELOG.md index 808a153..2f82be4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.1.2 - 2023-09-20 - Bunch more bug fixes + +* Fix crash bug when using the YamlProvider with a directory that contains a + mix of split and non-split zone yamls. See https://github.com/oct...
python
diff --git a/tests/config/hybrid/one.test.yaml b/tests/config/hybrid/one.test.yaml new file mode 100644 index 0000000..d2ac6ba --- /dev/null +++ b/tests/config/hybrid/one.test.yaml @@ -0,0 +1,4 @@ +--- +flat-zone-file: + type: TXT + value: non-split flat zone file diff --git a/tests/config/hybrid/two.test./$two.test....
2023-09-19T18:05:49+00:00Z
New YamlProvider crashes in hybrid mode My directory of yamls has a mix of split and non-split zones. When using the new YamlProvider from `octodns==1.1.1` with `split_extensions: .` enabled, it still tries to read the non-split zone file even for zones that are split, and then crashes because that non-split file does...
0.0.1-alpha
5559a9986901dabe7874927bdb3b03cc5343474b
["tests.test_octodns_provider_yaml.TestSplitYamlProvider::test_empty", "tests.test_octodns_provider_yaml.TestSplitYamlProvider::test_hybrid_directory"]
["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" }
simonw__s3-credentials-37
simonw/s3-credentials
5c6810b3512e25531c7d927f88a96e624bc06897
diff --git a/README.md b/README.md index 712254c..49f71a2 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,21 @@ You can also pass `-` to read from standard input, or you can pass the literal J ## Other commands +### policy + +You can use the `s3-credentials policy` command to generate the JSON policy documen...
python
diff --git a/tests/test_s3_credentials.py b/tests/test_s3_credentials.py index de73a75..4c1ac43 100644 --- a/tests/test_s3_credentials.py +++ b/tests/test_s3_credentials.py @@ -671,3 +671,21 @@ def test_auth_option_errors(extra_option): result.output == "Error: --auth cannot be used with --access-key,...
2021-11-30T02:06:04+00:00Z
`s3-credentials policy` command With similar options as `create` except this only ever outputs policy JSON to standard out. I can use this for #36.
Documentation: https://github.com/simonw/s3-credentials/blob/main/README.md#policy
0.0.1-alpha
905258379817e8b458528e4ccc5e6cc2c8cf4352
["tests.test_s3_credentials::test_policy[options0-{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": [\"s3:ListBucket\", \"s3:GetBucketLocation\"], \"Resource\": [\"arn:aws:s3:::pytest-bucket-simonw-1\"]}, {\"Effect\": \"Allow\", \"Action\": [\"s3:GetObject\", \"s3:GetObjectAcl\", \"s3:Ge...
["tests.test_dry_run::test_dry_run[options0-Would create bucket: 'my-bucket'\\nWould create user: 's3.read-write.my-bucket' with permissions boundary: 'arn:aws:iam::aws:policy/AmazonS3FullAccess'\\nWould attach policy called 's3.read-write.my-bucket' to user 's3.read-write.my-bucket', details:*\\nWould call create acce...
["tests.test_s3_credentials::test_whoami", "tests.test_s3_credentials::test_list_users[-{\\n \"Path\": \"/\",\\n \"UserName\": \"NameA\",\\n \"UserId\": \"AID000000000000000001\",\\n \"Arn\": \"arn:aws:iam::000000000000:user/NameB\",\\n \"CreateDate\": \"2020-01-01 00:00:00+00:00\"\\n}\\n{\\n \"Path\"...
{ "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-204
redimp/otterwiki
ffefcadadb199e979d5d4f06355dbc3526821eb6
diff --git a/otterwiki/auth.py b/otterwiki/auth.py index 3b2a3b3..fd220e5 100644 --- a/otterwiki/auth.py +++ b/otterwiki/auth.py @@ -37,8 +37,14 @@ from uuid import uuid4 def check_password_hash_backport(pwhash, password): + if pwhash is None or len(pwhash.strip()) < 0: + app.logger.warning(f"") + ...
python
diff --git a/tests/test_auth.py b/tests/test_auth.py index 5eb3a70..a5cfaa3 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -756,3 +756,63 @@ def test_register_errors(app_with_user, test_client, req_ctx): assert "password must be at least" in rv.data.decode() assert "account has been created" not ...
2025-02-12T22:04:54+00:00Z
AttributeError for user with empty password Reproduce: 1. Create new user, leave password fields empty (which is a valid and good use case for several reasons, btw) 2. Logout and try to login as the new user Expected result: Get the toast notification that the login is incorrect. Actual result: Internal Server Error...
Hey @rhartmann, thanks for the detailed bug report(s)! Will fix this and make a new release this week. Released fix in [v2.9.3](https://github.com/redimp/otterwiki/releases/tag/v2.9.3).
0.0.1-alpha
bd594faa12c1ff2663697b58a4e8fe051dc4af2e
["tests.test_auth::test_user_with_empty_password_issues_204_205"]
["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" }
sepandhaghighi__mycoffee-74
sepandhaghighi/mycoffee
64263345882f27ebf54f9be72998dc844b580b9e
diff --git a/README.md b/README.md index d835d82..d54dfd1 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ Message: Chemex method <tr> <td align="center"><code>--temperature</code></td> <td align="center">Brewing temperature (C)</td> - <td align="center">Integer</td> + <td align="...
python
diff --git a/test/functions_test.py b/test/functions_test.py index d6c647c..93d2546 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -48,6 +48,8 @@ Message: V60 method True >>> check_grind_limits(test_params) True +>>> check_temperature_limits(test_params) +True >>> print_result(test_params) __...
2025-02-12T21:30:52+00:00Z
[Feature]: Temperature ### Describe the feature you want to add Add temperature ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://honestcoffeeguide.com/best-temperature-to-brew-coffee/ 2. htt...
0.0.1-alpha
c6ae76fff36549a10653ea92f919004bc7727f68
["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" }
sciunto-org__python-bibtexparser-9
sciunto-org/python-bibtexparser
f84e3189b2bc8a365faad1d12f3ba7ff0c57dca4
diff --git a/bibtexparser/customization.py b/bibtexparser/customization.py index 3e7447d..b72f7ca 100644 --- a/bibtexparser/customization.py +++ b/bibtexparser/customization.py @@ -345,7 +345,8 @@ def author(record): """ if "author" in record: if record["author"]: - record["author"] = getn...
python
diff --git a/bibtexparser/tests/data/book_capital_AND.bib b/bibtexparser/tests/data/book_capital_AND.bib new file mode 100644 index 0000000..afd444d --- /dev/null +++ b/bibtexparser/tests/data/book_capital_AND.bib @@ -0,0 +1,8 @@ +@BOOK{Bird1987, + title = {Dynamics of Polymeric Liquid}, + publisher = {Wiley Edition}...
2022-06-03T12:35:21+00:00Z
getnames incorrectly parsing names with braces Sometimes names have braces, and these aren't understood by getnames. For example, `getnames(['A. {Delgado de Molina}'])` returns `['de Molina}, A. {Delgado']` instead, it should return `['Delgado de Molina, A.']`
OK. I have got things working by using non-breaking spaces to group the names together, rather than braces, e.g., `Delgado~de~Molina` Note: Before I found this, I wrote a fairly complete author list parser, that I would like to contribute here. But now taking a look at customization.getnames, and a few comments: I ...
0.0.1-alpha
a8527ff9cff475dea16cfcb3cf56620e6a3dbdd4
["bibtexparser.tests.test_bparser.TestBibtexParserList::test_book_cust_unicode"]
["bibtexparser.tests.test_bibdatabase.TestBibDatabase::test_entries_dict_prop", "bibtexparser.tests.test_bibdatabase.TestBibDatabase::test_entries_list_method", "bibtexparser.tests.test_bibdatabase.TestBibDataString::test_expand_string", "bibtexparser.tests.test_bibdatabase.TestBibDataString::test_get_value", "bibtexpa...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
vispy__jupyter_rfb-21
vispy/jupyter_rfb
ed877dca3970b8c3c4985d3c1b4330c50d8ff26b
diff --git a/docs/guide.rst b/docs/guide.rst index 48c5c8a..ac58274 100644 --- a/docs/guide.rst +++ b/docs/guide.rst @@ -83,14 +83,14 @@ throttling applies to the resize, scroll, and pointer_move events. Measuring statistics -------------------- -The ``RemoteFrameBuffer`` class has a property ``stats`` that returns...
python
diff --git a/tests/test_framesender.py b/tests/test_framesender.py index 94f5a25..e81ff55 100644 --- a/tests/test_framesender.py +++ b/tests/test_framesender.py @@ -45,8 +45,8 @@ def test_framesender_1(): fs.trigger(True) assert len(fs.msgs) == 1 - assert fs.stats["sent_frames"] == 1 - assert fs.stats...
2021-07-27T09:49:13+00:00Z
Replace stats prop with get_stats method Now we have traits and props, which feels somewhat inconsistent. Let's just turn it into a method.
0.0.1-alpha
475155629c6441b80845b06315912aa6894b3155
["tests.test_framesender::test_framesender_1", "tests.test_framesender::test_framesender_3"]
["tests.test_png::test_writing", "tests.test_png::test_writing_failures"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-build-325
opensearch-project/opensearch-build
eddbdf998df2675dfc018d41e847ced17853be76
diff --git a/bundle-workflow/src/sign.py b/bundle-workflow/src/sign.py index 287851d..41deb9e 100755 --- a/bundle-workflow/src/sign.py +++ b/bundle-workflow/src/sign.py @@ -7,6 +7,7 @@ # compatible open source license. import argparse +import os from manifests.build_manifest import BuildManifest from signing_wo...
python
diff --git a/bundle-workflow/tests/tests_signing_workflow/test_sign.py b/bundle-workflow/tests/tests_signing_workflow/test_sign.py deleted file mode 100644 index 45362cc..0000000 --- a/bundle-workflow/tests/tests_signing_workflow/test_sign.py +++ /dev/null @@ -1,32 +0,0 @@ -import unittest -from unittest.mock import Ma...
2021-08-26T00:08:00+00:00Z
Signer client does not support files with '.' in filenames Many of our artifacts contain '.' in the artifact names. `client-benchmarks-1.0.0-javadoc.jar` These files need to be signed properly.
0.0.1-alpha
a05acc3a68fad518cecbaf9a08494b6f4b8daada
["bundle-workflow.tests.tests_signing_workflow.test_signer.TestSigner::test_accepted_file_types"]
["bundle-workflow.tests.tests_git.test_git_repository.TestGitRepository::test_checkout", "bundle-workflow.tests.tests_git.test_git_repository.TestGitRepository::test_execute", "bundle-workflow.tests.tests_git.test_git_repository.TestGitRepository::test_execute_in_dir", "bundle-workflow.tests.tests_git.test_git_reposito...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
matthewwithanm__python-markdownify-42
matthewwithanm/python-markdownify
fc29483899344af2b776cc812e8768c079f6fef3
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 6230fb8..284eba3 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -279,14 +279,20 @@ class MarkdownConverter(object): def convert_table(self, el, text, convert_as_inline): rows = el.find_all('tr') text_data ...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 6663204..e6f70c0 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -41,8 +41,7 @@ nested_ols = """ </ul>""" -table = re.sub(r'\s+', '', """ -<table> +table = """<table> <tr> <th>Firstname</th> ...
2021-05-16T17:02:04+00:00Z
Tables that only use `<tr>` and `<td>` tags do not work <https://github.com/matthewwithanm/python-markdownify/pull/36> added basic table support, but only for tables that use `<th>` tags for the first line instead of `<td>` tags. Tables must look like that: ```html <table> <tr> <th>this</th> ...
Hi! Markdown tables are only valid with a header. What do you propose, should we prepend an empty header line like ``` | | | | --- | --- | --- | | this | is | tableheader | | this | is | normal table data | | this is | normal table data | too | ``` which renders as: | | | | | --- | --- | --- | | this ...
0.0.1-alpha
7dac92e85e9288595167320b4f32325e8f56ff97
["tests.test_conversions::test_table"]
["tests.test_advanced::test_nested", "tests.test_advanced::test_ignore_comments", "tests.test_advanced::test_ignore_comments_with_other_tags", "tests.test_args::test_strip", "tests.test_args::test_do_not_strip", "tests.test_args::test_convert", "tests.test_args::test_do_not_convert", "tests.test_basic::test_single_tag"...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rayokota__jsonata-python-10
rayokota/jsonata-python
93345fd8d69f6bd4679cf1f24cad08d4ee7b0c81
diff --git a/src/jsonata/functions.py b/src/jsonata/functions.py index 951e1a1..e392f12 100644 --- a/src/jsonata/functions.py +++ b/src/jsonata/functions.py @@ -2010,15 +2010,9 @@ class Functions: arg1 = utils.Utils.create_sequence(arg1) if not (isinstance(arg2, list)): arg2 = utils.U...
python
diff --git a/tests/array_test.py b/tests/array_test.py new file mode 100644 index 0000000..d999c0a --- /dev/null +++ b/tests/array_test.py @@ -0,0 +1,7 @@ +import jsonata + + +class TestArray: + + def test_array(self): + assert jsonata.Jsonata("$.[{ }] ~> $reduce($append)").evaluate([True, True]) == [{}, {}]...
2024-11-13T05:28:29+00:00Z
Expression returns different results with pipe, reduce, and append. For expression, `$.[{ }] ~> $reduce($append)` with input: `[true,true]`, the `js` implementation returns `[{},{}]` and `jsonata-python` returns: `[{},[{}]]` Will spend some time debugging this if I get some time in the next few days!
0.0.1-alpha
fe376d12e8598ebb13e9020ba533eab9c3cb3d82
["tests.array_test.TestArray::test_array"]
["tests.custom_function_test.TestCustomFunction::test_supplier", "tests.custom_function_test.TestCustomFunction::test_unary", "tests.custom_function_test.TestCustomFunction::test_binary", "tests.custom_function_test.TestCustomFunction::test_ternary", "tests.custom_function_test.TestCustomFunction::test_map_with_lambda"...
["tests.jsonata_test.TestJsonata::test_path", "tests.thread_test.TestThread::test_reuse_with_variable", "tests.thread_test.TestThread::test_add_env_and_input"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
matin__garth-39
matin/garth
5aadba6f2e01ae5eb76f2064d4d7e94f2483dbf9
diff --git a/garth/http.py b/garth/http.py index fc3f9d9..3bf9826 100644 --- a/garth/http.py +++ b/garth/http.py @@ -30,6 +30,8 @@ class Client: retries: int = 3 status_forcelist: Tuple[int, ...] = (408, 429, 500, 502, 503, 504) backoff_factor: float = 0.5 + pool_connections: int = 10 + pool_maxsiz...
python
diff --git a/tests/test_http.py b/tests/test_http.py index 5f91fda..a8c3084 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -90,6 +90,18 @@ def test_backoff_factor(client: Client): ) +def test_pool_connections(client: Client): + client.configure( + pool_connections=99, + pool_maxsi...
2023-12-20T15:58:25+00:00Z
Add options to limit connection pool usage Hi @matin there are a few users of my Garmin Connect home-assistant integration who have reported 'Connection pool is full errors' in their logs, I haven't run into them myself yet, but looking at other issues reported with same error in the Home Assistant repository a possib...
@cyberjunky seems reasonable. Can you take a look at #40 to see if it solves the problem? @cyberjunky good to go. Released in [0.4.42](https://github.com/matin/garth/releases/tag/0.4.42) @matin great, will test tomorrow, thanks again! Next task is adding MFA support to the Home Assistant integration, needs some invest...
0.0.1-alpha
6aeb0faaf0d6b473d8dc161373068d2f5413fdfe
["tests.test_http::test_pool_connections"]
["tests.test_auth_tokens::test_is_expired", "tests.test_auth_tokens::test_refresh_is_expired", "tests.test_auth_tokens::test_str", "tests.test_http::test_dump_and_load", "tests.test_http::test_dumps_and_loads", "tests.test_http::test_configure_oauth2_token", "tests.test_http::test_configure_domain", "tests.test_http::t...
["tests.data.test_hrv_data::test_hrv_data_get", "tests.data.test_hrv_data::test_hrv_data_list", "tests.data.test_sleep_data::test_sleep_data_get", "tests.data.test_sleep_data::test_sleep_data_list", "tests.stats.test_hrv::test_daily_hrv", "tests.stats.test_hrv::test_daily_hrv_paginate", "tests.stats.test_hrv::test_dail...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rsheftel__pandas_market_calendars-168
rsheftel/pandas_market_calendars
9c40c0164e4250577da78dea5ef56dea301ef620
diff --git a/pandas_market_calendars/exchange_calendar_nyse.py b/pandas_market_calendars/exchange_calendar_nyse.py index beb9612..0920245 100644 --- a/pandas_market_calendars/exchange_calendar_nyse.py +++ b/pandas_market_calendars/exchange_calendar_nyse.py @@ -965,36 +965,44 @@ class NYSEExchangeCalendar(MarketCalendar...
python
2022-02-02T01:05:25+00:00Z
FutureWarning: DatetimeIndex.union_many is deprecated with pandas 1.4.0 @rsheftel, thank you very much for making this package available! Highly useful. When running it with pandas 1.4.0, I receive deprecated warnings: ``` import pandas_market_calendars as mcal nyse = mcal.get_calendar("NYSE") early = nyse.sc...
Amendment: Equivalent issue in `special_closes_adhoc` in [exchange_calendar_nyse.py](https://github.com/rsheftel/pandas_market_calendars/blob/master/pandas_market_calendars/exchange_calendar_nyse.py#L967). This could be resolved by adding a little function and rewriting as follows: ``` @property def speci...
0.0.1-alpha
d31edf9821098102e7fe7103cdbe66d25a505112
["tests.test_XNYS_calendar::test_2012", "tests.test_XNYS_calendar::test_day_after_thanksgiving", "tests.test_XNYS_calendar::test_early_close_independence_day_thursday", "tests.test_XNYS_calendar::test_special_early_close_is_not_trading_day", "tests.test_bse_calendar::test_open_close_time", "tests.test_cboe_calendars::t...
["tests.test_XNYS_calendar::test_weekmask", "tests.test_XNYS_calendar::test_open_time_tz", "tests.test_XNYS_calendar::test_close_time_tz", "tests.test_XNYS_calendar::test_special_holidays", "tests.test_XNYS_calendar::test_new_years", "tests.test_XNYS_calendar::test_thanksgiving", "tests.test_bse_calendar::test_time_zon...
["tests.test_XNYS_calendar::test_time_zone", "tests.test_cboe_calendars::test_2016_holidays", "tests.test_market_calendar::test_schedule", "tests.test_market_calendar::test_schedule_w_breaks", "tests.test_market_calendar::test_basic_information", "tests.test_market_calendar::test_ec_schedule", "tests.test_nyse_calendar...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-80
sepandhaghighi/mycoffee
7e5cc489a98fc6efe50ae19fc4061b74b67ae377
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 1b819e2..29d292f 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 9fb59aa..d54f5f6 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -354,7 +354,7 @@ True >>> _ = parser.add_argument('--version', help='version', nargs="?", const=1) >>> args = parser.parse_args({"--version":True}) >>> run(args) -1....
2025-02-15T13:53:19+00:00Z
[Feature]: `--info` ### Describe the feature you want to add 1. Change the `--info` argument to either `--message` or `--method-info`. 2. Introduce a `--info` option for printing information. ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response...
0.0.1-alpha
a10122377e95bb8cab61ef87af05419d40bfe228
["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" }
pysal__spopt-286
pysal/spopt
7fe9781567ed8b3e5e1cc33833440e9990b572cb
diff --git a/notebooks/p-median.ipynb b/notebooks/p-median.ipynb index f81f3ac..8ddbc06 100644 --- a/notebooks/p-median.ipynb +++ b/notebooks/p-median.ipynb @@ -53,8 +53,8 @@ "execution_count": 1, "metadata": { "ExecuteTime": { - "end_time": "2022-10-31T15:33:57.840876Z", - "start_time": "2022-10-3...
python
diff --git a/spopt/tests/test_locate.py b/spopt/tests/test_locate.py index 2980def..78447ed 100644 --- a/spopt/tests/test_locate.py +++ b/spopt/tests/test_locate.py @@ -70,6 +70,16 @@ class TestSyntheticLocate: result = lscp.solve(pulp.PULP_CBC_CMD(msg=False)) assert isinstance(result, LSCP) + de...
2022-10-31T16:15:43+00:00Z
calculate `get_mean_distance()` within ``PMedian.solve(results=True)`` We should move the calculation of [`get_mean_distance()`](https://github.com/pysal/spopt/blob/336f235843ec86bf9ad1535f6624c15ae9ff298f/spopt/locate/base.py#L131) within [`PMedian.solve(results=True)`](https://github.com/pysal/spopt/blob/336f235843e...
0.0.1-alpha
81a57c55d9e84149ba925787c49da7867c7b049a
["spopt.tests.test_locate.TestRealWorldLocate::test_mixin_mean_distance"]
["spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix_no_results", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_facility_client_array_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_clien...
["spopt.tests.test_azp.TestAZP::test_azp_basic_from_w", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_heuristic_complex", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_one_var", "spopt.tests.test_maxp.TestMaxPHeuristic::test_plot_components"]
{ "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__mycoffee-59
sepandhaghighi/mycoffee
b9813243b3addf71befd43ff0834196f75b52cec
diff --git a/CHANGELOG.md b/CHANGELOG.md index a73d0f8..32ce85c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 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 010ec09..cc69364 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -149,8 +149,9 @@ Coffee units list: 6. `lb` - pound 7. `mg` - milligram 8. `oz` - ounce -9. `tbsp` - tablespoon -10. `tsp` - teaspoon +9. `t oz` - troy ounce +10. `t...
2024-12-24T04:07:09+00:00Z
[Feature]: Troy Ounces ### Describe the feature you want to add Support **Troy Ounces** unit (for `coffee` and `water`) ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://www.metr...
@sadrasabouri Please take care of this when you have some free time. 💯
0.0.1-alpha
a9fd5ffcaa34aca9eee276a300c57b879419a691
["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" }
theandrew168__bronzebeard-9
theandrew168/bronzebeard
8b6be0aa1eb6971d23d97d7ffa4e09ff81c2904a
diff --git a/bronzebeard/asm.py b/bronzebeard/asm.py index d229620..0739bf8 100644 --- a/bronzebeard/asm.py +++ b/bronzebeard/asm.py @@ -60,6 +60,12 @@ class AssemblerError(Exception): def lookup_register(reg, compressed=False): + # reg might be a hex / octal value + try: + reg = int(reg, base=0) + ...
python
diff --git a/tests/test_asm.py b/tests/test_asm.py index d8b426f..dd67ddc 100644 --- a/tests/test_asm.py +++ b/tests/test_asm.py @@ -1577,3 +1577,14 @@ def test_assembler_atomics(): asm.AMOMAXU_W('t0', 't1', 't2'), ]) assert binary == target + + +def test_assembler_hex_register(): + source = r""" ...
2021-06-12T02:10:30+00:00Z
hexadecimal numbers as third operand version 0.15 doesnt like numbers given in 0x?? as third operand it seems: AssemblerError: register must be a valid integer, name, or alias: 0xa slli a4,a4,0xa
Good catch! There was a bug where non-decimal integers weren't being considered as a valid register.
0.0.1-alpha
2cfb2e1368f565ea7c780f3e95b5965aec6a220e
["tests.test_asm::test_assembler_hex_register"]
["tests.test_asm::test_sign_extend[0-8-0]", "tests.test_asm::test_sign_extend[127-8-127]", "tests.test_asm::test_sign_extend[255-8--1]", "tests.test_asm::test_sign_extend[128-8--128]", "tests.test_asm::test_sign_extend[6-8-6]", "tests.test_asm::test_sign_extend[6-4-6]", "tests.test_asm::test_sign_extend[6-3--2]", "test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
spectacles-ci__spectacles-575
spectacles-ci/spectacles
ceee9fa27dc677d973a2d775d588a934e80562c1
diff --git a/spectacles/cli.py b/spectacles/cli.py index fdb6d00..7a69be2 100644 --- a/spectacles/cli.py +++ b/spectacles/cli.py @@ -424,7 +424,7 @@ def _build_base_subparser() -> argparse.ArgumentParser: action=EnvVarAction, env_var="LOOKER_API_VERSION", default=DEFAULT_API_VERSION, - ...
python
diff --git a/tests/constants.py b/tests/constants.py index 0b8523f..b0511e4 100644 --- a/tests/constants.py +++ b/tests/constants.py @@ -5,5 +5,5 @@ ENV_VARS = { "LOOKER_PROJECT": "PROJECT_ENV_VAR", "LOOKER_GIT_BRANCH": "BRANCH_ENV_VAR", "LOOKER_PORT": "8080", - "LOOKER_API_VERSION": "3.1", + "LOOK...
2022-07-20T16:36:25+00:00Z
Upgrade default Looker API version to 4.0 Looker API 4.0 is now in General Availability, which means that deprecation of v3.1 will eventually become an issue. We should upgrade Spectacles to use Looker API v4.0, following [the migration guides linked here](https://developers.looker.com/api/advanced-usage/version-4-ga)...
Looker 3.1 is now considered deprecated and will be unsupported starting in Looker 23.4 (we're on 22.12 at time of writing). We should accelerate efforts to migrate to 4.0. It's worth noting here that some of the API endpoints we use (e.g. get query multi results) moved from stable to beta status... which doesn't make ...
0.0.1-alpha
65a0acd50aa221d4a33af647cdc3910cdcd76fd2
["tests.unit.test_content_validator::test_get_tile_type_with_bad_keys_should_raise_key_error", "tests.unit.test_content_validator::test_get_content_type_with_bad_keys_should_raise_key_error", "tests.unit.test_client::test_bad_requests_should_raise_looker_api_errors[create_query_task]", "tests.unit.test_client::test_bad...
["tests.unit.test_runner::test_validate_content_returns_valid_schema", "tests.unit.test_runner::test_incremental_with_fewer_tested_explores_than_target", "tests.unit.test_runner::test_incremental_same_results_should_not_have_errors", "tests.unit.test_runner::test_incremental_with_more_errors_than_target", "tests.unit.t...
["tests.integration.test_data_test_validator::test_correct_number_of_errors_returned[errors]", "tests.integration.test_data_test_validator::test_correct_number_of_tests_generated[errors]", "tests.integration.test_data_test_validator::test_no_data_tests_should_raise_error", "tests.integration.test_data_test_validator::t...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sciunto-org__python-bibtexparser-327
sciunto-org/python-bibtexparser
b47405b61f6ee776ccc9ee45ce0754e423e323fd
diff --git a/bibtexparser/customization.py b/bibtexparser/customization.py index 99c48fb..169f1ba 100644 --- a/bibtexparser/customization.py +++ b/bibtexparser/customization.py @@ -299,6 +299,61 @@ def splitname(name, strict_mode=True): return parts +def find_matching( + text: str, + opening: str, + c...
python
diff --git a/bibtexparser/tests/test_customization.py b/bibtexparser/tests/test_customization.py index 77450e7..f43e77d 100644 --- a/bibtexparser/tests/test_customization.py +++ b/bibtexparser/tests/test_customization.py @@ -22,6 +22,15 @@ class TestBibtexParserMethod(unittest.TestCase): 'Jean la Tour...
2022-10-12T09:08:47+00:00Z
getnames edge-case ```python >>> bibtexparser.customization.getnames(["{G{\'{e}}rard} {Ben Arous}"]) ["Arous}, {G{\'{e}}rard} {Ben"] ``` whereas intended: ```python >>> bibtexparser.customization.getnames(["{G{\'{e}}rard} {Ben Arous}"]) ["{Ben Arous}, {G{\'{e}}rard}"] ``` Just to note: the current output re...
Thanks. While most effort is on the dev of v2, I guess this one would be worth fixing for v1. @tdegeus would have the capacity to open a PR with a fix?
0.0.1-alpha
a5eeffd92d431c7d9077fc2fc16894eca7c15861
["bibtexparser.tests.test_customization.TestBibtexParserMethod::test_getnames"]
["bibtexparser.tests.test_bibdatabase.TestBibDatabase::test_entries_dict_prop", "bibtexparser.tests.test_bibdatabase.TestBibDatabase::test_entries_list_method", "bibtexparser.tests.test_bibdatabase.TestBibDataString::test_expand_string", "bibtexparser.tests.test_bibdatabase.TestBibDataString::test_get_value", "bibtexpa...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mathandy__svgpathtools-111
mathandy/svgpathtools
5c73056420386753890712170da602493aad1860
diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 5903efe..b65d11b 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -338,9 +338,13 @@ def transform(curve, tf): if new_radius.real == 0 or new_radius.imag == 0 : return Line(new_start, new_end) - else : + ...
python
diff --git a/test/negative-scale.svg b/test/negative-scale.svg new file mode 100644 index 0000000..108f2ee --- /dev/null +++ b/test/negative-scale.svg @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="100mm" height="1...
2023-05-20T16:50:17+00:00Z
bug in transform handling I'm playing around with the new Document and group/transform feature that @mxgrey added, and I love it -- it's a huge usability improvement. But I think I've found a bug. Here's my input SVG: [bones.svg.txt](https://github.com/mathandy/svgpathtools/files/4632167/bones.svg.txt) ![bone...
Yuuuuup, hit this one myself yesterday, and arrived at the same conclusion as you. Just wanted to chime in and give you that vote of confidence. (If only I had seen your ticket earlier! Hahah.) Yeah, I can also confirm mathwise that for each of the scale_x or scale_y parameters you have negative, you must negate the...
0.0.1-alpha
229773ff9da086996f0aeb2a8258aed35bd372f0
["test.test_groups.TestGroups::test_group_transform"]
["test.test_path.Test_ilength::test_ilength_arcs", "test.test_path.Test_ilength::test_ilength_cubics", "test.test_path.Test_ilength::test_ilength_exceptions", "test.test_path.Test_ilength::test_ilength_lines", "test.test_path.Test_ilength::test_ilength_paths", "test.test_path.Test_ilength::test_ilength_quadratics", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meadsteve__lagom-9
meadsteve/lagom
dab2274f52006d4cc83f6317ba4e6be9cc2509a7
diff --git a/CHANGELOG.md b/CHANGELOG.md index baea79a..f4705cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.4.2 (PENDING) + +### Enhancements +* Singleton bool for `dependency_definition` decorator + +### Bug fixes +None + +### Backwards incompatible changes +None + ## 0.4.1 (202...
python
diff --git a/test/test_dep_definition_functions.py b/test/test_dep_definition_functions.py index 36c6cdd..319421d 100644 --- a/test/test_dep_definition_functions.py +++ b/test/test_dep_definition_functions.py @@ -19,6 +19,26 @@ def test_functions_that_are_typed_can_be_used_by_a_container(container: Containe assert...
2020-02-04T08:08:42+00:00Z
Function definition for singletons
0.0.1-alpha
35f1e68a97496b0358d705d0c21bd9f081070806
["test.test_dep_definition_functions::test_functions_can_be_made_into_singletons"]
["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" }
mondeja__mkdocs-include-markdown-plugin-203
mondeja/mkdocs-include-markdown-plugin
7daca941478b187565b0c2724acd15f70c4112b3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e524b30..ca494c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: run: | import codecs, os, sys env = f"py=py3{sys.version_info[1]}\n" - print(f"Picked {env.split('=...
python
diff --git a/tests/test_unit/test_process.py b/tests/test_unit/test_process.py index a85113c..62d8655 100644 --- a/tests/test_unit/test_process.py +++ b/tests/test_unit/test_process.py @@ -14,14 +14,10 @@ from mkdocs_include_markdown_plugin.process import ( ('markdown', 'source_path', 'destination_path', 'expected...
2024-10-22T02:30:27+00:00Z
Indented code blocks must be surrounded by blank lines Just to conform with [the Common Mark specfication](https://spec.commonmark.org/0.28/#indented-code-blocks). Currently we are treating indented code blocks to all the content that is indented with 4 spaces or a tab, but following the spec they should be also surro...
0.0.1-alpha
76f01cc8efaed5d8dc6f304ecb42be92cd9ca96f
["tests.test_unit.test_process::test_rewrite_relative_urls[exclude-indented-code-blocks-eof]", "tests.test_unit.test_process::test_rewrite_relative_urls[no-exclude-indented-code-blocks-missing-newline-after]"]
["tests.test_integration.test_cache_integration::test_page_included_by_url_is_cached[directive=include-https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/examples/basic/mkdocs.yml-site_name: Foo\\nplugins:\\n - include-markdown\\n]", "tests.test_integration.test_cache_integration::test_pag...
[]
{ "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-1001
more-itertools/more-itertools
c834d6e4a0c4280b7b7750cb0de8dd8acb3d4c2c
diff --git a/more_itertools/more.py b/more_itertools/more.py index 3cd42e8..44ec483 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -283,7 +283,7 @@ def last(iterable, default=_marker): if isinstance(iterable, Sequence): return iterable[-1] # Work around https://bugs.p...
python
diff --git a/tests/test_more.py b/tests/test_more.py index b964312..03f6d65 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -180,6 +180,16 @@ class LastTests(TestCase): with self.assertRaises(ValueError): mi.last(iterable) + def test_reversed_is_none(self): + ...
2025-07-14T13:50:03+00:00Z
last() fails if __reversed__ is None, which is the case for the Mapping abc Using `last()` on this class: ``` from collections.abc import Mapping from more_itertools import last class MyMapping(Mapping): def __getitem__(self, key): return 1 def __iter__(self): return iter([1]) def __len__(s...
I accept a PR that implements this change and a test - thanks for the report!
0.0.1-alpha
7de169f7ad39eb1f95f8358225476e6f1a59d3d7
["tests.test_more.LastTests::test_reversed_is_none"]
["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" }
openscilab__pymilo-73
openscilab/pymilo
86ce5019c363695292b3e25d2c065fb80c4900b6
diff --git a/pymilo/transporters/lossfunction_transporter.py b/pymilo/transporters/lossfunction_transporter.py index e31a676..fab083e 100644 --- a/pymilo/transporters/lossfunction_transporter.py +++ b/pymilo/transporters/lossfunction_transporter.py @@ -25,10 +25,10 @@ class LossFunctionTransporter(AbstractTransporter):...
python
2024-01-20T20:01:12+00:00Z
SGD Classifier: sklearn.linear_model._sgd_fast.Hinge #### Description fix loss function serialization issue in SGDClassifier in scikit1.4.0
0.0.1-alpha
116416d829aad7b14cc84d1e32a552e25b14373a
["tests.test_linear_models.test_linear_models::test_full"]
["tests.test_clusterings.test_clusterings::test_full", "tests.test_decision_trees.test_decision_trees::test_full", "tests.test_exceptions.test_exceptions::test_full", "tests.test_neural_networks.test_neural_networks::test_full"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
potassco__clorm-57
potassco/clorm
0e48f17ef2e404c1bb9701be3971d993c1420029
diff --git a/clorm/orm/factbase.py b/clorm/orm/factbase.py index 6464bbd..479b241 100644 --- a/clorm/orm/factbase.py +++ b/clorm/orm/factbase.py @@ -190,31 +190,31 @@ class FactBase(object): #-------------------------------------------------------------------------- def _add(self, arg): - if isinstan...
python
diff --git a/tests/test_orm_factbase.py b/tests/test_orm_factbase.py index d26b37c..714a5a7 100644 --- a/tests/test_orm_factbase.py +++ b/tests/test_orm_factbase.py @@ -77,7 +77,7 @@ class FactBaseTestCase(unittest.TestCase): pass #------------------------------------------------------------------------...
2021-10-20T00:53:40+00:00Z
Error when removing/discarding a fact from the factbase When removing or discarding a fact from the factbase, the following error is thrown in site-packages/clorm/orm/factbase.py:214 ``` def _remove(self, fact, raise_on_missing): ptype = type(fact) > if not isinstance(arg, Predicate) or ptype not in...
Yes, a silly error that was introduced during some refactoring and I didn't have enough unit tests to pick it up. This is fixed and will be part of the next release (later today). @florianfischer91 Just to let you know that v1.3.3 has been released and pushed to anaconda/pip/etc. Thanks for your help.
0.0.1-alpha
0424a1c9c89f2c43c377b98e40139fa81a88b0d9
["tests.test_orm_factbase.FactBaseTestCase::test_container_ops", "tests.test_orm_factbase.FactBaseTestCase::test_set_ops"]
["tests.test_orm_core.PredicateInternalUnifyTestCase::test_clone", "tests.test_orm_core.PredicateInternalUnifyTestCase::test_comparison_operator_overloads_complex", "tests.test_orm_core.PredicateInternalUnifyTestCase::test_complex_predicate_defn", "tests.test_orm_core.PredicateInternalUnifyTestCase::test_predicate_comp...
["tests.test_orm_query.ComparatorTestCase::test_nonapi_comparison_callables", "tests.test_orm_query.PlaceholderTestCase::test_NamedPlaceholder", "tests.test_orm_query.PlaceholderTestCase::test_PositionalPlaceholder"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }