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
matiasb__python-unidiff-24
matiasb/python-unidiff
6102bb37e3474ef68867bf80295591abbe69031b
diff --git a/bin/unidiff b/bin/unidiff index 4cb1168..c5cb929 100755 --- a/bin/unidiff +++ b/bin/unidiff @@ -55,6 +55,7 @@ if __name__ == '__main__': print('-------') additions = 0 deletions = 0 + renamed_files = 0 for f in patch: if f.is_binary_file: print('%s:' % f.path, '...
python
diff --git a/tests/samples/git_rename.diff b/tests/samples/git_rename.diff new file mode 100644 index 0000000..6a28228 --- /dev/null +++ b/tests/samples/git_rename.diff @@ -0,0 +1,13 @@ +diff --git a/added b/moved +similarity index 85% +rename from added +rename to moved +index a071991..4dbab21 100644 +--- a/added ++++...
2020-04-01T17:34:29+00:00Z
git diff `rename from XXX rename to YYY` synthax is not support For example: ``` lang=diff diff --git a/data/pitivi.desktop.in.in b/data/pitivi.desktop.in similarity index 100% rename from data/pitivi.desktop.in.in rename to data/pitivi.desktop.in ``` will not be taken into account.
0.0.1-alpha
ce704a60afc86383ef54291dbfce05fde65e06b3
["tests.test_parser.TestVCSSamples::test_git_renaming"]
["tests.test_parser.TestVCSSamples::test_samples", "tests.test_patchedfile.TestPatchedFile::test_is_added_file", "tests.test_patchedfile.TestPatchedFile::test_is_modified_file", "tests.test_patchedfile.TestPatchedFile::test_is_removed_file", "tests.test_line.TestLine::test_equal", "tests.test_line.TestLine::test_is_add...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
open2c__bioframe-47
open2c/bioframe
eeda0dc94ce4658f933e86cc7c881f5d65ea41dc
diff --git a/bioframe/core/specs.py b/bioframe/core/specs.py index 6a6196d..3282fe8 100644 --- a/bioframe/core/specs.py +++ b/bioframe/core/specs.py @@ -63,7 +63,7 @@ def _verify_columns(df, colnames, return_as_bool=False): if len(set(colnames)) < len(colnames): raise ValueError("column names must be un...
python
diff --git a/tests/test_core_specs.py b/tests/test_core_specs.py index 9d60a26..e7f9864 100644 --- a/tests/test_core_specs.py +++ b/tests/test_core_specs.py @@ -67,7 +67,7 @@ def test_verify_columns(): # no repeated column names with pytest.raises(ValueError): - specs._verify_columns(df1, ["chromStar...
2021-06-01T21:38:46+00:00Z
bioframe.closest (and perhaps other functions) break when working with categorical chromosomes cooler.bins() returns chrom column as categorical. If one is then to filter chroms (e.g. bins = bins[bins["chrom"] != "chrM") then "chrM" actually is left in the categorical variable, and would be a part of the .groupby...
@mimakaev this is what I observed as well - #46 - you can use `observed=True` to avoid grouping by non-existent categories: ```python bed_df.groupby(["chrom","start","end"],OBSERVED=TRUE).do_stuff() ``` ok, #46 is unrelated, but `groupby(...observed=True)` approach for grouping categoricals could be an alternative g...
0.0.1-alpha
c324d9b74e3118a6f98ed64228b18d93ba5da4e1
["tests.test_ops::test_trim", "tests.test_ops::test_closest", "tests.test_ops::test_subtract"]
["tests.test_core_checks::test_is_cataloged", "tests.test_core_checks::test_is_contained", "tests.test_core_checks::test_is_overlapping", "tests.test_core_checks::test_is_covering", "tests.test_core_checks::test_is_tiling", "tests.test_core_checks::test_is_bedframe", "tests.test_core_checks::test_is_viewframe", "tests....
["tests.test_ops::test_overlap", "tests.test_ops::test_coverage"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mwaskom__seaborn-2907
mwaskom/seaborn
e75e303b747ebb9b573d0ddfbd08a141f305d373
diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py index a6a8bce..e6a248d 100644 --- a/seaborn/_core/plot.py +++ b/seaborn/_core/plot.py @@ -1492,10 +1492,9 @@ class Plotter: ) -> DataFrame: # TODO do we still have numbers in the variable name at this point? coord_cols = [c for c in df if...
python
diff --git a/tests/_marks/test_bar.py b/tests/_marks/test_bar.py index 373882e..e651a1a 100644 --- a/tests/_marks/test_bar.py +++ b/tests/_marks/test_bar.py @@ -200,3 +200,13 @@ class TestBars: colors = p._theme["axes.prop_cycle"].by_key()["color"] assert_array_equal(fcs, to_rgba_array([colors[0]] * l...
2023-01-21T01:43:19+00:00Z
Width computation after histogram slightly wrong with log scale Note the slight overlap here: ```python ( so.Plot(tips, "total_bill") .add(so.Bars(alpha=.3, edgewidth=0), so.Hist(bins=4)) .scale(x="log") ) ``` ![image](https://user-images.githubusercontent.com/315810/178975852-d8fd830e-ae69-487d-...
0.0.1-alpha
72faf27f440522fa558df33258ae9b4ea59e161f
["tests._marks.test_bar.TestBars::test_log_scale"]
["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",...
["tests.test_axisgrid.TestFacetGrid::test_subplot_kws"]
{ "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" }
xgcm__xhistogram-15
xgcm/xhistogram
30006a03d2691c13ea5167261251c28bfbdfc2e6
diff --git a/ci/environment-py36-numpy1.16.yml b/ci/environment-py36-numpy1.16.yml index f0bd0cb..d6b8c9e 100644 --- a/ci/environment-py36-numpy1.16.yml +++ b/ci/environment-py36-numpy1.16.yml @@ -5,6 +5,7 @@ dependencies: - dask - numpy==1.16 - pytest + - pip - pip: - codecov - pytest-cov diff -...
python
diff --git a/xhistogram/test/test_xarray.py b/xhistogram/test/test_xarray.py index 7be7449..818da38 100644 --- a/xhistogram/test/test_xarray.py +++ b/xhistogram/test/test_xarray.py @@ -148,3 +148,26 @@ def test_dims_and_coords(): assert result.dims == ('time', 'depth', 'one_bin', 'two_bin') assert result.time...
2020-09-15T15:51:02+00:00Z
Carry coordinates I noticed that all coordinates are lost when passing through xhistogram. Do you think [pydata/xarray#3453](https://github.com/pydata/xarray/pull/3453), would make it feasible to carry those (see [xgcm/xgcm#150](https://github.com/xgcm/xgcm/issues/150) for discussion), or is there a specific reaso...
0.0.1-alpha
4ae9f0a5afd50bf2c143828e6114bfcbbcce905b
["xhistogram.test.test_xarray::test_carry_coords[True-1]", "xhistogram.test.test_xarray::test_carry_coords[True-2]", "xhistogram.test.test_xarray::test_carry_coords[False-1]", "xhistogram.test.test_xarray::test_carry_coords[False-2]"]
["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_density[None]", "xhistogram.test.test_core::test_histogram_results_1d_density[1]", "x...
["xhistogram.test.test_core::test_histogram_results_3d_density"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oscal-compass__compliance-trestle-1586
oscal-compass/compliance-trestle
7ef431970fcfe5563895c1864c304e2221819ded
diff --git a/trestle/core/commands/author/versioning/template_versioning.py b/trestle/core/commands/author/versioning/template_versioning.py index e9c954d..43f5248 100644 --- a/trestle/core/commands/author/versioning/template_versioning.py +++ b/trestle/core/commands/author/versioning/template_versioning.py @@ -212,7 +...
python
diff --git a/tests/trestle/core/commands/author/versioning/template_versioning_test.py b/tests/trestle/core/commands/author/versioning/template_versioning_test.py index 8d7fbb1..10f04bb 100644 --- a/tests/trestle/core/commands/author/versioning/template_versioning_test.py +++ b/tests/trestle/core/commands/author/versio...
2024-06-20T22:23:22+00:00Z
Trestle author -tv flag doesn't enforce the version format (e.g. 0.0.1) correctly ## Describe the bug Invalid version formats (e.g. 1a2b3) are not captured when using the `trestle author header -tv` command. This behavior is due to the . character is not escaped properly in `is_valid_version()` under `template_versio...
@Ma1h01 you're right, this is a bug, I have confirmed, go ahead and work on it. Could you please also take a look at this Sonar lint code suggestion and see if it makes any sense? It seems to be a readability and ease of use suggestion. Reference here https://www.quora.com/Is-there-any-difference-between-the-regular...
0.0.1-alpha
031850f91a83f6fdd569025982a923cd10123938
["tests.trestle.core.commands.author.versioning.template_versioning_test::test_valid_version"]
["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" }
rsheftel__pandas_market_calendars-100
rsheftel/pandas_market_calendars
a64f70d505b1c7da47aa0be828cc37f15d563fbe
diff --git a/pandas_market_calendars/exchange_calendar_six.py b/pandas_market_calendars/exchange_calendar_six.py index a31b307..430244a 100644 --- a/pandas_market_calendars/exchange_calendar_six.py +++ b/pandas_market_calendars/exchange_calendar_six.py @@ -62,7 +62,6 @@ ChristmasEve = Holiday( 'Christmas Eve', ...
python
diff --git a/tests/test_six_calendar.py b/tests/test_six_calendar.py index 7cb61f4..15901e5 100644 --- a/tests/test_six_calendar.py +++ b/tests/test_six_calendar.py @@ -10,15 +10,58 @@ def test_time_zone(): def test_2018_holidays(): - # good friday: 2017-04-14 - # May 1st: 2017-05-01 - # christmas (observ...
2020-06-15T19:21:50+00:00Z
Six calendar wrong WeekendChristmas and WeekendBoxingDay Hi All, it seems that for six calendar WeekendChristmas and WeekendBoxingDay are wrongly applied. See for example 28-12-2020, this is a non business day according current implementation (due to Boxing Day happening on Saturday and shifted to the next Monda...
@oliverfu89 , you created the initial SIX calendar in PR #36 . Before I change it, do you have any insight into this issue? This is being worked on here if you would like to contribute or check; https://github.com/rsheftel/pandas_market_calendars/tree/six-fix This is fixed in #101
0.0.1-alpha
73fc5199c5a5d099c500696749ee0027c0e5bcdc
["tests.test_six_calendar::test_eve_day_weekend", "tests.test_six_calendar::test_christmas_weekend", "tests.test_six_calendar::test_boxing_day_weekend"]
["tests.test_cfe_calendar::test_2016_holidays", "tests.test_cfe_calendar::test_open_time_tz", "tests.test_cfe_calendar::test_close_time_tz", "tests.test_class_registry::test_inheritance", "tests.test_class_registry::test_metamixing", "tests.test_cme_agriculture_calendar::test_time_zone", "tests.test_cme_agriculture_cal...
["tests.test_cfe_calendar::test_2016_early_closes", "tests.test_cme_agriculture_calendar::test_dec_jan", "tests.test_cme_calendar::test_2016_early_closes", "tests.test_cme_calendar::test_dec_jan", "tests.test_hkex_calendar::test_hkex_closes_at_lunch", "tests.test_ice_calendar::test_2016_early_closes", "tests.test_jpx_c...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
robbievanleeuwen__concrete-properties-20
robbievanleeuwen/concrete-properties
4bc0671b9941710a9c5c6edc6acf17de31f52068
diff --git a/concreteproperties/concrete_section.py b/concreteproperties/concrete_section.py index 641eade..2e010ea 100644 --- a/concreteproperties/concrete_section.py +++ b/concreteproperties/concrete_section.py @@ -1,14 +1,15 @@ from __future__ import annotations import warnings -from math import inf -from typing...
python
diff --git a/concreteproperties/tests/test_moment_interaction.py b/concreteproperties/tests/test_moment_interaction.py new file mode 100644 index 0000000..5543b12 --- /dev/null +++ b/concreteproperties/tests/test_moment_interaction.py @@ -0,0 +1,93 @@ +import numpy as np +import pytest +from concreteproperties.concrete...
2022-07-30T07:34:46+00:00Z
Interaction Diagram Features ### Discussed in https://github.com/robbievanleeuwen/concrete-properties/discussions/12 <div type='discussions-op-text'> <sup>Originally posted by **Agent6-6-6** July 23, 2022</sup> *"Many codes ACI318 and NZS3101 have a hard upper cutoff for the axial load a section can take... add...
0.0.1-alpha
62c1cca2f202a13ef3ed386e42498a0483cebf9d
["concreteproperties.tests.test_moment_interaction::test_control_points"]
["concreteproperties.tests.test_gross_properties::test_rectangle_second_moment_of_area", "concreteproperties.tests.test_reinforced_concrete_basics::test_example_3_1", "concreteproperties.tests.test_reinforced_concrete_basics::test_example_3_2", "concreteproperties.tests.test_reinforced_concrete_basics::test_example_3_4...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
okta__okta-sdk-python-151
okta/okta-sdk-python
9387d48713c8d3d90d18f671d729c0d1c2095cbd
diff --git a/CHANGELOG.md b/CHANGELOG.md index 63a77af..23cdecf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Okta Python SDK Changelog -## v1.2.2 +## v1.3.0 +- Add custom http headers to client - Fix installation requirements ## v1.2.1 diff --git a/README.md b/README.md index 59b4c12..74dc6b1 1...
python
diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py index 20b2ced..b098d75 100644 --- a/tests/unit/test_client.py +++ b/tests/unit/test_client.py @@ -1,3 +1,4 @@ +import aiohttp import asyncio from okta.client import Client as OktaClient import pytest @@ -597,3 +598,48 @@ def test_client_raise_excepti...
2020-12-16T15:09:50+00:00Z
Expose request "headers" to provide additional functionality Expose the ability to provide additional "headers" (such as "X-Forwarded-For") for factor verification (example method = "verify_factor") Some API calls have the ability to send additional headers. I may consider forking this for a pull request.
Hi @techjutsu-mikeb, thanks for the report here. This is a good idea here. I am going to address this with our engineer for python to see what we may be able to do for this. If you are considering a fork and PR, we would be open to taking a look as well. Just be aware, the SDK is generated through openAPI, so you wou...
0.0.1-alpha
e1aee87152e4e4566a8fb490da71355a3d70f3f4
["tests.unit.test_client::test_client_custom_headers"]
["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes...
["tests.unit.test_client::test_constructor_env_vars_SSWS", "tests.unit.test_client::test_constructor_env_vars_PK", "tests.unit.test_client::test_constructor_precedence_highest_rank_local_yaml", "tests.unit.test_client::test_constructor_precedence_highest_rank_env_vars", "tests.unit.test_http_client::test_client_invalid...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
netbox-community__pynetbox-144
netbox-community/pynetbox
ce74ebb0eb4e80610d6d5d5857c90a1a2de18f4f
diff --git a/pynetbox/core/endpoint.py b/pynetbox/core/endpoint.py index 48643d5..bd69492 100644 --- a/pynetbox/core/endpoint.py +++ b/pynetbox/core/endpoint.py @@ -19,6 +19,15 @@ from pynetbox.core.response import Record RESERVED_KWARGS = ("id", "pk", "limit", "offset") +def response_loader(req, return_obj, endpo...
python
diff --git a/tests/test_ipam.py b/tests/test_ipam.py index bb35373..e381d9f 100644 --- a/tests/test_ipam.py +++ b/tests/test_ipam.py @@ -162,18 +162,6 @@ class PrefixTestCase(Generic.Tests): return_value=Response(fixture='ipam/prefix.json'), ) def test_create_available_ips(self, _, post): - ex...
2020-06-25T01:58:39+00:00Z
Available-ips & prefixes Creates Should Return Objects With the change in `Endpoint.Create()` of returning Record objects instead of dicts the `.create()` methods on `available_ips` and `available_prefixes` should do the same.
0.0.1-alpha
1d53796ce537d1f930274b92a54c6b3bd38397a0
["tests.test_ipam.PrefixTestCase::test_create_available_ips", "tests.test_ipam.PrefixTestCase::test_create_available_prefixes"]
["tests.test_dcim.SiteTestCase::test_compare", "tests.test_dcim.SiteTestCase::test_create", "tests.test_dcim.SiteTestCase::test_custom_selection_serializer", "tests.test_dcim.SiteTestCase::test_delete", "tests.test_dcim.SiteTestCase::test_filter", "tests.test_dcim.SiteTestCase::test_get", "tests.test_dcim.SiteTestCase:...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
lucidrains__x-transformers-303
lucidrains/x-transformers
66be236c62984dc97e3ff590925a146d8de42ade
diff --git a/setup.py b/setup.py index 4691a73..5b3bcca 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name = 'x-transformers', packages = find_packages(exclude=['examples']), - version = '1.42.24', + version = '1.42.25', license='MIT', description...
python
diff --git a/tests/test_x_transformers.py b/tests/test_x_transformers.py index ef231b6..8944115 100644 --- a/tests/test_x_transformers.py +++ b/tests/test_x_transformers.py @@ -557,3 +557,32 @@ def test_laser(): x = torch.randint(0, 20000, (2, 1024)) model(x) + +@pytest.mark.parametrize('cross_attn_rotary',...
2024-12-10T15:15:25+00:00Z
[Feature request] Rotary positional embedding in cross attention It's me again :) It would be nice if cross attention models can accept a `context_pos` kwarg, mirroring the behavior of `pos` when `rotary_pos_emb=True`. This doesn't make sense in the context of encoder-decoder transformer models, but for my MAE pre...
Quick hack implementation here: https://github.com/Aceticia/x-transformers/tree/cross_attn_rot_pos @Aceticia hey Chris, yes indeed i've actually came across this need a couple times in the past, but wasn't sure if the general public would do you want to take a look at the latest commit and see if that works? This lo...
0.0.1-alpha
70c59b6defb442b349fffe57e733fa5b14d813b6
["tests.test_x_transformers::test_cross_attn_rotary[True]", "tests.test_x_transformers::test_cross_attn_rotary[False]"]
["tests.test_x_transformers::test_readme", "tests.test_x_transformers::test_kv_cache", "tests.test_x_transformers::test_cope", "tests.test_x_transformers::test_adaptive_layernorm", "tests.test_x_transformers::test_adaptive_rmsnorm", "tests.test_x_transformers::test_attn_softclamp_logits", "tests.test_x_transformers::te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
upb-lea__gym-electric-motor-83
upb-lea/gym-electric-motor
779fcb97498f74e2fa97de5b2f014798832deb27
diff --git a/gym_electric_motor/physical_systems/converters.py b/gym_electric_motor/physical_systems/converters.py index 89d091b..1fa3ebf 100644 --- a/gym_electric_motor/physical_systems/converters.py +++ b/gym_electric_motor/physical_systems/converters.py @@ -188,6 +188,11 @@ class DiscConverter(PowerElectronicConvert...
python
diff --git a/tests/test_physical_systems/test_converters.py b/tests/test_physical_systems/test_converters.py index d205c45..3c6eef8 100644 --- a/tests/test_physical_systems/test_converters.py +++ b/tests/test_physical_systems/test_converters.py @@ -762,6 +762,23 @@ class TestDiscConverter(TestPowerElectronicConverter):...
2020-09-08T14:10:20+00:00Z
Unexpected multiplication of input voltage I tried to run some tests with the ` DcSeriesDisc-v1` environment. This env uses a one-quadrant converter which is (supposed to be) controllable by actions `0` (switch is off) and `1` (switch is on). Action `0`: I get what I expect `(x, r), reward, done, _ = env.step(0)` ...
Solution approach in respective issue branch (issue_83). Added an assertion that monitors whether the discrete converters are receiving valid action signals. E.g.: `AssertionError: The selected action 7 is not a valid element of the action space Discrete(4).` `AssertionError: The selected action -1 is not a valid e...
0.0.1-alpha
ea8935fe73dc3b819d9c9b362be0e1187e0b1591
["tests.test_physical_systems.test_converters.TestDiscConverter::test_set_action[1]", "tests.test_physical_systems.test_converters.TestDiscConverter::test_set_action[2]", "tests.test_physical_systems.test_converters.TestDiscConverter::test_set_action[3]", "tests.test_physical_systems.test_converters.TestDiscConverter::...
["tests.test_callbacks.TestRampingLimitMargin::test_update", "tests.test_callbacks.TestRampingLimitMargin::test_initial_values", "tests.test_callbacks.TestRampingLimitMargin::test_update_switched", "tests.test_callbacks.TestRampingLimitMargin::test_right_reference", "tests.test_constraint_monitor.TestConstraintMonitor:...
["tests.test_core.TestElectricMotorEnvironment::test_reset", "tests.test_physical_systems.test_converters.TestContFourQuadrantConverter::test_set_action", "tests.test_physical_systems.test_mechanical_loads::test_speed_profile"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tanghaibao__jcvi-307
tanghaibao/jcvi
3e0410cd0015b0f7e3601482d673dc7082c3e9ac
diff --git a/docker/jcvi.dockerfile b/docker/jcvi.dockerfile index 3d09064..11a4a65 100644 --- a/docker/jcvi.dockerfile +++ b/docker/jcvi.dockerfile @@ -1,12 +1,12 @@ -FROM ubuntu:latest +FROM continuumio/miniconda3 ARG DEBIAN_FRONTEND=noninteractive -MAINTAINER tanghaibao@gmail.com +LABEL maintainer="tanghaibao@gmail...
python
diff --git a/tests/apps/test_fetch.py b/tests/apps/test_fetch.py new file mode 100644 index 0000000..835e238 --- /dev/null +++ b/tests/apps/test_fetch.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + +import os +from unittest.mock import patch + + +@patch("builtins.input", return_value="username") ...
2020-10-27T23:21:32+00:00Z
fetch.py fails on initial phytozome api download request (owing to no cookie file?) From newly built docker container of jcvi suite, fetch.py (called directly) or "jcvi.apps.fetch phytozome" aborts due to 'anonDownload' state -- no cookiefile available and script does not make one, even when correct jgi login credenti...
@goertzenlr Thanks for the detailed report. Does it only fail for you running docker? Did it work for you before? It still works on my macOS here so I'll see if I can reproduce this error somehow. As you probably have observed, after entering username and password, the script makes a `.phytozome_cookies` file in...
0.0.1-alpha
ba5e893d2e9faceaae1a81e8c186eb76b0a603d4
["tests.apps.test_fetch::test_get_cookies"]
["tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array0-expected0]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array1-expected1]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array2-expected2]", "tests.algorithms.test_lis::test_longest_incre...
["tests.formats.test_cblast.TestCblast::test_getters", "tests.formats.test_cblast.TestCblast::test_setters", "tests.formats.test_cblast.TestCblast::test_swap", "tests.formats.test_cblast_benchmark::test_cblast", "tests.formats.test_formats::test_script[bed_append_source_ftype-jcvi.formats.gff-bed---append_source --appe...
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
timvink__mkdocs-table-reader-plugin-62
timvink/mkdocs-table-reader-plugin
170e82c854a00aa74250e4114c6ab1b5fbadf292
diff --git a/mkdocs_table_reader_plugin/safe_eval.py b/mkdocs_table_reader_plugin/safe_eval.py index 6d07519..a434526 100644 --- a/mkdocs_table_reader_plugin/safe_eval.py +++ b/mkdocs_table_reader_plugin/safe_eval.py @@ -74,6 +74,7 @@ def parse_argkwarg(input_str: str): in_quotes = False quote_char = '' ...
python
diff --git a/tests/test_kwargs.py b/tests/test_kwargs.py index 599645f..3cb2961 100644 --- a/tests/test_kwargs.py +++ b/tests/test_kwargs.py @@ -19,4 +19,5 @@ def test_parse_argkwarg(): assert parse_argkwarg("sep=';'") == ([], {'sep': ';'}) assert parse_argkwarg('"file.csv", usecols=["A", "B"]') == (['file.cs...
2024-05-07T09:14:30+00:00Z
read_csv() bug introduced with 2.2.0: Positional arguments follow keyword arguments After installing `2.2.0` I am getting an error while using `read_csv()` in MKDocs Material. The issue seems to be related to #61 handling positional arguments as a list. In my case I use `colalign=()`. The statement I use: `{{ read...
Thanks for reporting! Will look into this soon Fixed, making a release now Release https://github.com/timvink/mkdocs-table-reader-plugin/releases/tag/v2.2.1 Pypi https://pypi.org/project/mkdocs-table-reader-plugin/
0.0.1-alpha
404aa9660033b1081c45ebfb8e469ce129c16013
["tests.test_kwargs::test_parse_argkwarg"]
["tests.test_build::test_search_page_directory", "tests.test_build::test_relative_path", "tests.test_build::test_raw_cotent", "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", "tests.test_build:...
["tests.test_build::test_table_output", "tests.test_build::test_compatibility_macros_plugin", "tests.test_build::test_compatibility_markdownextradata"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python__cherry-picker-41
python/cherry-picker
766f76cfb6aefb88539359e26ae52e7562f11ab0
diff --git a/cherry_picker/test_cherry_picker.py b/cherry_picker/test_cherry_picker.py index b62c74b..b76616d 100644 --- a/cherry_picker/test_cherry_picker.py +++ b/cherry_picker/test_cherry_picker.py @@ -986,12 +986,13 @@ def test_backport_cherry_pick_crash_ignored( def test_backport_cherry_pick_branch_already_ex...
python
2022-10-04T20:57:03+00:00Z
`cherry_picker --continue` does not respect `--no-push` option If after resolving conflict, I use `cherry_picker --no-push --continue`, `cherry_picker` will push to remote (and open webbrowser/make PR through API) regardless.
0.0.1-alpha
061c63d484d1a0972dfbe6a58ee671d058c77974
["cherry_picker.test_cherry_picker::test_backport_cherry_pick_branch_already_exists", "cherry_picker.test_cherry_picker::test_backport_pause_and_continue[True-True]", "cherry_picker.test_cherry_picker::test_backport_pause_and_continue[True-False]", "cherry_picker.test_cherry_picker::test_backport_pause_and_continue[Fal...
["cherry_picker.test_cherry_picker::test_get_base_branch", "cherry_picker.test_cherry_picker::test_get_base_branch_which_has_dashes", "cherry_picker.test_cherry_picker::test_get_base_branch_invalid[backport-22a594a]", "cherry_picker.test_cherry_picker::test_get_base_branch_invalid[prefix-22a594a-2.7]", "cherry_picker.t...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
python-validators__validators-190
python-validators/validators
4afa24372586aed4930e865d5904eed31013fe81
diff --git a/validators/ip_address.py b/validators/ip_address.py index f8b138d..e0c061d 100644 --- a/validators/ip_address.py +++ b/validators/ip_address.py @@ -23,8 +23,12 @@ def ipv4(value): :param value: IP address string to validate """ - groups = value.split('.') - if len(groups) != 4 or any(not ...
python
diff --git a/tests/test_ipv4.py b/tests/test_ipv4.py index 3dac98d..f0f2f37 100644 --- a/tests/test_ipv4.py +++ b/tests/test_ipv4.py @@ -19,6 +19,7 @@ def test_returns_true_on_valid_ipv4_address(address): ('1278.0.0.1',), ('127.0.0.abc',), ('900.200.100.75',), + ('0127.0.0.1',), ]) def test_returns_...
2022-06-05T17:03:39+00:00Z
IPv4 validator accepts any number of 0's in a segment **Version: 0.18.2** The `ipv4` validator only tests that: - The number of dot-delimited groups is 4 - Each group represents a 'digit' - The value of each digit is `>= 0` & `< 256` Therefore a segment can contain as many zeroes as you like, and it'll stil...
0.0.1-alpha
c056d6447d3ba5992163e840f8ce706ca2d31bc8
["tests.test_ipv4::test_returns_failed_validation_on_invalid_ipv4_address[0127.0.0.1]"]
["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" }
yukinarit__pyserde-421
yukinarit/pyserde
ed0fc552c3d30b262780016fe54ae817cebe96d5
diff --git a/examples/runner.py b/examples/runner.py index 26d0168..a839807 100644 --- a/examples/runner.py +++ b/examples/runner.py @@ -132,5 +132,7 @@ def run(module: typing.Any) -> None: if __name__ == "__main__": try: run_all() + print("-----------------") + print("all tests passed succ...
python
diff --git a/tests/test_basics.py b/tests/test_basics.py index 9b062df..ea7c318 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -458,28 +458,6 @@ def test_msgpack_unnamed(): assert p == serde.msgpack.from_msgpack(data.Pri, d, named=False) -def test_toml(): - @serde.serde - class Foo: - ...
2024-10-21T00:26:00+00:00Z
Omit the corresponding key/value pairs when the value is `None` to use TOML serialization I asked Toml maintainers to add `null` to TOML spec, and I got the reply which suggest me to omit the null key/value pairs. https://github.com/toml-lang/toml/issues/975 It is usual in python to use None, and TOML can not be...
What happens if `None` is part of array? Are you making array shorter and shifting all the values that followed the `None`? I still cannot wrap my head around why TOML is fighting against having `null` tooth and nail. Hi sorry for the delay. I was just back from vacation. What will happen if you pass an object with...
0.0.1-alpha
67f98de4e3f85283917fcbaebfdb71ea2c78ce4e
["tests.test_toml::test_skip_none"]
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
spectacles-ci__spectacles-111
spectacles-ci/spectacles
1d98a6b4340343bb46a155c4fbeb820824ccd11c
diff --git a/spectacles/validators/sql.py b/spectacles/validators/sql.py index 245535b..fdc1556 100644 --- a/spectacles/validators/sql.py +++ b/spectacles/validators/sql.py @@ -1,6 +1,7 @@ from __future__ import annotations import asyncio from dataclasses import dataclass +import time from tabulate import tabulate ...
python
diff --git a/tests/unit/test_sql_validator.py b/tests/unit/test_sql_validator.py index d87a89b..7afec30 100644 --- a/tests/unit/test_sql_validator.py +++ b/tests/unit/test_sql_validator.py @@ -9,7 +9,12 @@ from spectacles.validators.sql import Query, SqlValidator from spectacles.lookml import Explore, Dimension from ...
2023-05-25T02:45:34+00:00Z
Query results incorrectly assigned expired status by Looker API Looker's async `multi_results` [endpoint](https://docs.looker.com/reference/api-and-integration/api-reference/v3.1/query#get_multiple_async_query_results) occasionally reports the status of a running query as `expired` right before the query completes suc...
Just had it happen on our instance: ``` Attempting to get results for 1 query tasks Query task a607517addb9d3159300ee61d314e40e status is running Attempting to get results for 1 query tasks Query task a607517addb9d3159300ee61d314e40e status is expired Attempting to get results for 1 query tasks Query task a60751...
0.0.1-alpha
b4e8530b1a866d2c55c7df4c8f9f9ab24e608745
["tests.unit.test_sql_validator::test_get_query_results_gives_up_after_retrying_expired_queries[False]", "tests.unit.test_sql_validator::test_get_query_results_gives_up_after_retrying_expired_queries[True]", "tests.unit.test_sql_validator::test_get_query_results_retries_actually_expired_queries[True]", "tests.unit.test...
["tests.unit.test_sql_validator::test_run_query_handles_exceptions_raised_within", "tests.unit.test_sql_validator::test_search_works_with_passing_query[False]", "tests.unit.test_sql_validator::test_get_query_results_gives_up_after_killed_query[False]", "tests.unit.test_sql_validator::test_get_query_results_gives_up_aft...
["tests.integration.test_branch_manager::test_should_return_to_initial_state_dev", "tests.integration.test_branch_manager::test_manage_with_ref_import_projects", "tests.integration.test_branch_manager::test_manage_current_branch", "tests.integration.test_branch_manager::test_manage_prod_with_advanced_deploy", "tests.in...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__vscode-isort-77
microsoft/vscode-isort
aaf65a02a5086e96921b956579b0d38ac93bf937
diff --git a/bundled/tool/server.py b/bundled/tool/server.py index 685b15b..7cd5c35 100644 --- a/bundled/tool/server.py +++ b/bundled/tool/server.py @@ -217,27 +217,42 @@ def code_action_organize_imports(params: lsp.CodeActionParams): kind=lsp.CodeActionKind.SourceOrganizeImports, ...
python
diff --git a/src/test/python_tests/test_sort.py b/src/test/python_tests/test_sort.py index b22f6ed..22c0ff8 100644 --- a/src/test/python_tests/test_sort.py +++ b/src/test/python_tests/test_sort.py @@ -16,6 +16,213 @@ FORMATTER = utils.get_server_info_defaults() TIMEOUT = 10 # 10 seconds +@pytest.mark.parametrize(...
2022-11-08T21:41:59+00:00Z
TypeError: Cannot read properties of null (reading 'map') ``` [2022-06-21 10:42:13.425] [renderer1] [error] Cannot read properties of null (reading 'map'): TypeError: Cannot read properties of null (reading 'map') at g (/home/buda/.vscode/extensions/ms-python.isort-2022.3.11671003/dist/extension.js:1:213014) at O...
``` ERR Cannot read properties of null (reading 'map'): TypeError: Cannot read properties of null (reading 'map') at asDiagnostics (c:\GIT\formatters\vscode-isort\dist\webpack:\isort\node_modules\vscode-languageclient\lib\common\protocolConverter.js:34:1) at Object.asCodeAction (c:\GIT\formatters\vscode-is...
0.0.1-alpha
89294a9496b1dfca9a8b632a2ab5c37971b8a530
["src.test.python_tests.test_sort::test_code_actions[quickfix]", "src.test.python_tests.test_sort::test_code_actions[source.organizeImports]", "src.test.python_tests.test_sort::test_code_actions[action_type2]", "src.test.python_tests.test_sort::test_code_actions[None]", "src.test.python_tests.test_sort::test_code_actio...
["src.test.python_tests.test_path_specialization::test_path", "src.test.python_tests.test_path_specialization::test_interpreter", "src.test.python_tests.test_sort::test_check_disabled"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yaph__geonamescache-22
yaph/geonamescache
b158c9a17abcaed3bd56adec854b60b62b9feacd
diff --git a/geonamescache/__init__.py b/geonamescache/__init__.py index ec58e8c..6b9fe30 100644 --- a/geonamescache/__init__.py +++ b/geonamescache/__init__.py @@ -79,6 +79,15 @@ class GeonamesCache: self.us_counties, 'us_counties.json') return self.us_counties + def search_cities(self, ...
python
diff --git a/tests/test_geonamescache.py b/tests/test_geonamescache.py index 1c89c43..47add98 100644 --- a/tests/test_geonamescache.py +++ b/tests/test_geonamescache.py @@ -71,6 +71,10 @@ class GeonamesCacheTestSuite(unittest.TestCase): self.assertEqual(name, cities[gid]['name']) self.assertEq...
2020-05-20T09:03:12+00:00Z
Getting cities by name through alternate names In cities_by_name(), if the city name is **Kiev**, it would return an empty list but if the city name is **Kyiv**, it would return a list containing the city in Ukraine. Although both names pertain to the same city. Would such enhancement be possible?
I use the data from the GeoNames project without making changes to it. For country names I added support for some common variants using the mapper feature. For cities a mapping of different spellings would get too large to maintain and probably lead to ambiguities. To answer you question, it is possible but I will not ...
0.0.1-alpha
dc7d765859309153517b6fae336f8f7041424643
["tests.test_geonamescache.GeonamesCacheTestSuite::test_search_cities"]
["tests.test_geonamescache.GeonamesCacheTestSuite::test_cities_in_us_states", "tests.test_geonamescache.GeonamesCacheTestSuite::test_continents", "tests.test_geonamescache.GeonamesCacheTestSuite::test_get_cities_by_name", "tests.test_geonamescache.GeonamesCacheTestSuite::test_get_cities_by_name_madrid", "tests.test_geo...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mwaskom__seaborn-3272
mwaskom/seaborn
804662d1fd00008d596cdad2bc0b76593803d984
diff --git a/seaborn/categorical.py b/seaborn/categorical.py index 516e80c..905c055 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -685,7 +685,9 @@ class _CategoricalPlotterNew(_RelationalPlotter): positions = self.var_levels[self.orient] if self.var_types[self.orient] == "categ...
python
diff --git a/tests/test_categorical.py b/tests/test_categorical.py index 52fa3a7..cc3c1fe 100644 --- a/tests/test_categorical.py +++ b/tests/test_categorical.py @@ -2917,6 +2917,15 @@ class TestPointPlot(SharedAggTests): assert l2.get_linewidth() == 2 * l1.get_linewidth() assert l2.get_markersize() > ...
2023-04-15T14:08:32+00:00Z
Layered pointplot getting clipped Following the refactor in #3270 ```python sns.pointplot( x=pd.Series(["a", "b", "c"], index=[1, 2, 3]), y=pd.Series([1, 2, 3], index=[1, 2, 3]) ) sns.pointplot( x=pd.Series(["b", "c", "d"], index=[1, 2, 3]), y=pd.Series([3, 4, 5], index=[1, 2, 3]) ) ``` ...
0.0.1-alpha
0b6d6535fb124911ed4f4e74b979e7678f24952e
["tests.test_categorical.TestPointPlot::test_clipping"]
["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
more-itertools__more-itertools-480
more-itertools/more-itertools
9c8dabe6e27bcc992c245db9ca264f430020c8bb
diff --git a/more_itertools/more.py b/more_itertools/more.py index 90cd63c..2db826d 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1569,7 +1569,7 @@ def zip_offset(*iterables, offsets, longest=False, fillvalue=None): return zip(*staggered) -def sort_together(iterables, key_list=(0,), reve...
python
diff --git a/tests/test_more.py b/tests/test_more.py index e314f96..d34d884 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -1929,6 +1929,44 @@ class SortTogetherTest(TestCase): IndexError, lambda: mi.sort_together(iterables, key_list=(5,)) ) + def test_key_function(self): + ...
2020-12-24T19:27:45+00:00Z
allow passing your own key function to sort_together I recently came across a situation in which I wanted to use `sort_together`, but I also wanted to sort by a custom key. What do you think about exposing a `key` argument to `sort_together`? I think it would also be nice for the user's key function to take only t...
I like the feature and welcome a PR. Could you break down the change to the `key` parameter in the function body? The `always_iterable` aspect isn't clear to me. yeah I'll make it clearer in the PR. basically `itemgetter` sometimes returns a single value and sometimes a tuple, but I want to always unpack the return ...
0.0.1-alpha
1604bc368d3e5f7a8ead1f1ac3896c85da709f96
["tests.test_more.SortTogetherTest::test_key_function"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
timvink__mkdocs-git-revision-date-localized-plugin-10
timvink/mkdocs-git-revision-date-localized-plugin
ff534a12875e398fed1c372921ada2153f58da7f
diff --git a/README.md b/README.md index d6e764e..87e7ead 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,13 @@ plugins: > If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set. +### When using...
python
2020-02-22T20:05:24+00:00Z
Revision-date updates all files. Hi, first of all, thanks for your plugin. I'm deploying my wiki with [this github workflow](https://github.com/lyz-code/blue-book/blob/master/.github/workflows/gh-pages.yml). And if I change one file of the whole repository, the date get's changed in all the files. So for example...
Hi @lyz-code, Good to hear you're happy with the plugin! Trying to understand if something is going wrong or not. What this plugin does, is on `mkdocs build` lookup for each markdown file the datetime of the last commit that touched it. So on each deploy, all files are rechecked. So I checked if there are an...
0.0.1-alpha
6ca13cb9391a56553480e45dc2370f1cdd70bdc7
["tests.test_basic::test_date_formats"]
["tests.test_basic::test_basic_locale_builds", "tests.test_basic::test_type_builds", "tests.test_basic::test_low_fetch_depth"]
["tests.test_basic::test_material_theme"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
okta__okta-sdk-python-127
okta/okta-sdk-python
e1aee87152e4e4566a8fb490da71355a3d70f3f4
diff --git a/CHANGELOG.md b/CHANGELOG.md index 23cdecf..f4ae5ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Okta Python SDK Changelog +## v1.3.1 +- Fix application mapping + ## v1.3.0 - Add custom http headers to client - Fix installation requirements diff --git a/okta/__init__.py b/okta/__init...
python
diff --git a/tests/unit/test_constants.py b/tests/unit/test_constants.py new file mode 100644 index 0000000..80630ae --- /dev/null +++ b/tests/unit/test_constants.py @@ -0,0 +1,15 @@ +import okta.models as models +from okta.constants import find_app_model + +def test_find_app_model(): + expected = models.SamlApplica...
2020-12-16T17:36:55+00:00Z
list_applications returning KeyError I'm trying to list all the applications in an okta instance and getting the following result from the coroutine. (None, <okta.api_response.OktaAPIResponse object at 0x7f2e4490dd50>, KeyError('office365')) ``` import asyncio import os from okta.client import Client OKTA_...
@ryanbackman A couple things here. With the Client initialization, as long as you have environment variables `OKTA_CLIENT_ORGURL` and `OKTA_CLIENT_TOKEN` you do not need to pass anything into the instantiation. Our client will pull environment variables for you directly. This is defined in more details in [the readm...
0.0.1-alpha
02e95ac90aaa878d6daf884234ed00950669b4bd
["tests.unit.test_constants::test_find_app_model"]
["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes...
["tests.unit.test_client::test_constructor_env_vars_SSWS", "tests.unit.test_client::test_constructor_env_vars_PK", "tests.unit.test_client::test_constructor_precedence_highest_rank_local_yaml", "tests.unit.test_client::test_constructor_precedence_highest_rank_env_vars", "tests.unit.test_http_client::test_client_invalid...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pyfar__pyfar-632
pyfar/pyfar
145f4af4d269c8ee63129382d35d65dee19eb2e4
diff --git a/pyfar/__init__.py b/pyfar/__init__.py index 081c7bb..2da2f0d 100644 --- a/pyfar/__init__.py +++ b/pyfar/__init__.py @@ -11,7 +11,7 @@ from .classes.audio import Signal, TimeData, FrequencyData from .classes.audio import (add, subtract, multiply, divide, power, matrix_multiplic...
python
diff --git a/tests/test_coordiantes_arithmetic.py b/tests/test_coordiantes_arithmetic.py new file mode 100644 index 0000000..8187699 --- /dev/null +++ b/tests/test_coordiantes_arithmetic.py @@ -0,0 +1,144 @@ +import pytest +import pyfar as pf +import numpy.testing as npt +import numpy as np + + +@pytest.mark.parametriz...
2024-09-20T12:22:53+00:00Z
Arithmetic operations with pf.Coordinates It would be nice to be able to use arithmetic operations with pf.Coordinates, similar to audio objects. ideas would be: - [x] addition of 2 Coordinates objects - [x] substraction of 2 Coordinates objects - [x] dot product - [x] cross product
Absolutely - what you have in mind is for cartesian, right? There would be applications for spherical systems as well, e.g., for cyclic averaging. But maybe that would already be too specific.
0.0.1-alpha
612019127d546d273cd561cb4209a360abd498b8
["tests.test_coordiantes_arithmetic::test_arithmetic_coordinates[True---other0]", "tests.test_coordiantes_arithmetic::test_arithmetic_coordinates[True---other1]", "tests.test_coordiantes_arithmetic::test_arithmetic_coordinates[True---1]", "tests.test_coordiantes_arithmetic::test_arithmetic_coordinates[True---1.0]", "te...
["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_not_implemented", "tests.test_audio_frequency_data::test_data_frequency_init_with_defaults", "tests.test_audio_frequency_data::test_data_frequency_init_...
["tests.test_plot_interaction::test_toggle_plots[2d-time_2d-function_list1]", "tests.test_plot_interaction::test_toggle_colormap", "tests.test_plot_interaction::test_cycle_and_toggle_signals"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yukinarit__pyserde-596
yukinarit/pyserde
f93cafaa1fc2f2530d0084394964c3a757dabee9
diff --git a/docs/en/class-attributes.md b/docs/en/class-attributes.md index cff16a5..1f395bc 100644 --- a/docs/en/class-attributes.md +++ b/docs/en/class-attributes.md @@ -163,3 +163,23 @@ class Foo: See [examples/class_var.py](https://github.com/yukinarit/pyserde/blob/main/examples/class_var.py) for complete example...
python
diff --git a/tests/test_de.py b/tests/test_de.py index d6e2d10..6bb64dd 100644 --- a/tests/test_de.py +++ b/tests/test_de.py @@ -1,5 +1,8 @@ +import pytest from decimal import Decimal from typing import Union, Optional +from serde import serde, SerdeError, field +from serde.json import from_json from serde.de import...
2024-10-28T07:43:39+00:00Z
Extra fields in dict are ignored, instead of throwing an error I want some way to throw an error if there is an error in the dict I'm loading, in the sense that it has extra irrelevant fields, not present in my class.
pyserde can detect and throw an error when * required field is not found in dict * value in dict does not match declared type but pyserde can not detect unknown fields at the moment. this feature is equivalent to serde-rs's [#[serde(deny_unknown_fields)]](https://serde.rs/container-attrs.html). If you can guide...
0.0.1-alpha
6aeb49eb849062b970ff55c3f4ad778dc8d83de4
["tests.test_de::test_deny_unknown_fields", "tests.test_de::test_deny_renamed_unknown_fields", "tests.test_de::test_deny_aliased_unknown_fields"]
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nteract__testbook-92
nteract/testbook
2519a963ccbc2290d91544cde7f8d5821b13f2f1
diff --git a/testbook/client.py b/testbook/client.py index 153ad87..774f688 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -40,6 +40,12 @@ class TestbookNotebookClient(NotebookClient): self.inject(name, pop=True) return TestbookObjectReference(self, name) + def get(self, item): + ...
python
diff --git a/testbook/tests/test_reference.py b/testbook/tests/test_reference.py index 8ca9da4..5009b6a 100644 --- a/testbook/tests/test_reference.py +++ b/testbook/tests/test_reference.py @@ -17,6 +17,20 @@ def test_create_reference(notebook): assert a.resolve() == [1, 2, 3] +def test_create_reference_getitem...
2021-03-22T16:48:12+00:00Z
Allow using tb['some_object'] or tb.get('some_object') instead of tb.ref('some_object') It's more Pythonic, easier to remember, and makes it easy to migrate in-notebook tests to a script. Here's my use case: When I'm working on a notebook, I like to write tests inline first, and then move it to a `test.py` file: ...
I think that's a great idea! Shouldn't be too hard to add. If you wanted to take a stab at it we're always happy to accept new contributions. Otherwise one of us can add it when we get a cycle for it. Thanks for the detailed suggestion @aakashns! It's great to see a tried and _tested_ use case. I'm working on it (al...
0.0.1-alpha
7fa5fca60c954c9d2bea8e54e7b3201403910dd6
["testbook.tests.test_reference::test_create_reference_getitem", "testbook.tests.test_reference::test_create_reference_get"]
["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" }
matthewwithanm__python-markdownify-201
matthewwithanm/python-markdownify
5122c973c1a0d4351e64f02e2782912afbada9ef
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 69ec328..ac34ee5 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -443,7 +443,7 @@ class MarkdownConverter(object): def convert_br(self, el, text, parent_tags): if '_inline' in parent_tags: - return "" +...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index 6939329..0df8f57 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -79,6 +79,8 @@ def test_blockquote_nested(): def test_br(): assert md('a<br />b<br />c') == 'a \nb \nc' assert md('a<br />b<br />c', newline_st...
2025-03-04T12:37:22+00:00Z
`<br/>` in inline contexts does not evaluate to a separating space Currently, `<br/>` in inline contexts (such as headings and table cells) evaluates to an empty string instead of a separating space: ```python from markdownify import MarkdownConverter def md(html, **options): return MarkdownConverter(heading_sty...
0.0.1-alpha
618747c18caba97274369f514d9ed99f270203b8
["tests.test_conversions::test_br"]
["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" }
meeb__whoisit-12
meeb/whoisit
9d6229bf92f72fa4dcb32b1c586e1529c0f139e1
diff --git a/README.md b/README.md index 2b2aec7..144e6f9 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,46 @@ of any required terms of service or terms of use. You will have to manually veri returned by overridden endpoints. +### Insecure (HTTP) RDAP endpoints + +Some RDAP servers are only available over H...
python
diff --git a/tests/data_bootstrap.json b/tests/data_bootstrap.json index f797622..8172404 100644 --- a/tests/data_bootstrap.json +++ b/tests/data_bootstrap.json @@ -1,1 +1,1 @@ -{"timestamp": 1623132343, "asn": {"description": "RDAP bootstrap file for Autonomous System Number allocations", "publication": "2021-05-05T22...
2022-07-08T03:13:58+00:00Z
No valid RDAP service URLs could be parsed When starting my app, I get this message from whoisit: Python310\site-packages\whoisit\bootstrap.py", line 206, in validate_rdap_urls raise BootstrapError(f'No valid RDAP service URLs could be parsed ' whoisit.errors.BootstrapError: No valid RDAP service URLs could b...
I dug into it a bit more and see that the only protocol that is permitted to be used is https. If I override the PERMITTED_RDAP_PROTOCOLS variable in the Bootstrap class, I can get it to work. For example: whoisit._bootstrap.PERMITTED_RDAP_PROTOCOLS = ( 'http', 'https') Would it be possible to expose this through...
0.0.1-alpha
9f954d8289ecda30c39f5b46fde1837568be0a93
["tests.test_bootstrap.BootstrapTestCase::test_bootstrap_full_parsing", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_loading", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_saving", "tests.test_bootstrap.BootstrapTestCase::test_iana_overrides", "tests.test_bootstrap.BootstrapTestCase::test_insecure...
["tests.test_bootstrap.BootstrapTestCase::test_bootstrap_asn_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_dns_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_ipv4_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_ipv6_parser"]
[]
{ "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" }
materialsvirtuallab__monty-653
materialsvirtuallab/monty
2a2391b5f0db5c62224e3b2fd1208a2947153031
diff --git a/monty/json.py b/monty/json.py index e82ebf6..fbbd84e 100644 --- a/monty/json.py +++ b/monty/json.py @@ -6,6 +6,7 @@ import datetime import json import os import pathlib +import pickle import traceback import types from collections import OrderedDict, defaultdict @@ -14,7 +15,8 @@ from hashlib import ...
python
diff --git a/tests/test_json.py b/tests/test_json.py index 44c83c4..206c595 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -57,6 +57,29 @@ class GoodMSONClass(MSONable): ) +class GoodNOTMSONClass: + """Literally the same as the GoodMSONClass, except it does not have + the MSONable inheri...
2024-04-11T20:17:15+00:00Z
[Feature Request]: pickle fallback for un-MSONable class properties ### Email (Optional) Preference for just @matthewcarbone in this issue. ### Problem `monty.json.MSONable` is one of my favorite mixins, and it allows for seamless serialization of classes. However, there are often instances in which classes a...
This suggestion is fine with me. But I would not bother with a MSONAble2. You can simply modify MSONAble to support this. In other words, MSONAble will use json where possible and fall back on pickle when it cannot. @shyuep you got it. I will work on implementing `save` and `load` on the `MSONable` mixin. Thanks! @Andr...
0.0.1-alpha
dbaba61631b5bbd83968c61704957f99acdd7ab1
["tests.test_json.TestMSONable::test_save_load"]
["tests.test_bisect::test_funcs", "tests.test_collections.TestFrozenDict::test_frozen_dict", "tests.test_collections.TestFrozenDict::test_namespace_dict", "tests.test_collections.TestFrozenDict::test_attr_dict", "tests.test_collections.TestFrozenDict::test_frozen_attrdict", "tests.test_collections.TestTree::test_tree",...
["tests.test_itertools::test_iterator_from_slice", "tests.test_json.TestJson::test_jsanitize", "tests.test_json.TestJson::test_redirect_settings_file", "tests.test_json.TestJson::test_pydantic_integrations", "tests.test_multiprocessing::test_imap_tqdm", "tests.test_serialization.TestSerial::test_dumpfn_loadfn"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rayokota__jsonata-python-21
rayokota/jsonata-python
c3b9aa9f97de50c32430ea801c6948b5e859e99b
diff --git a/src/jsonata/jsonata.py b/src/jsonata/jsonata.py index 0a8392b..55476e0 100644 --- a/src/jsonata/jsonata.py +++ b/src/jsonata/jsonata.py @@ -800,9 +800,9 @@ class Jsonata: result = None if op == "=": - result = lhs == rhs # isDeepEqual(lhs, rhs); + result = utils.U...
python
diff --git a/tests/types_test.py b/tests/types_test.py index 26afcad..0b8b076 100644 --- a/tests/types_test.py +++ b/tests/types_test.py @@ -40,3 +40,10 @@ class TestTypes: expr2.set_validate_input(False) with pytest.raises(TypeError): expr2.evaluate({"a": a_set}) + + def test_fix_issu...
2025-09-05T05:22:29+00:00Z
evaluating 1 = true results in True (when should be False) due to bool being a subclass of int ``` >>> import jsonata >>> jsonata.Jsonata("true = 1").evaluate({}) True >>> ``` instead should be ``` >>> import jsonata >>> jsonata.Jsonata("true = 1").evaluate({}) False >>> ``` can confirm here that this is the wron...
Thanks @Hworden , I'll try to look at this soon @rayokota nw - I have the fix here https://github.com/rayokota/jsonata-python/pull/22
0.0.1-alpha
6e2d081b9f2e9c2f0e6c5f6f98d36080955441d5
["tests.types_test.TestTypes::test_fix_issue_21"]
["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...
["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" }
ushiboy__nmcli-49
ushiboy/nmcli
72bd0a70efadaadc580216aeea940044cc1467c0
diff --git a/nmcli/_device.py b/nmcli/_device.py index 5fafdef..8687a16 100644 --- a/nmcli/_device.py +++ b/nmcli/_device.py @@ -1,6 +1,7 @@ import re from typing import List, Tuple +from ._exception import ConnectionActivateFailedException from ._system import SystemCommand, SystemCommandInterface from .data.dev...
python
diff --git a/tests/test_device.py b/tests/test_device.py index 9d89b77..ae6946c 100644 --- a/tests/test_device.py +++ b/tests/test_device.py @@ -1,6 +1,8 @@ import os +import pytest from nmcli._device import DeviceControl +from nmcli._exception import ConnectionActivateFailedException from nmcli.data import Device...
2021-12-18T08:50:54+00:00Z
wifi_connect nmcli.device.wifi_connect("ssid", "password123") does not return anything what if somebody enters wrong password I'm having issue with this
@KrrishnaShah Thanks for the report! Hmm, it looks like `nmcli device wifi connect` doesn't exit with an error even if the connection fails due to some error in the password. The message `Error: Connection activation failed: (7) Secrets were required, but not provided.` is output to stdout, so I'll try to detect i...
0.0.1-alpha
a154f314fe65ec7d7f0875f0a1ea3058abb4adec
["tests.test_device::test_wifi_connect_when_connection_activate_failed"]
["tests.data.test_connection::test_to_json", "tests.data.test_connection::test_parse", "tests.data.test_connection::test_parse_when_failed", "tests.data.test_device::test_device_to_json", "tests.data.test_device::test_device_parse", "tests.data.test_device::test_device_parse_when_failed", "tests.data.test_device::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
movingpandas__movingpandas-296
movingpandas/movingpandas
9838247efed24d97af1d3983a3c8beecf3814e05
diff --git a/movingpandas/trajectory_stop_detector.py b/movingpandas/trajectory_stop_detector.py index fb55b00..db13bd1 100644 --- a/movingpandas/trajectory_stop_detector.py +++ b/movingpandas/trajectory_stop_detector.py @@ -97,9 +97,8 @@ class TrajectoryStopDetector: detected_stops.append( ...
python
diff --git a/movingpandas/tests/test_trajectory_stop_detector.py b/movingpandas/tests/test_trajectory_stop_detector.py index 7b321a0..8bf3fa4 100644 --- a/movingpandas/tests/test_trajectory_stop_detector.py +++ b/movingpandas/tests/test_trajectory_stop_detector.py @@ -147,6 +147,28 @@ class TestTrajectoryStopDetector: ...
2023-05-03T08:45:17+00:00Z
Stop Detector drops first records after stops When two consecutive stops are detected (two stop sequences with no instant in between), the first instant of the second stop is not included. think I have narrowed it down to line 100-102 in the trajectory_stop_detector.py code where we can see that the first record a...
I was affected by this bug too. Please can it be fixed! I am working on an alternative stop detector which I think might be faster, it should solve this too. I need a little time though, it's my grading season and I have a pile of stuff to get through. ### Discussed in https://github.com/movingpandas/movingpandas/dis...
0.0.1-alpha
effcf0869ae9fb31d2a9a0079aadba8f5a2e71d3
["movingpandas.tests.test_trajectory_stop_detector.TestTrajectoryStopDetector::test_stop_detector_multiple_stops_without_gap"]
["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" }
sgl-project__genai-bench-1
sgl-project/genai-bench
79ca3aa941bee38fe4282849b160dfaf55658368
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 351c46a..60c341c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -180,7 +180,7 @@ Each `User` corresponds to one API backend, such as [`OpenAIUser`](genai_bench/u class OpenAIUser(BaseUser): supported_tasks = { "text-to-text": "chat", - "i...
python
diff --git a/tests/cli/test_validation.py b/tests/cli/test_validation.py index 87abb70..29a7f0d 100644 --- a/tests/cli/test_validation.py +++ b/tests/cli/test_validation.py @@ -227,12 +227,12 @@ def test_validate_dataset_path_callback(caplog): param = None # Test with image task and dataset path - ctx.pa...
2025-06-27T20:19:05+00:00Z
Ambiguous task naming `image-to-text` In `USER_GUIDE.md`, the supported tasks are described like: https://github.com/sgl-project/genai-bench/blob/ad8ac0b1537a4edb5450f0780b94bc232df4efb9/USER_GUIDE.md?plain=1#L98-L108 However, in accordance with Huggingface's task description, `image-to-text` is not precisely 'Bench...
0.0.1-alpha
13f62b214f95d855df9366b7f8c0f8a0fea34573
["tests.cli.test_validation::test_validate_dataset_path_callback", "tests.data.loaders.test_factory::test_load_data_for_image_task", "tests.sampling.test_base::test_sampler_factory"]
["tests.analysis.test_experiment_loader::test_load_metrics_from_experiments", "tests.analysis.test_experiment_loader::test_load_one_experiment", "tests.analysis.test_experiment_loader::test_load_one_experiment_with_missing_concurrency_levels", "tests.analysis.test_experiment_loader::test_load_experiment_metadata", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nteract__testbook-8
nteract/testbook
fed9d96038078b5a8a7569302e53805637e8da42
diff --git a/testbook/client.py b/testbook/client.py index f9f0eb8..0b7c915 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -1,3 +1,4 @@ +from contextlib import contextmanager from inspect import getsource from textwrap import dedent from typing import Any, Dict, List, Optional, Union @@ -27,7 +28,7 @@ c...
python
diff --git a/testbook/tests/resources/patch.ipynb b/testbook/tests/resources/patch.ipynb new file mode 100644 index 0000000..3b6af59 --- /dev/null +++ b/testbook/tests/resources/patch.ipynb @@ -0,0 +1,74 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [],...
2020-07-20T00:53:23+00:00Z
Injected mocks This will be trickier, but injected python mocks into kernels would be a really helpful wrapper. Likely this would only be supported for python kernels at first.
With #13, any code snippet can be injected into the kernel. So we could do something like, ```python code_block = ''' from unittest.mock import patch @patch('os.listdir', return_value='mocked os.listdir') def test_bar(mock_os): assert bar() == 'mocked os.l...
0.0.1-alpha
94058190cd31891b8e9464264c8577bd77bf932d
["testbook.tests.test_patch.TestPatch::test_patch_basic[os.listdir-listdir]", "testbook.tests.test_patch.TestPatch::test_patch_basic[os.popen-get_branch]", "testbook.tests.test_patch.TestPatch::test_patch_raises_error[os.listdir-listdir]", "testbook.tests.test_patch.TestPatch::test_patch_raises_error[os.popen-get_branc...
["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" }
mondeja__mkdocs-include-markdown-plugin-194
mondeja/mkdocs-include-markdown-plugin
ef8888012115e5b982b142b112a2d92b1b9894ee
diff --git a/README.md b/README.md index 2719bdd..726c1cb 100644 --- a/README.md +++ b/README.md @@ -168,10 +168,10 @@ content to include. are rewritten to work correctly in their new location. Possible values are `true` and `false`. - <a name="include-markdown_comments" href="#include-markdown_comments">#</a> -...
python
diff --git a/tests/test_integration/test_cache_integration.py b/tests/test_integration/test_cache_integration.py index ef599aa..527c133 100644 --- a/tests/test_integration/test_cache_integration.py +++ b/tests/test_integration/test_cache_integration.py @@ -64,7 +64,6 @@ def test_page_included_by_url_is_cached( ...
2024-10-22T00:31:18+00:00Z
Turn off comments by default There are some cases when including with `comments` enabled breaks the content. At least: - #192 Might be worth to change the default value to `false`. I think that so much people doesn't even know that there are comments added by default and are not worth if they are breaking some i...
0.0.1-alpha
7daca941478b187565b0c2724acd15f70c4112b3
["tests.test_integration.test_cache_integration::test_page_included_by_url_is_cached[directive=include-markdown-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:...
["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" }
python-lsp__python-lsp-ruff-2
python-lsp/python-lsp-ruff
421aa491d3e755a1c5b5649cfb7769a792e83a20
diff --git a/pylsp_ruff/ruff_lint.py b/pylsp_ruff/ruff_lint.py index 7d515cd..3f826a9 100644 --- a/pylsp_ruff/ruff_lint.py +++ b/pylsp_ruff/ruff_lint.py @@ -1,6 +1,5 @@ import json import logging -import sys from pathlib import PurePath from subprocess import PIPE, Popen, SubprocessError @@ -8,15 +7,6 @@ from pyl...
python
diff --git a/tests/test_ruff_lint.py b/tests/test_ruff_lint.py index 74a0ed1..51f9979 100644 --- a/tests/test_ruff_lint.py +++ b/tests/test_ruff_lint.py @@ -116,25 +116,34 @@ def get_ruff_cfg_settings(workspace, doc, config_str): return ruff_lint.load_config(workspace, doc) -def test_ruff_multiline(workspace):...
2022-12-11T21:02:07+00:00Z
Avoiding passing `pyproject.toml` options as command-line arguments See discussion in #1.
\cc @jhossbach > I think it should be fine to either: (1) let Ruff handle the pyproject.toml, and only pass CLI arguments that come directly from the LSP config (which could include config, allowing users to override); or (2) keep the current logic of letting the LSP find the pyproject.toml, pass it in as --config if t...
0.0.1-alpha
c8dae9dec23b6072303036e5c6632849bbdce67a
["tests.test_ruff_lint::test_ruff_config"]
["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"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mozilla__bugbot-2114
mozilla/bugbot
46a11c848622a25121962a92d013bf8510934ec9
diff --git a/bugbot/user_activity.py b/bugbot/user_activity.py index 7642b80..185fec8 100644 --- a/bugbot/user_activity.py +++ b/bugbot/user_activity.py @@ -40,6 +40,7 @@ class UserActivity: include_fields: list = None, phab: PhabricatorAPI = None, people: People = None, + reference_da...
python
diff --git a/tests/test_user_activity.py b/tests/test_user_activity.py index 69cea16..9cfcb83 100644 --- a/tests/test_user_activity.py +++ b/tests/test_user_activity.py @@ -14,6 +14,8 @@ from bugbot.user_activity import UserActivity, UserStatus class UserActivityTest(MockTestCase): """Test the UserActivity class"...
2023-06-22T11:33:02+00:00Z
Failing tests in `UserActivityTest` due to outdated activity dates in the mockup data The user activity tests depend on mockup data where the users' last activity dates are fixed. However, the reference date to determine if a user is active or not is dynamic (i.e., "today", meaning the day one of the test runs). Thus,...
0.0.1-alpha
ddd76db0ad674397368dc13abc0cc25612a9aad3
["tests.test_user_activity.UserActivityTest::test_check_users", "tests.test_user_activity.UserActivityTest::test_check_users_ignore_bots", "tests.test_user_activity.UserActivityTest::test_check_users_keep_active", "tests.test_user_activity.UserActivityTest::test_get_bz_users_with_status"]
["tests.test_bzcleaner.TestBZClearner::test_description", "tests.test_bzcleaner.TestBZClearner::test_email_subject", "tests.test_bzcleaner.TestBZClearner::test_has_individual_autofix", "tests.test_bzcleaner.TestBZClearner::test_ignore_date", "tests.test_bzcleaner.TestBZClearner::test_name", "tests.test_bzcleaner.TestBZ...
["tests.test_db.TestDB::test_bugchange", "tests.test_db.TestDB::test_email"]
{ "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" }
wbond__asn1crypto-260
wbond/asn1crypto
8609892a88f571bc10110603c173832cd100cb44
diff --git a/asn1crypto/x509.py b/asn1crypto/x509.py index 8cfb2c7..a67ab1a 100644 --- a/asn1crypto/x509.py +++ b/asn1crypto/x509.py @@ -1015,15 +1015,27 @@ class Name(Choice): for attribute_name, attribute_value in name_dict.items(): attribute_name = NameType.map(attribute_name) - if...
python
diff --git a/tests/test_x509.py b/tests/test_x509.py index ece9252..c177fe6 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -466,6 +466,25 @@ class X509Tests(unittest.TestCase): self.assertIsInstance(printable_name.chosen[2][0]['value'].chosen, core.PrintableString) self.assertEqual('commo...
2023-11-03T12:09:52+00:00Z
Issue report: x509.Name fails to process the TCG OIDs (2.23.133.2.*) Hi, I meet an issue when creating the properties of TCG OIDs by using x509.Name. The sample code: x509.Name.build( { "tpm_manufacturer" : "some str", "tpm_model" : "some str", "tpm_version" : "some str", } ) The error ...
Hi, I think (really not sure!) the problem is here: https://github.com/wbond/asn1crypto/blob/master/asn1crypto/x509.py#L1028-L1031 ```python else: value = DirectoryString( name=encoding_name, value=encoding_class(attribute_value) ) ``` The build...
0.0.1-alpha
1a7a5bacfbea25dddf9d6f10dc11c8b7a327db10
["tests.test_x509.X509Tests::test_build_name_type_by_oid"]
["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" }
macbre__sql-metadata-543
macbre/sql-metadata
cc9017d944e9a4da48dbe1685acbf99a7024b814
diff --git a/sql_metadata/parser.py b/sql_metadata/parser.py index 5c61dca..8e61fab 100644 --- a/sql_metadata/parser.py +++ b/sql_metadata/parser.py @@ -122,7 +122,11 @@ class Parser: # pylint: disable=R0902 switch = tokens[index].normalized self._query_type = SUPPORTED_QUERY_TYPES.get(switch, "U...
python
diff --git a/test/test_query_type.py b/test/test_query_type.py index 8e1a92e..b9e3486 100644 --- a/test/test_query_type.py +++ b/test/test_query_type.py @@ -48,10 +48,10 @@ def test_drop_table_query(): assert "DROP TABLE" == Parser(query.format(comment)).query_type -def test_unsupported_query(): +def t...
2025-05-04T15:21:22+00:00Z
query_type method logs the SQL Query if unsupported. The `query_type` method checks if it is a supported type, if not, it raises an error and logs the actual raw query. This might be undesirable, for it may contain PIIs on the query itself. ``` python if tokens[index].normalized == "CREATE": switch = self._get_...
0.0.1-alpha
8df3ffceb18cea4b29a7195263f132cda4ca34a7
["test.test_query_type::test_unsupported_query"]
["test.test_aliases::test_get_query_table_aliases", "test.test_aliases::test_select_aliases", "test.test_aliases::test_tables_aliases_are_resolved", "test.test_caching::test_cleared_cache", "test.test_column_aliases::test_column_aliases_with_subquery", "test.test_column_aliases::test_column_aliases_with_multiple_functi...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
robbievanleeuwen__section-properties-331
robbievanleeuwen/section-properties
41851f55e6ad6cf4d835ae25df5d50e4db4ac064
diff --git a/src/sectionproperties/pre/geometry.py b/src/sectionproperties/pre/geometry.py index e7e75bd..49c06c3 100644 --- a/src/sectionproperties/pre/geometry.py +++ b/src/sectionproperties/pre/geometry.py @@ -14,11 +14,14 @@ from shapely import ( GeometryCollection, LinearRing, LineString, + Multi...
python
diff --git a/tests/geometry/test_offset.py b/tests/geometry/test_offset.py index bb8db71..bb266cc 100644 --- a/tests/geometry/test_offset.py +++ b/tests/geometry/test_offset.py @@ -9,7 +9,7 @@ from shapely import Polygon import sectionproperties.pre.library.primitive_sections as sections import sectionproperties.pre....
2024-07-19T04:16:54+00:00Z
`CompoundGeometry.offset_perimeter()` with positive `amount` creates overlapping geometry See below example: ```python from sectionproperties.pre.geometry import check_geometry_overlaps from sectionproperties.pre.library import rectangular_section from sectionproperties.analysis import Section # create two ...
Not quite sure how to fix this yet. It's a tricky one.
0.0.1-alpha
59ec96acf2f61b12f660c7c4b09cbe4a965f7e8e
["tests.geometry.test_offset::test_compound_rectangular_offset"]
["tests.analysis.test_plastic::test_rectangle", "tests.analysis.test_plastic::test_plastic_centroid", "tests.analysis.test_stress::test_stress_runtime_errors", "tests.analysis.test_stress::test_rectangle", "tests.analysis.test_stress::test_rotated_rectangle", "tests.benchmarks.test_benchmark_analysis::test_create_secti...
["tests.geometry.test_geometry::test_geometry_from_dxf", "tests.geometry.test_geometry::test_geometry_from_3dm_file_simple", "tests.geometry.test_geometry::test_geometry_from_3dm_file_complex", "tests.geometry.test_geometry::test_geometry_from_3dm_file_compound", "tests.geometry.test_geometry::test_geometry_from_3dm_en...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wjohnson__pyapacheatlas-85
wjohnson/pyapacheatlas
3097aac3f3fd503b8639bf86ce534eda15230bf4
diff --git a/pyapacheatlas/core/entity.py b/pyapacheatlas/core/entity.py index c32147b..1974c81 100644 --- a/pyapacheatlas/core/entity.py +++ b/pyapacheatlas/core/entity.py @@ -23,6 +23,10 @@ class AtlasEntity(): atlas entity may require. :param dict, optional classifications: Classifications that may ...
python
diff --git a/tests/unit/readers/test_reader.py b/tests/unit/readers/test_reader.py index 6425816..ba058e9 100644 --- a/tests/unit/readers/test_reader.py +++ b/tests/unit/readers/test_reader.py @@ -178,3 +178,35 @@ def test_entityDefs_warns_with_extra_params(): # Assert that a UserWarning occurs when adding an extr...
2021-03-07T05:15:18+00:00Z
Contacts and Owner: Phase1 Support Object ID in Excel Sheet Allow experts and owners to be imported by putting the object ID's into the Excel sheet. This is enough to get the ball rolling. It's the easiest solution and it gives a path for users who are desperate for a solution. It also separates the basic API and i...
0.0.1-alpha
2609ac898ac7eb3ae14ab94cbdb66d31dbbde9ac
["tests.unit.readers.test_reader::test_bulk_entity_with_experts_owners"]
["tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_list", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_dict", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_atlas_entity", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_mixed_atlas_en...
["tests.integration.EntityREST.test_classify_entities::test_classify_entities", "tests.integration.EntityREST.test_entity_upload::test_set_relationship_different_ways", "tests.integration.LineageREST.test_lineage::test_lineage_atlas", "tests.integration.LineageREST.test_lineage::test_lineage_next_purview", "tests.integ...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
openai__openai-agents-python-92
openai/openai-agents-python
e86e5e2e6d364fcb2a39d43863743096aecd2e8b
diff --git a/src/agents/models/openai_chatcompletions.py b/src/agents/models/openai_chatcompletions.py index a7340d0..c20f5bb 100644 --- a/src/agents/models/openai_chatcompletions.py +++ b/src/agents/models/openai_chatcompletions.py @@ -808,6 +808,13 @@ class _Converter: "content": cls.extract_...
python
diff --git a/tests/test_openai_chatcompletions_converter.py b/tests/test_openai_chatcompletions_converter.py index 8cf07d7..73acb8a 100644 --- a/tests/test_openai_chatcompletions_converter.py +++ b/tests/test_openai_chatcompletions_converter.py @@ -393,3 +393,38 @@ def test_unknown_object_errors(): with pytest.rai...
2025-03-12T19:48:35+00:00Z
Bug: Runner.run_sync and Converter.items_to_messages Rejects 'assistant' Role in Message Conversion Input ### Please read this first - **Have you read the docs?**[Agents SDK docs](https://openai.github.io/openai-agents-python/) - Yes - **Have you searched for related issues?** Others may have faced similar issues. - ...
Thank you for fixing via #93!
0.0.1-alpha
96913b847f100608c02c47e263bc48a9c6e784f2
["tests.test_openai_chatcompletions_converter::test_assistant_messages_in_history"]
["tests.test_agent_config::test_system_instructions", "tests.test_agent_config::test_handoff_with_agents", "tests.test_agent_config::test_handoff_with_handoff_obj", "tests.test_agent_config::test_handoff_with_handoff_obj_and_agent", "tests.test_agent_config::test_agent_cloning", "tests.test_agent_config::test_agent_fin...
["tests.test_agent_hooks::test_non_streamed_agent_hooks", "tests.test_agent_hooks::test_streamed_agent_hooks", "tests.test_agent_hooks::test_structed_output_non_streamed_agent_hooks", "tests.test_agent_hooks::test_structed_output_streamed_agent_hooks", "tests.test_agent_hooks::test_base_agent_hooks_dont_crash", "tests....
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
netbox-community__pynetbox-212
netbox-community/pynetbox
479f0dbe309fe037dcbf4ebee46d0a9241aeebc8
diff --git a/pynetbox/core/query.py b/pynetbox/core/query.py index 335ddd7..6c70994 100644 --- a/pynetbox/core/query.py +++ b/pynetbox/core/query.py @@ -140,6 +140,7 @@ class Request(object): private_key=None, session_key=None, ssl_verify=True, + url=None, ): """ ...
python
diff --git a/tests/unit/test_response.py b/tests/unit/test_response.py index eea9c5d..a50d372 100644 --- a/tests/unit/test_response.py +++ b/tests/unit/test_response.py @@ -139,3 +139,21 @@ class RecordTestCase(unittest.TestCase): test2 = Record({}, None, endpoint2) test2.id = 1 self.assertEq...
2020-01-12T06:12:50+00:00Z
Accessing "records" via attributes of related records does not update Endpoint If I .get() an item, e.g. an interface: ``` interface = client.dcim.interfaces.get(mac_address=mac) ``` and then access the device the interface belongs to via the interface's `device` attribute: ``` device = interface.device ``` an...
0.0.1-alpha
a0a093bf8d19930973ead5ae6d683db479d508d9
["tests.unit.test_response.RecordTestCase::test_nested_write"]
["tests.test_dcim.RegionTestCase::test_compare", "tests.test_dcim.RegionTestCase::test_delete", "tests.test_dcim.RegionTestCase::test_filter", "tests.test_dcim.RegionTestCase::test_get", "tests.test_dcim.RegionTestCase::test_get_all", "tests.test_dcim.RegionTestCase::test_serialize", "tests.test_dcim.ConsolePortTemplat...
[]
{ "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-factoryboy-87
pytest-dev/pytest-factoryboy
8b7c340c9eaba185573af8779c9e4deb67a5abb5
diff --git a/CHANGES.rst b/CHANGES.rst index 8287eee..2560c88 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,8 @@ Changelog Unreleased ---------- +- Add support for ``factory.PostGenerationMethodCall`` `#103 <https://github.com/pytest-dev/pytest-factoryboy/pull/103>`_ `#87 <https://github.com/pytest-dev/pyte...
python
diff --git a/tests/test_postgen_dependencies.py b/tests/test_postgen_dependencies.py index 755b64e..9c8472b 100644 --- a/tests/test_postgen_dependencies.py +++ b/tests/test_postgen_dependencies.py @@ -6,6 +6,7 @@ from typing import TYPE_CHECKING import factory import pytest +from factory.declarations import NotProv...
2022-05-13T18:26:41+00:00Z
TypeError: can only concatenate str (not "PostGenerationMethodCall") to str When using factory.PostGenerationMethodCall on a factory I get the type error in the title. The factory I'm working with is a django user model. Simple example: ```python class UserFactory(factory.django.DjangoModelFactory): email ...
0.0.1-alpha
8df731206ed706a0e55f11b2a46c516abbe0011b
["tests.test_postgen_dependencies::test_postgenerationmethodcall_getfixturevalue"]
["tests.test_factory_fixtures::test_factory", "tests.test_factory_fixtures::test_attr", "tests.test_factory_fixtures::test_post_generation[admin]", "tests.test_factory_fixtures.TestParametrizeAlternativeNameFixture::test_second_author[Mr. Hyde]", "tests.test_factory_fixtures.TestPartialSpecialization::test_partial", "t...
["tests.test_circular::test_circular", "tests.test_factory_fixtures::test_model", "tests.test_factory_fixtures::test_parametrized[2000-Bill Gates-1.0-PyTest for Dummies]", "tests.test_factory_fixtures.TestLazyFixture::test_lazy_fixture_name[book__author0]", "tests.test_factory_fixtures.TestLazyFixture::test_lazy_fixtur...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-564
more-itertools/more-itertools
aeae34f87d1b9ad51c10b87a73805a2a5386b0ec
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b37aad4..387a2a4 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9.0, 3.1...
python
diff --git a/tests/test_recipes.py b/tests/test_recipes.py index b6ee67a..be40995 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -709,3 +709,57 @@ class Convolvetests(TestCase): actual = mi.take(5, mi.convolve(signal, kernel)) expected = [0, 1, 1, 1, 1] self.assertEqual(act...
2021-10-09T13:06:56+00:00Z
New recipe: sliding_window This issue is to add the new `sliding_window` function from the 3.10 [itertools docs](https://github.com/python/cpython/blame/3.10/Doc/library/itertools.rst#L828-L836). Needed: * The implementation from the recipe * Type stub * Tests
0.0.1-alpha
c57021716aecf0f8da2e452349fcaa269a203177
["tests.test_recipes.BeforeAndAfterTests::test_empty", "tests.test_recipes.BeforeAndAfterTests::test_never_false", "tests.test_recipes.BeforeAndAfterTests::test_never_true", "tests.test_recipes.BeforeAndAfterTests::test_some_true", "tests.test_recipes.TriplewiseTests::test_basic", "tests.test_recipes.SlidingWindowTests...
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mapping-commons__sssom-py-300
mapping-commons/sssom-py
5046de46b7ef7daada921f9bed0ffb22116c0134
diff --git a/sssom/cli.py b/sssom/cli.py index 0f9946d..8155b49 100644 --- a/sssom/cli.py +++ b/sssom/cli.py @@ -168,7 +168,7 @@ def convert(input: str, output: TextIO, output_format: str): ) @click.option( "-E", - "--embedded-mode", + "--embedded-mode / --non-embedded-mode", default=True, is_fla...
python
diff --git a/tests/data/basic.tsv b/tests/data/basic.tsv index cca3876..e5ba171 100644 --- a/tests/data/basic.tsv +++ b/tests/data/basic.tsv @@ -154,7 +154,7 @@ z:region REGION owl:equivalentClass y:region regions semapv:ManualMappingCurati z:tissue TISSUE owl:equivalentClass x:tissue tissue semapv:ManualMappingCura...
2022-08-19T14:08:58+00:00Z
Reconciliation rule: using `predicate_id` Precedence rules provided confidence is equal. - owl:equivalentClass - owl:equivalentProperty - rdfs:subClassOf - rdfs:subPropertyOf - owl:sameAs - skos:exactMatch - skos:closeMatch - skos:broadMatch - skos:narrowMatch - oboInOwl:hasDbXref - skos:relate...
0.0.1-alpha
5490672f3bb8853f0a9a6d01a223a7f476a37f1a
["tests.test_collapse.TestCollapse::test_ptable"]
["tests.test_annotate.TestSort::test_annotate_fail", "tests.test_collapse.TestCollapse::test_collapse", "tests.test_collapse.TestCollapse::test_diff", "tests.test_collapse.TestCollapse::test_filter", "tests.test_collapse.TestCollapse::test_groupings", "tests.test_collapse.TestCollapse::test_row_count", "tests.test_cont...
["tests.test_annotate.TestSort::test_annotate", "tests.test_annotate.TestSort::test_annotate_multivalued", "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.SSSOMReadWr...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__lsprotocol-218
microsoft/lsprotocol
3b6c082c7b99b780b9934647a6f1b28605ccd556
diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index d529dba..99a8fb7 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -86,6 +86,10 @@ jobs: run: python -m pip install -r ./packages/python/requirements.txt shell: bash + - name: In...
python
diff --git a/tests/python/requests/test_inlay_hint_resolve_request.py b/tests/python/requests/test_inlay_hint_resolve_request.py new file mode 100644 index 0000000..6dc9f42 --- /dev/null +++ b/tests/python/requests/test_inlay_hint_resolve_request.py @@ -0,0 +1,86 @@ +# Copyright (c) Microsoft Corporation. All rights re...
2023-06-21T17:28:38+00:00Z
Missing structure hook for `InlayHint` ```python Unable to deserialize message + Exception Group Traceback (most recent call last): | File "/var/home/alex/Projects/pygls/pygls/protocol.py", line 405, in _deserialize_message | return self._converter.structure(data, request_type) | ^^^^^^^^...
0.0.1-alpha
5c4edc5591da16f9200558e78c5b50ec01a519ad
["tests.python.requests.test_inlay_hint_resolve_request::test_inlay_hint_resolve_request_serialization[0]", "tests.python.requests.test_inlay_hint_resolve_request::test_inlay_hint_resolve_request_serialization[1]"]
["tests.generator.test_model::test_model_loading", "tests.generator.test_model::test_model_loading_failure", "tests.generator.test_schema::test_validate_with_schema", "tests.python.test_cattrs_special_cases::test_simple", "tests.python.test_cattrs_special_cases::test_numeric_validation", "tests.python.test_cattrs_speci...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__nafas-122
sepandhaghighi/nafas
83ae3f2e8cdda8f2d09826f2d182198210ed7510
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7748458..bda541a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added - Calming3 program +- Box program ### Changed - `README.md` modified - String tem...
python
diff --git a/test/test.py b/test/test.py index 1387186..c8ae886 100644 --- a/test/test.py +++ b/test/test.py @@ -85,6 +85,7 @@ True 13- Decision-Making (~ 2 minutes) 14- Balancing (~ 2 minutes) 15- Energizing (~ 2 minutes) +16- Box (~ 2 minutes) - Choose a level: <BLANKLINE> 1- Beginner
2025-03-08T08:01:07+00:00Z
[Feature]: Box breathing ### Describe the feature you want to add Add **Box breathing** technique. This technique goes by other names, too: 1. 4×4 breathing 2. 4-4-4-4 breathing 3. Equal breathing 4. Four-square breathing 5. Square breathing ### Describe your proposed solution _No response_ ### D...
0.0.1-alpha
27a82184f0b266a3b2d7cb39354e6a064a48d1e7
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1189
octodns/octodns
1562f0e80f34aa0d2b9baaa5a7d74d06dfba158b
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de9bee..cb9e453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.?.? - 2024-??-?? - ??? + +* MetaProcessor.include_extra to add support for arbitrary extra values to be + set on the meta record. + ## v1.9.1 - 2024-06-21 - What's in a name * Add `na...
python
diff --git a/tests/test_octodns_processor_meta.py b/tests/test_octodns_processor_meta.py index 1bbc9fd..685f34b 100644 --- a/tests/test_octodns_processor_meta.py +++ b/tests/test_octodns_processor_meta.py @@ -116,12 +116,26 @@ class TestMetaProcessor(TestCase): self.assertFalse(proc.time) self.assertF...
2024-07-03T13:34:22+00:00Z
Support adding additional fields to MetaProcessor Add a configuration block to MetaProcessor, something like this: ```yaml processors: meta: class: octodns.processor.meta.MetaProcessor record_name: meta extra: ci: env/CI_JOB_URL team: marketing ``` That way additional informatio...
0.0.1-alpha
7edb21803978fde89a9851dc98cd75e88c60c5fc
["tests.test_octodns_processor_meta.TestMetaProcessor::test_extra", "tests.test_octodns_processor_meta.TestMetaProcessor::test_uuid"]
["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" }
nalepae__pandarallel-178
nalepae/pandarallel
62658dfc876636797756a80d3873b87740a3f039
diff --git a/pandarallel/core.py b/pandarallel/core.py index 8eaaf12..b2db893 100644 --- a/pandarallel/core.py +++ b/pandarallel/core.py @@ -292,7 +292,7 @@ def parallelize_with_memory_file_system( ] pool = CONTEXT.Pool(nb_workers) - pool.starmap_async(wrapped_work_function, work_...
python
diff --git a/tests/test_pandarallel.py b/tests/test_pandarallel.py index a9cce19..14363d5 100644 --- a/tests/test_pandarallel.py +++ b/tests/test_pandarallel.py @@ -21,6 +21,11 @@ def use_memory_fs(request): return request.param +@pytest.fixture(params=(RuntimeError, AttributeError, ZeroDivisionError)) +def ex...
2022-11-25T15:06:33+00:00Z
Exception in function passed to `parallel_apply` results in obscure `EOFError` ## General - **Operating System**: Arch Linux (Linux kernel version 5.16.16) - **Python version**: 3.10.4 - **Pandas version**: 1.4.1 - **Pandarallel version**: 1.6.1 ## Acknowledgement - My issue is **NOT** present when using `...
Any resolution for this? Getting the same error > Any resolution for this? Getting the same error me too! Switching to `pandarallel.initialize(use_memory_fs=False)` is a suitable workaround for me.
0.0.1-alpha
157425e2bcdfa1edfc2c9045b7365a212a415d34
["tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-False-None]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-True-None]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[AttributeError-False-None]", "tests.test_pandarallel::test_dataframe_apply_in...
["tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-False-False]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-True-False]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[AttributeError-False-False]", "tests.test_pandarallel::test_dataframe_apply...
["tests.test_pandarallel::test_dataframe_groupby_apply[1000-False-None]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-False-False]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-True-None]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-True-False]", "tests.test_pandarallel::te...
{ "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" }
prometheus__client_python-1062
prometheus/client_python
d7c9cd88c7f50097cd86869974301df7615bc9c0
diff --git a/prometheus_client/metrics_core.py b/prometheus_client/metrics_core.py index 19166e1..b09cea0 100644 --- a/prometheus_client/metrics_core.py +++ b/prometheus_client/metrics_core.py @@ -116,6 +116,7 @@ class CounterMetricFamily(Metric): labels: Optional[Sequence[str]] = None, ...
python
diff --git a/tests/test_core.py b/tests/test_core.py index f80fb88..056d8e5 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -724,6 +724,21 @@ class TestMetricFamilies(unittest.TestCase): self.custom_collector(cmf) self.assertEqual(2, self.registry.get_sample_value('c_total', {'a': 'b', 'c_...
2024-10-14T14:56:18+00:00Z
CounterMetricFamily should support exemplars Exemplars are specified as being for Histogram and Counter types, and supported by this client for Histogram and Counter types. However for custom collectors HistogramMetricFamily supports exemplars, but CounterMetricFamily does not. Support should be added to Counter...
Workaround until the MR is released. ```python from typing import Optional, Union, Sequence, Timestamp from prometheus_client.core import CounterMetricFamily, Exemplar, Sample class MyCounterMetricFamily(CounterMetricFamily): """ Standard class doesn't support exemplars, so we hack it in. See...
0.0.1-alpha
37cd8735709249c671a4f74770c29f790da67fe7
["tests.test_core.TestMetricFamilies::test_counter_exemplars_add", "tests.test_core.TestMetricFamilies::test_counter_exemplars_oneline"]
["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" }
openfga__python-sdk-18
openfga/python-sdk
f337b949987af10128db549646e2e0b47be139a1
diff --git a/openfga_sdk/api/open_fga_api.py b/openfga_sdk/api/open_fga_api.py index f1af609..2b88230 100644 --- a/openfga_sdk/api/open_fga_api.py +++ b/openfga_sdk/api/open_fga_api.py @@ -10,7 +10,6 @@ NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. """ - ...
python
diff --git a/test/test_credentials.py b/test/test_credentials.py index 933c170..57467fd 100644 --- a/test/test_credentials.py +++ b/test/test_credentials.py @@ -98,7 +98,7 @@ class TestCredentials(IsolatedAsyncioTestCase): configuration=CredentialConfiguration( client_id="myclientid", ...
2024-04-01T19:19:14+00:00Z
Better handling of errors during Client Credentials flow Related SDK Generator Issue: https://github.com/openfga/sdk-generator/issues/112
0.0.1-alpha
09bce8e8a6d0c2d954349b7604c64d5beeab9118
["test.test_oauth2_sync.TestOAuth2Client::test_get_authentication_retries_5xx_responses", "test.test_oauth2.TestOAuth2Client::test_get_authentication_retries_5xx_responses"]
["test.test_open_fga_api_sync.TestOpenFgaApiSync::test_400_error", "test.test_open_fga_api_sync.TestOpenFgaApiSync::test_404_error", "test.test_open_fga_api_sync.TestOpenFgaApiSync::test_429_error_first_error", "test.test_open_fga_api_sync.TestOpenFgaApiSync::test_429_error_no_retry", "test.test_open_fga_api_sync.TestO...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
mercedes-benz__odxtools-12
mercedes-benz/odxtools
b66f8fb02dfc7c015d9eb69b6c1ced1679fc327f
diff --git a/odxtools/compumethods/readcompumethod.py b/odxtools/compumethods/readcompumethod.py index 12b3133..85f82be 100644 --- a/odxtools/compumethods/readcompumethod.py +++ b/odxtools/compumethods/readcompumethod.py @@ -168,7 +168,16 @@ def read_compu_method_from_odx(et_element, internal_type: DataType, physical_t...
python
diff --git a/tests/test_compu_methods.py b/tests/test_compu_methods.py index d683154..4bae872 100644 --- a/tests/test_compu_methods.py +++ b/tests/test_compu_methods.py @@ -1,13 +1,22 @@ # SPDX-License-Identifier: MIT # Copyright (c) 2022 MBition GmbH +import inspect +import os import unittest +from xml.etree impo...
2022-06-08T14:15:05+00:00Z
Implement compu method category `TAB-INTP` Currently, only the categories `IDENTICAL`, `TEXTTABLE`, `LINEAR` and `SCALE-LINEAR` are supported. Implement the compu mthod category `TAB-INTP`, i.e., * [ ] define a datastructure (similar to the existing ones in `compumethods`) * [ ] read it from odx * [ ] write the...
0.0.1-alpha
a0f3f910c6c1962dd37197fefc28bcb63fbd50fe
["tests.test_compu_methods.TestTabIntpCompuMethod::test_read_odx", "tests.test_compu_methods.TestTabIntpCompuMethod::test_tabintp_convert_type_int_float", "tests.test_compu_methods.TestTabIntpCompuMethod::test_write_odx"]
["tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_limits", "tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_physical_limits", "tests.test_compu_methods.TestLinearCompuMethod::test_linear_compu_method_type_float_int", "tests.test_compu_methods.TestLinearCompuMethod::test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rsagroup__rsatoolbox-199
rsagroup/rsatoolbox
e0c528d1c5fb7f7eca165aba106b3d2fa6fa661c
diff --git a/rsatoolbox/rdm/transform.py b/rsatoolbox/rdm/transform.py index a0999ba..caa1225 100644 --- a/rsatoolbox/rdm/transform.py +++ b/rsatoolbox/rdm/transform.py @@ -30,8 +30,11 @@ def rank_transform(rdms, method='average'): dissimilarities = rdms.get_vectors() dissimilarities = np.array([rankdata(diss...
python
diff --git a/tests/test_rdm.py b/tests/test_rdm.py index efdf3ad..e92c5c3 100644 --- a/tests/test_rdm.py +++ b/tests/test_rdm.py @@ -244,6 +244,7 @@ class TestRDM(unittest.TestCase): rank_rdm = rank_transform(rdms) self.assertEqual(rank_rdm.n_rdm, rdms.n_rdm) self.assertEqual(rank_rdm.n_cond,...
2021-12-08T23:11:02+00:00Z
rank transform does not update dissimilarity measure Perhaps it should be adapted, for example _euclidean_ becomes _euclidean (ranks)_ https://github.com/rsagroup/rsatoolbox/blob/11d394852695851d3d1dabb059adfc277ad996e6/rsatoolbox/rdm/transform.py#L34
0.0.1-alpha
f839c481f33e89ffd54a7739bd9ff97599fa2f95
["tests.test_rdm.TestRDM::test_rank_transform"]
["tests.test_calc_rdm.TestCalcRDM::test_calc_correlation", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_no_descriptors", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise", "tests.test_calc_rdm.TestCalcRDM::test_calc_crossnobis_noise_list", "...
["tests.test_data.TestSave::test_save_load", "tests.test_data.TestOESplit::test_odd_even_split_nested", "tests.test_demo.TestDemos::test_temporal_rsa", "tests.test_inference.TestEvaluation::test_bootstrap_testset", "tests.test_inference.TestEvaluation::test_bootstrap_testset_pattern", "tests.test_inference.TestEvaluati...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meerk40t__svgelements-217
meerk40t/svgelements
cd8cb41734a9e4c4930148f1d0f0919320f46650
diff --git a/svgelements/svgelements.py b/svgelements/svgelements.py index ee4bde2..18a90b7 100644 --- a/svgelements/svgelements.py +++ b/svgelements/svgelements.py @@ -8870,6 +8870,7 @@ class SVG(Group): transform=None, context=None, parse_display_none=False, + on_error="ignore" ...
python
diff --git a/test/test_parsing.py b/test/test_parsing.py index be66ef8..94018ed 100644 --- a/test/test_parsing.py +++ b/test/test_parsing.py @@ -936,3 +936,38 @@ class TestParseDefUse(unittest.TestCase): line = list(m.elements(conditional=lambda el: isinstance(el, Text)))[0] self.assertIsInstance(line...
2023-04-17T15:28:11+00:00Z
SVG.parse() may violate SVG 2.0 9.4.5 https://www.w3.org/TR/SVG2/paths.html#PathDataErrorHandling Specifically, * The general rule for error handling in path data is that the SVG user agent shall render a ‘[path](https://www.w3.org/TR/SVG2/paths.html#PathElement)’ element up to (but not including) the path comman...
0.0.1-alpha
92f227321d208cd7463cf75c51a590aa62f6d305
["test.test_parsing.TestParseDefUse::test_parse_error_issue_217_ignore", "test.test_parsing.TestParseDefUse::test_parse_error_issue_217_raises", "test.test_parsing.TestParseDefUse::test_parse_error_issue_217_stop"]
["test.test_angle.TestElementAngle::test_angle_equal", "test.test_angle.TestElementAngle::test_angle_init", "test.test_angle.TestElementAngle::test_orth", "test.test_approximate.TestElementApproximation::test_cubic_bezier_arc_approximation", "test.test_arc_length.TestElementArcLength::test_arc_angle_point", "test.test_...
["test.test_arc_length.TestElementArcLength::test_arc_len_circle_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_flat_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_r0_exact", "test.test_arc_length.TestElementArcLength::test_arc_len_random_int", "test.test_arc_length.TestElementArcLen...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pytest-dev__pytest-bdd-542
pytest-dev/pytest-bdd
96cb467d983fc5d8a8d5ef2fae6792efbbfdf8de
diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 91f6be4..0000000 --- a/.coveragerc +++ /dev/null @@ -1,5 +0,0 @@ -[run] -branch = true -include = - pytest_bdd/* - tests/* diff --git a/CHANGES.rst b/CHANGES.rst index 974b218..6bedb51 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,8 +4,10 @@...
python
diff --git a/tests/args/test_common.py b/tests/args/test_common.py index 5709af7..5500ff2 100644 --- a/tests/args/test_common.py +++ b/tests/args/test_common.py @@ -78,9 +78,10 @@ def test_string_steps_dont_take_precedence(testdir): from pytest_bdd.utils import dump_obj - @given(parsers.re(r"^I have...
2022-07-27T19:30:49+00:00Z
Reusable step functions regression: Specific step doesn't override generic one anymore After #534, with this `conftest.py`: ```python import pytest_bdd as bdd import pytest @pytest.fixture def value(): return [] @bdd.when(bdd.parsers.parse("I have a {thing} thing")) def generic(thing, value): va...
Thank you so much for testing pre-release versions! This is extremely helpful. I will look into it. I'm in early debugging of this, but it seems to be related to lines https://github.com/pytest-dev/pytest-bdd/blob/c0357d534846feaa240a603e2e83efaeb67314fb/pytest_bdd/scenario.py#L41-L43. These lines are supposed to mim...
0.0.1-alpha
15e6e69b7e0f30c2a84ac947432336cc2e87c660
["tests.args.test_common::test_string_steps_dont_take_precedence", "tests.library.test_parent::test_uses_correct_step_in_the_hierarchy", "tests.steps.test_common::test_step_functions_same_parser"]
["tests.test_hooks::test_hooks", "tests.test_hooks::test_item_collection_does_not_break_on_non_function_items", "tests.args.test_common::test_reuse_same_step_different_converters", "tests.args.cfparse.test_args::test_every_step_takes_param_with_the_same_name", "tests.args.cfparse.test_args::test_argument_in_when", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pallets-eco__flask-sqlalchemy-1210
pallets-eco/flask-sqlalchemy
e5397f5a79cac7c8bc49e3cb55c8fceabf47a523
diff --git a/CHANGES.rst b/CHANGES.rst index 05d6ab2..597cfd1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,7 @@ Unreleased - Bump minimum version of SQLAlchemy to 2.0.16. - Remove previously deprecated code. - Pass extra keyword arguments from ``get_or_404`` to ``session.get``. :issue:`1149` +- Fix ...
python
diff --git a/tests/test_session.py b/tests/test_session.py index 9e16174..cf75626 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -140,3 +140,68 @@ def test_get_bind_inheritance(app: Flask, model_class: t.Any) -> None: admin = db.session.execute(db.select(Admin)).scalar_one() db.session.expi...
2023-09-10T19:31:56+00:00Z
Bug with getting the correct bind when clause is a statement (like Insert) On a Flask app with multiple databases where you have models that have different `__bind_key__` attributes, if you perform a table operation on the model that has its table in a different database `get_bind` cannot find the correct bind key and...
Hi @ivan-gerov, I'm taking a look at this now. I'm new to bind keys so am trying to wrap my head around the bug and the change. One thing I notice is that the sqlalchemy code doesn't seem to account for the __table__ case, or at least, I only see a check for being an instance of a Table: https://github.com/sqlalche...
0.0.1-alpha
9e192382ee2451819e1a105fb29fd7de7560ca6b
["tests.test_session::test_session_multiple_dbs[Model]", "tests.test_session::test_session_multiple_dbs[model_class1]", "tests.test_session::test_session_multiple_dbs[model_class2]", "tests.test_session::test_session_multiple_dbs[model_class3]", "tests.test_session::test_session_multiple_dbs[model_class4]"]
["tests.test_cli::test_shell_context[Model]", "tests.test_cli::test_shell_context[db1]", "tests.test_cli::test_shell_context[db2]", "tests.test_cli::test_shell_context[db3]", "tests.test_cli::test_shell_context[db4]", "tests.test_engine::test_default_engine[Model]", "tests.test_engine::test_default_engine[db1]", "tests...
["tests.test_model_bind::test_explicit_table[db2]", "tests.test_model_bind::test_explicit_table[db4]"]
{ "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" }
prometheus__client_python-793
prometheus/client_python
5c18edef66fd6275550a3da6aa55b6ef1da886fb
diff --git a/README.md b/README.md index d9721a5..b25a55b 100644 --- a/README.md +++ b/README.md @@ -609,14 +609,17 @@ def child_exit(server, worker): **4. Metrics tuning (Gauge)**: -When `Gauge` metrics are used, additional tuning needs to be performed. +When `Gauge`s are used in multiprocess applications, +you m...
python
diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py index 9ec0578..a41903a 100644 --- a/tests/test_multiprocess.py +++ b/tests/test_multiprocess.py @@ -132,6 +132,17 @@ class TestMultiProcess(unittest.TestCase): g2.set(2) self.assertEqual(1, self.registry.get_sample_value('g')) + ...
2022-04-25T14:42:29+00:00Z
Gauge - there is `livesum` and `all` but what about `sum`? I have a multi-process application where multiple processes are used to track a single value. For instance, lets say I have 3 processes: A, B, and C behind a load balancer. `A` receives a request to increment the Gauge: `A = 1, B = 0, C = 0` `B` receives a...
Your analysis is correct, https://github.com/prometheus/client_python/pull/794 was just opened to add the missing modes, so hopefully there will be a sum option soon! Fixed in #794 @csmarchbanks Awesome, what a quick turnaround. When could we expect this to be released to PyPI? I usually try to cut a release about onc...
0.0.1-alpha
5a5261dd45d65914b5e3d8225b94d6e0578882f3
["tests.test_multiprocess.TestMultiProcess::test_gauge_livemax", "tests.test_multiprocess.TestMultiProcess::test_gauge_livemin", "tests.test_multiprocess.TestMultiProcess::test_gauge_sum"]
["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" }
platformio__platformio-core-installer-20
platformio/platformio-core-installer
848ce9cc2569845933b79878dc2cf23fa3473520
diff --git a/get-platformio.py b/get-platformio.py index ea85d1b..3f3e328 100755 --- a/get-platformio.py +++ b/get-platformio.py @@ -21,7 +21,7 @@ import tempfile from base64 import b64decode DEPENDENCIES = b""" -UEsDBBQAAAAIACAMiE8AR1ybMwAAADoAAAAQAAAAaWRuYS9fX2luaXRfXy5weUsrys9V0CtITM5OTE+NT0ksSVTIzC3ILypRiI8vSy0...
python
diff --git a/tests/test_penv.py b/tests/test_penv.py new file mode 100644 index 0000000..8bdfb5c --- /dev/null +++ b/tests/test_penv.py @@ -0,0 +1,54 @@ +# Copyright (c) 2014-present PlatformIO <contact@platformio.org> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file ex...
2020-03-13T13:50:44+00:00Z
Write tests for `penv` I don't like how each function in `penv` uses global `get_penv_dir`. Please refactor to: - def create_virtualenv_with_local(python_exe, penv_dir): - def create_virtualenv_with_download(python_exe, penv_dir): - def create_virtualenv(penv_dir=None): -> if not penv_dir => get_penv_dir() - clean...
0.0.1-alpha
db9b22098325ef0b762375208b0fbcfc7b629929
["tests.test_penv::test_penv_with_default_python", "tests.test_penv::test_penv_with_downloadable_venv"]
["tests.test_checker::test_check_default_python", "tests.test_checker::test_check_conda_python", "tests.test_packer::test_pioinstaller_packer"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
willyfh__visualtorch-64
willyfh/visualtorch
45f516188f5797dd0878d19d173bbf70e9ee4d0b
diff --git a/visualtorch/utils/layer_utils.py b/visualtorch/utils/layer_utils.py index 01537e5..15fcb8a 100644 --- a/visualtorch/utils/layer_utils.py +++ b/visualtorch/utils/layer_utils.py @@ -185,8 +185,13 @@ def register_hook( m_key = "%s-%i" % (class_name, module_idx + 1) layers[m_key] = OrderedDic...
python
diff --git a/tests/test_layered.py b/tests/test_layered.py index 70f14c9..704752e 100644 --- a/tests/test_layered.py +++ b/tests/test_layered.py @@ -58,6 +58,26 @@ def custom_model() -> nn.Module: return CustomModel() +@pytest.fixture() +def lstm_model() -> nn.Module: + """Define a simple LSTM model for tes...
2025-06-23T22:17:01+00:00Z
LSTM 层输出导致 `AttributeError: 'tuple' object has no attribute 'size'` **Issue 内容**: - 问题:LSTM 层输出导致 `AttributeError: 'tuple' object has no attribute 'size'` - 原因:钩子未处理嵌套元组结构 - 建议:使用递归函数提取所有张量的形状 - 具体的报错 Traceback (most recent call last): File "/root/LSTM_Load_Forecasting/visiontorch.py", line 29, in <module> img =...
Hi, thank you for reporting the issue. I will look into it and fix it in the next release. 🙏 Hi, I got the same error lately and I got the LSTM visualization by changing [lines 188 and 189 in the layer_utils](https://github.com/willyfh/visualtorch/blob/45f516188f5797dd0878d19d173bbf70e9ee4d0b/visualtorch/utils/layer_u...
0.0.1-alpha
c5f6ebe05596df2bb030897a3ce3950c0f874bfc
["tests.test_layered::test_lstm_model_layered_view_runs", "tests.test_lenet_style::test_lstm_model_layered_view_runs"]
["tests.test_graph::test_dense_model_graph_view_runs", "tests.test_layered::test_sequential_model_layered_view_runs", "tests.test_layered::test_module_list_model_layered_view_runs", "tests.test_layered::test_custom_model_layered_view_runs", "tests.test_lenet_style::test_sequential_model_lenet_view_runs", "tests.test_le...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
semuconsulting__pyrtcm-21
semuconsulting/pyrtcm
bf9273fa770c63ab5e020d8cd612c5cfd1118d17
diff --git a/pyrtcm/rtcmmessage.py b/pyrtcm/rtcmmessage.py index 6144add..3463d9b 100644 --- a/pyrtcm/rtcmmessage.py +++ b/pyrtcm/rtcmmessage.py @@ -183,7 +183,9 @@ class RTCMMessage: if not self._scaling: scale = 0 if key == "DF396": # this MSM attribute has variable length - ...
python
diff --git a/tests/test_stream.py b/tests/test_stream.py index 3077583..f7147fa 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -99,14 +99,15 @@ class StreamTest(unittest.TestCase): EXPECTED_RESULTS = ( "<RTCM(1005, DF002=1005, DF003=0, DF021=0, DF022=1, DF023=1, DF024=1, DF141=0,...
2023-03-22T08:37:13+00:00Z
MSM3 Decoding fails when the number of Signals is not consistent per SV MSM3 Decoding fails when the number of Signals is not consistent per SV GPS SV's today are a mix of SV types so they have different signals. The Job of DF394 is to indicate the number of SV's in the message. DF395 indicates what signal ma...
Hi @jcmb Thanks for the report - much appreciated. Fix identified and PR awaiting review. I've parsed your SPS855.BIN file and it seems to be fine now - here's a log of the parsed output... [pygpsdata-20230322085432.log](https://github.com/semuconsulting/pyrtcm/files/11038121/pygpsdata-20230322085432.log) Let ...
0.0.1-alpha
d4d0ac9954c73ddc080e21b88886b822dc5de30c
["tests.test_stream.StreamTest::testMIXEDRTCM_ITERATOR", "tests.test_stream.StreamTest::testMIXEDRTCM_NOSCALE", "tests.test_stream.StreamTest::testMIXEDRTCM_SCALE", "tests.test_stream.StreamTest::testMIXEDRTCM_SCALE_LABELMSM"]
["tests.test_stream.StreamTest::test1005example", "tests.test_stream.StreamTest::test1023", "tests.test_stream.StreamTest::test1230", "tests.test_stream.StreamTest::testNTRIP", "tests.test_stream.StreamTest::testSerialize", "tests.test_stream.StreamTest::testbadCRC", "tests.test_stream.StreamTest::testbadCRC2", "tests....
["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" }
mondeja__mkdocs-include-markdown-plugin-50
mondeja/mkdocs-include-markdown-plugin
bec59161b2c7d12afad2943e6d75a393cf52185b
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 33c175b..4a3b4f0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.0.1 +current_version = 3.1.0 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
python
diff --git a/tests/test_include.py b/tests/test_include.py index 74c3507..df8bcfc 100644 --- a/tests/test_include.py +++ b/tests/test_include.py @@ -92,6 +92,46 @@ This must be included. id='start/end (unescaped special characters)', ), + # Multiples start and end matchs + pytest.p...
2021-06-06T17:32:30+00:00Z
Having several start-end tags in included page Having several start-end tags in included page, results in including only the first appearance. Is it possible to have more than one section included? ```markdown <!--start-tag--> ## Important Content1 <!--end-tag--> [unimportant content] <!--start-tag--> ...
Added in [v3.1.0](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases/tag/v3.1.0). Thanks for your quick support. I tested it and is working as expected.
0.0.1-alpha
6a7dd98e9639d7e3b6ab3d67a2c065d7f6309b92
["tests.test_include::test_include[multiple-start-end-matchs]", "tests.test_include_markdown::test_include_markdown[multiple-start-end-matchs]"]
["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" }
nteract__testbook-94
nteract/testbook
008b61c723b105812250c1389ef7de88007ae1ea
diff --git a/testbook/client.py b/testbook/client.py index 774f688..e1de6bb 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -38,7 +38,11 @@ class TestbookNotebookClient(NotebookClient): # Check if exists self.inject(name, pop=True) - return TestbookObjectReference(self, name) + ...
python
diff --git a/testbook/tests/test_reference.py b/testbook/tests/test_reference.py index 5009b6a..c766aa2 100644 --- a/testbook/tests/test_reference.py +++ b/testbook/tests/test_reference.py @@ -12,23 +12,17 @@ def notebook(): def test_create_reference(notebook): a = notebook.ref("a") - assert repr(a) == "'[1,...
2021-04-06T16:29:17+00:00Z
Return actual object instead of reference object in cases where the value is JSON serializable ``` # in notebook.ipynb var = [1, 2, 3] # in test.py var = tb["var"] type(var) # TestbookObjectReference # instead, we want the following behaviour var = tb["var"] type(var) # list ``` We will need to include...
0.0.1-alpha
a0b37569916b91648f29f938aa8908bfda2c114b
["testbook.tests.test_reference::test_create_reference", "testbook.tests.test_reference::test_create_reference_getitem", "testbook.tests.test_reference::test_create_reference_get", "testbook.tests.test_reference::test_eq_in_notebook_ref", "testbook.tests.test_reference::test_function_call_with_ref_object"]
["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" }
octodns__octodns-962
octodns/octodns
8237aa955d0f489180daf131b744dbc3d22ba986
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cdef09..ce2ebed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ possible. This includes the ability to split some zones and not others and even to have partially split zones with some records in the primary zone YAML and others in a split director...
python
diff --git a/tests/config/split/shared.yaml b/tests/config/split/shared.yaml new file mode 100644 index 0000000..d4c3058 --- /dev/null +++ b/tests/config/split/shared.yaml @@ -0,0 +1,4 @@ +--- +only-shared: + type: TXT + value: Only included when shared file processing is enabled diff --git a/tests/config/split/unit....
2023-09-06T20:55:44+00:00Z
Best way to share multiple records between zones I'd like to share a couple of records between multiple zones. For example I'm using the same autodiscover/autoconfig records for multiple domains: ``` _autodiscover._tcp: type: SRV value: priority: 10 weight: 10 port: 443 target: autodiscover...
Not what you're asking for, but [Yaml anchors](https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/) are useful for avoiding repeating the same bits of yaml within a single zone, e.g.: ```yaml _autodiscover._tcp: &auto type: SRV value: priority: 10 weight: 10 port: 443 target:...
0.0.1-alpha
402e66384e1c413677e603a9425172eef311df0c
["tests.test_octodns_provider_yaml.TestSplitYamlProvider::test_provider"]
["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" }
samirelanduk__atomium-29
samirelanduk/atomium
4a9ff381cd5cbc643c0e8c66ad970297da8b59e0
diff --git a/atomium/pdb.py b/atomium/pdb.py index edef35b..2cb88ea 100644 --- a/atomium/pdb.py +++ b/atomium/pdb.py @@ -600,7 +600,7 @@ def atom_to_atom_line(a, lines): if a.het: id_, residue_name = a.het.id, a.het._name chain_id = a.chain.id if a.chain is not None else "" - residue_id = ...
python
diff --git a/tests/integration/test_file_saving.py b/tests/integration/test_file_saving.py index 731417c..84cf0ae 100644 --- a/tests/integration/test_file_saving.py +++ b/tests/integration/test_file_saving.py @@ -26,6 +26,11 @@ class SavingTest(TestCase): self.assertEqual(chain1.sequence, chain2.sequence) ...
2020-11-05T23:15:31+00:00Z
Unable to write atoms with negative residue id In `atom_to_atom_line` (atomium.pdb) there is a fragment: ``` if a.het: id_, residue_name = a.het.id, a.het._name chain_id = a.chain.id if a.chain is not None else "" residue_id = int("".join([c for c in id_ if c.isdigit()])) insert_code = id_[-1] ...
A possible fix: `residue_id = int("".join([c for c in id_ if c.isdigit() or c =='-']))` Thanks for flagging this! Should be fixed now in 1.0.7 (just released). I used exactly the fix you suggested.
0.0.1-alpha
d6e738bcee8a3ff250f0cd188662e995e44ca2b9
["tests.integration.test_file_saving.PdbFileSavingTests::test_can_save_1d5t"]
["tests.integration.test_data_dict_reading.DescriptionDictTests::test_1lol_data_dict_description", "tests.unit.test_base.QueryDecoratorTests::test_can_get_filtered_objects", "tests.unit.test_base.QueryDecoratorTests::test_can_get_filtered_objects_as_tuple", "tests.unit.test_base.QueryDecoratorTests::test_can_get_object...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-401
python-validators/validators
dd118088185e27025332318bbf3368a56ac8f517
diff --git a/src/validators/domain.py b/src/validators/domain.py index 23ae263..384ade0 100644 --- a/src/validators/domain.py +++ b/src/validators/domain.py @@ -16,6 +16,7 @@ class _IanaTLD: _full_cache: Optional[Set[str]] = None # source: https://www.statista.com/statistics/265677 _popular_cache = {"COM...
python
diff --git a/tests/test_domain.py b/tests/test_domain.py index 6d8e867..63342f7 100644 --- a/tests/test_domain.py +++ b/tests/test_domain.py @@ -46,6 +46,7 @@ def test_returns_true_on_valid_domain(value: str, rfc_1034: bool, rfc_2782: bool ("_example.com", True, False, True), ("example_.com", True, Fa...
2024-09-16T01:56:53+00:00Z
.onion TLD When validating URLs with TLD enabled, `.onion` comes up as not validated. Since `.onion` URLs (TOR) are kinda unique, I wonder if we should add it to the TLD list or add a separate flag. I can open a PR for both solutions, I just wonder what the best way is. For context, [tldextract](https://github.com/j...
Hi @davidt99, are onion URLs validated by this library? Can you show me an example? AFAIK they are not in tests. It's not validated when the `consider_tld` flag is on since `.onion` is not in the TLD list. Okay, instead of adding it to `_tld.txt`, we could append it to `_popular_cache` in [`domain.py`](https://github.c...
0.0.1-alpha
597a0309fc315e86685187303abc24677a32d382
["tests.test_domain::test_returns_true_on_valid_top_level_domain[somerandomexample.onion-True-False-False]"]
["tests.crypto_addresses.test_bsc_address::test_returns_true_on_valid_bsc_address[0x4e5acf9684652BEa56F2f01b7101a225Ee33d23f]", "tests.crypto_addresses.test_bsc_address::test_returns_true_on_valid_bsc_address[0x22B0f92af10FdC25659e4C3A590c2F0D0c809c27]", "tests.crypto_addresses.test_bsc_address::test_returns_true_on_va...
["tests.crypto_addresses.test_eth_address::test_returns_true_on_valid_eth_address[0x8ba1f109551bd432803012645ac136ddd64dba72]", "tests.crypto_addresses.test_eth_address::test_returns_true_on_valid_eth_address[0x9cc14ba4f9f68ca159ea4ebf2c292a808aaeb598]", "tests.crypto_addresses.test_eth_address::test_returns_true_on_va...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-108
python-validators/validators
bcd5147f007db2184f72ccc928199e0f55f65019
diff --git a/validators/email.py b/validators/email.py index 6c36c2e..39dfa95 100644 --- a/validators/email.py +++ b/validators/email.py @@ -61,6 +61,9 @@ def email(value, whitelist=None): if not user_regex.match(user_part): return False + + if len(user_part.encode("utf-8")) > 64: + re...
python
diff --git a/tests/test_email.py b/tests/test_email.py index 70fbb23..57cfdda 100644 --- a/tests/test_email.py +++ b/tests/test_email.py @@ -34,6 +34,7 @@ def test_returns_true_on_valid_email(value, whitelist): ('example@-invalid.com',), ('example@inv-.alid-.com',), ('example@inv-.-alid.com',), + ('jo...
2020-04-02T12:44:40+00:00Z
Unhandled checks on email validator Hello, I've come across a few checks that the current email validator does not take into account. Sharing them below. 1) Local part of the email address should be less than 64 bytes. However, the validator returns True for `john56789.john56789.john56789.john56789.john56789.joh...
PRs welcome. #22 has a few other examples in which the email validator could use some improvement. @devikasondhi i will say everything is vaid other than 2. I don't think we should email along with name? [RFC 2822](https://www.rfc-editor.org/rfc/rfc2822) is obsoleted by [RFC 5322](https://www.rfc-editor.org/rfc/rfc532...
0.0.1-alpha
40cac07f3610e418505f72089a77b2b3fc388d1f
["tests.test_email::test_returns_failed_validation_on_invalid_email[john56789.john56789.john56789.john56789.john56789.john56789.john5@example.com]"]
["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-381
more-itertools/more-itertools
15407c7185f817eb7c820ee3e82402eb4a41e2f8
diff --git a/more_itertools/more.py b/more_itertools/more.py index 3ed4ae6..173f505 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1064,28 +1064,43 @@ def sliced(seq, n): return takewhile(len, (seq[i : i + n] for i in count(0, n))) -def split_at(iterable, pred): +def split_at(iterable, pr...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 94fc6de..11eb5d7 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -1100,16 +1100,16 @@ class SlicedTests(TestCase): class SplitAtTests(TestCase): """Tests for ``split()``""" - def comp_with_str_split(self, str_to_split, delim): + def co...
2020-02-03T12:59:03+00:00Z
Add a maxsplit, reverse parameters to split_ # maxsplit more-itertools has various `split_` functions (`split_at`, `split_after`, `split_before`, `split_when`, `split_into`) but none of these functions has a way to stop the split after a given number of elements. Of course, we can take the first elements of a `split_...
I'd entertain a PR for the `maxsplit` additions, and a separate one for `reverse`. @bbayles Would you allow: * a `keep_separator` parameter for `split_at` (useful for the implementation) * the name `rsplit` for the parameter instead of `reverse` because `reverse` might be confusing ? Examples (handwritten): ...
0.0.1-alpha
25d8991d5e0e328d154b18b041624996db322759
["tests.test_more.SplitAtTests::test_seperators", "tests.test_more.SplitBeforeTest::test_max_split", "tests.test_more.SplitAfterTest::test_max_split", "tests.test_more.SplitWhenTests::test_max_split"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
open2c__bioframe-183
open2c/bioframe
7fa8b3172278b796a49013e5094af5b72264c04c
diff --git a/bioframe/core/arrops.py b/bioframe/core/arrops.py index c6e3335..90e82f0 100644 --- a/bioframe/core/arrops.py +++ b/bioframe/core/arrops.py @@ -264,6 +264,23 @@ def _overlap_intervals_legacy(starts1, ends1, starts2, ends2, closed=False, sort return overlap_ids +def _convert_points_to_len1_segments...
python
diff --git a/tests/test_ops.py b/tests/test_ops.py index 254d467..c5fa41b 100644 --- a/tests/test_ops.py +++ b/tests/test_ops.py @@ -426,6 +426,233 @@ def test_overlap(): ) assert len(b) == 3 + ### test overlap with point and segment data + df_point1 = pd.DataFrame( + [ + ['chr1', 1,...
2024-03-20T18:31:13+00:00Z
overlap between a point and a segment is broken A working example: ```python In [15]: df_point = pd.DataFrame([['chr1', 1, 1]], columns=['chrom','start','end']) In [16]: df_segment = pd.DataFrame([['chr1', 1, 2]], columns=['chrom','start','end']) In [17]: bioframe.overlap(df_segment, df_point) Out[17]: c...
0.0.1-alpha
ffceb61d369c402f509df99ad7e7d87f884b1667
["tests.test_ops::test_overlap"]
["tests.test_assembly_info::test_assemblies_available", "tests.test_assembly_info::test_assembly_info", "tests.test_core_checks::test_is_cataloged", "tests.test_core_checks::test_is_contained", "tests.test_core_checks::test_is_overlapping", "tests.test_core_checks::test_is_covering", "tests.test_core_checks::test_is_ti...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matin__garth-4
matin/garth
899b726e559dbfb69c08dec4be3a9e1897fc07bc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e0a8f0..a1e7682 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,11 @@ on: branches: - main tags: - - '**' + - "**" pull_request: {} env: COLUMNS: 150 - PDM_DEPS: 'urllib3<2,git+h...
python
diff --git a/tests/conftest.py b/tests/conftest.py index 31d2d0f..49326c3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -67,9 +67,8 @@ def authed_client( client.load(os.environ["GARTH_HOME"]) except KeyError: client.configure(oauth1_token=oauth1_token, oauth2_token=oauth2_token) - ...
2023-09-27T12:53:07+00:00Z
feat: dump `oauth1_token.json oauth2_token.json` together, and dump them as string Thanks for your repo~ For some repos like https://github.com/yihong0618/running_page we use GitHub Actions secret to daily sync the data, so maybe we can make this token something like `base64` it to a string, and save it in the secr...
Love what you're building! Would a JSON serialized string be sufficient? I was thinking we could add [`Client.dumps()` and `Client.loads(tokens)`](https://github.com/matin/garth/compare/main...dumps_loads). That way we have symmetry with the current `Client.dump()` and `Client.load()` methods. I wonder for GitHub...
0.0.1-alpha
b36caec3b4dffed0430eaa381bc6f7554a63e842
["tests.test_http::test_dumps_and_loads"]
["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_configure_oauth2_token", "tests.test_http::test_configure_domain", "tests.test_http::test_configure_proxies", "tests.test_http:...
["tests.data.test_hrv_data::test_hrv_data_get", "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_daily_hrv_no_results", "tests.stats.test_hrv::test_d...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wimglenn__pytest-structlog-39
wimglenn/pytest-structlog
1bbad6194989374967c53ff720e36931b15d3081
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 846d3ac..e2cac65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,31 +21,22 @@ jobs: - "3.10" - "3.11" - "3.12" - + - "3.13" steps: - uses: actions/checkout@v4 ...
python
diff --git a/tests/test_issue39.py b/tests/test_issue39.py new file mode 100644 index 0000000..a2c2b4d --- /dev/null +++ b/tests/test_issue39.py @@ -0,0 +1,13 @@ +import structlog + +from pytest_structlog import StructuredLogCapture + +logger = structlog.get_logger() + + +def test_count(log: StructuredLogCapture): + ...
2025-09-10T02:29:16+00:00Z
Count of similar logs I'd like a new feature where I could check similar logs, essentially similar to `log.has` but rather than returning a true/false, to know the number of logs matching. For instance, in the example if you want to assert that there are 3 "processing" debug lines, it would be nice to have like `asser...
@jerr0328 does the approach shown in https://github.com/wimglenn/pytest-structlog/pull/40/commits/8907be2507d90dad58795fdeadedc1dc5e8773a2 look suitable? Yes that looks good, thanks for implementing that! 😊 Released in [pytest-structlog v1.2](https://pypi.org/project/pytest-structlog/1.2/).
0.0.1-alpha
76dad35a1e62ef5bda4741e3d29d105ca42384e4
["tests.test_issue39::test_count"]
["tests.test_evict_log_level::test_evict_log_level_from_event_dict", "tests.test_issue14::test_first", "tests.test_issue14::test_second", "tests.test_issue14::test_third", "tests.test_issue18::test_positional_formatting", "tests.test_issue20::test_contextvar", "tests.test_issue22::test_logger_name", "tests.test_issue24...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__csv-diff-38
simonw/csv-diff
20aa749cb21bccbfcbb92e8b1482054c96c8ea25
diff --git a/README.md b/README.md index 4b49379..61c9acf 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ Use `--show-unchanged` to include full details of the unchanged values for rows Unchanged: name: "Cleo" +### JSON output + You can use the `--json` option to get a machine-readable ...
python
diff --git a/tests/test_cli.py b/tests/test_cli.py index eb18d73..12f4e12 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -234,3 +234,69 @@ def test_semicolon_delimited(tmpdir): "columns_added": [], "columns_removed": [], } == json.loads(result.output.strip()) + + +def test_diff_with_ex...
2024-09-06T05:10:11+00:00Z
Feature for adding extra templated output to the diff For this project: https://github.com/simonw/scrape-hacker-news-by-domain I want to include `latest` links in the human readable output that link to https://news.ycombinator.com/latest?id=41459472 for each item. I'm going to try using Python format strings lik...
Got that working: ``` 3 rows changed id: 41459472 points: "24" => "25" numComments: "5" => "6" extras: latest: https://news.ycombinator.com/latest?id=41459472 id: 41434857 points: "1" => "2" extras: latest: https://news.ycombinator.com/latest?id=41434857 id: 41427834 ...
0.0.1-alpha
8f9095659d14b09fb498bf950a0e283de85e4e6a
["tests.test_cli::test_diff_with_extras"]
["tests.test_cli::test_human_cli", "tests.test_cli::test_human_cli_alternative_names", "tests.test_cli::test_human_cli_json", "tests.test_cli::test_tsv_files", "tests.test_cli::test_json_files", "tests.test_cli::test_sniff_format", "tests.test_cli::test_format_overrides_sniff", "tests.test_cli::test_column_containing_d...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
yuma-m__pychord-34
yuma-m/pychord
62cb7b4222a50a070914a9879acb22103136687b
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2907798..50c3e53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Forthcoming +- Rename `6/9` to `69` +- Add `m69` + ## v0.4.1 - Add qualities. - `sus`, `maj7`, `maj9`, `m6`, `madd9` diff --git a/README.md b/README.md index d046c76..de7284b 100644 ...
python
diff --git a/test/test_chord.py b/test/test_chord.py index e35f9ec..be875f3 100644 --- a/test/test_chord.py +++ b/test/test_chord.py @@ -21,6 +21,11 @@ class TestChordCreations(unittest.TestCase): self.assertEqual(c.root, "A") self.assertEqual(c.quality.quality, "m") + def test_69_chord(self): + ...
2020-01-26T12:35:01+00:00Z
quality aliases some common notation that is missing: Xsus = X5 Xmaj7 = XM7 Xmaj9 = XM9 Xm6 = (0, 3, 7, 9) Xmadd9 = (0, 3, 7, 14) also is there a general way to add quality for aliases?
You want to use chords like below. ```py >>> Chord("Cmaj9") <Chord: Cmaj9> >>> Chord("Cmaj9") == Chord("CM9") True ``` You can define new qualities in `constants/qualities.py`, but you also have to update `Quality.__eq__` method to compare qualities not by its name but by its components. i have more cases. i...
0.0.1-alpha
1316c1c8153fbde7d8a09599f5915113aed42cf1
["test.test_chord.TestChordCreations::test_69_chord"]
["test.test_chord.TestAsChord::test_as_chord_chord_input", "test.test_chord.TestAsChord::test_as_chord_invalid_input", "test.test_chord.TestAsChord::test_as_chord_str_input", "test.test_progression.TestChordProgressionCreations::test_multiple_chords", "test.test_progression.TestChordProgressionCreations::test_multiple_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sciunto-org__python-bibtexparser-308
sciunto-org/python-bibtexparser
3ef7b4d7e0919d447ffedc4f1dfdeb0c79a9cb84
diff --git a/.gitignore b/.gitignore index 96cb234..81d91b1 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ nosetests.xml # Vim. *.swp + +# Vscode +.vscode diff --git a/bibtexparser/bparser.py b/bibtexparser/bparser.py index d38855f..34620a4 100644 --- a/bibtexparser/bparser.py +++ b/bibtexparser/bparser...
python
diff --git a/bibtexparser/tests/data/article_comma_normal_multiple.bib b/bibtexparser/tests/data/article_comma_normal_multiple.bib new file mode 100644 index 0000000..e703785 --- /dev/null +++ b/bibtexparser/tests/data/article_comma_normal_multiple.bib @@ -0,0 +1,42 @@ +@article{FuMetalhalideperovskite2019, + author...
2022-09-09T06:31:15+00:00Z
Warn if parser called multiple times Consider the snippet shown below. The second `parses` call returns 4 entries, I would have expected three. I do see use cases where this is intended, and changing this could break some dependent applications. Hence, I propose to raise a warning if the parse function is called mo...
Hi @MiWeiss, May I work on this? I assume you want to finish the process with exit code 0 instead of assertion error and exit code 1. Am I right? Hi @mrn97 Thanks! Yes, a contribution would be very welcome. I'm afraid we cannot change the functionality due to backwards compatibility (see comment above). Inste...
0.0.1-alpha
b9c82a39141467ac4fc5c5766a13c6342bf2363b
["bibtexparser.tests.test_bparser.TestBibtexParserList::test_parsing_three_times_raise_warnings_only_once_with_default_settings", "bibtexparser.tests.test_bparser.TestBibtexParserList::test_parsing_twice_raise_warnings_with_default_settings"]
["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" }
nerdocs__pydifact-54
nerdocs/pydifact
bf075e6c96d1a1402f33a3e53595a7312cd91534
diff --git a/pydifact/api.py b/pydifact/api.py index 5cff1e0..912b50a 100644 --- a/pydifact/api.py +++ b/pydifact/api.py @@ -11,7 +11,7 @@ class PluginMount(type): if not hasattr(cls, "plugins"): cls.plugins = [] else: - if not hasattr(cls, "__omitted__"): + if not g...
python
diff --git a/tests/test_segment.py b/tests/test_segment.py index ba0b166..133a0e4 100644 --- a/tests/test_segment.py +++ b/tests/test_segment.py @@ -15,7 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import pytest -from pydifact.segments import Segment +from pydifact.segments i...
2023-04-22T12:21:11+00:00Z
Apply fixes for Segmentfactory and Pluginmount Hey, first, thanks for this amazing library, it has helped us a lot. I have noticed, that the in #37 proposed changes introduced more than a mapping functionality. With https://github.com/nerdocs/pydifact/pull/37/commits/23f218d246be5af3b86cd547b9710226ad58d019 fixes f...
I know we’ve got people at work tinkering with the mapping stuff again. I’ll see if we can get it rebased on top of master if/when this gets merged in <3 So, if I understood correctly, best four you would be to merge this PR here, so @theangryangel & others could rebase work in #37 on top of that, right? For me this is...
0.0.1-alpha
daae0d777c405c466ee74a066c0d7cc95754f68a
["tests.test_segment::test_has_plugin"]
["tests.messagetypes.paxlst.test_una::test_una_segment", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_una_decimal_point", "tests.messagetypes.paxlst.test_unb.TestUNBSegment::test_unb_segement", "tests.test_characters::test_with_separator_identity", "tests.test_characters::test_cc_assigning", "tests.test_cha...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-31
sepandhaghighi/mycoffee
fab17ef14933a07a1d4177859d7dcd36750de677
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2615fdc..1f55e17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ 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] +### Chan...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 4e65b3d..e0ed524 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -3,7 +3,7 @@ >>> import argparse >>> from mycoffee.functions import * >>> from mycoffee.params import * ->>> test_params = {"method":"v60", "cups":2, "coffee":30, "w...
2024-10-13T16:12:27+00:00Z
[Bug]: Cups argument has no effect ### Contact details This issue ### What happened? the --cups argument doesn't have any effect on the output. It isn't used anywhere in the source code. ### Steps to reproduce 1. Run mycoffee --method=french-press --cups=6 2. Note output 3. Run mycoffee --method=french-press --...
@forslund Hi Thanks for opening this issue. You are correct, and I will fix this bug in the next release.
0.0.1-alpha
c255c37b4288d6d5e54c181aaea1daaa28f82e78
["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" }
tomicapretto__flexitext-15
tomicapretto/flexitext
63f9fcaf91a786090c25fb53bf7d3425229e8669
diff --git a/flexitext/flexitext.py b/flexitext/flexitext.py index f782d3b..18c3223 100644 --- a/flexitext/flexitext.py +++ b/flexitext/flexitext.py @@ -55,7 +55,7 @@ class FlexiText: Vertical alignment for text within multiline texts. Can be one of `"top"`, `"bottom"`, `"left"`, `"right"`, `"...
python
diff --git a/flexitext/tests/test_flexitext.py b/flexitext/tests/test_flexitext.py index 2463088..a5a2f8e 100644 --- a/flexitext/tests/test_flexitext.py +++ b/flexitext/tests/test_flexitext.py @@ -18,3 +18,9 @@ def test_flexitext(): with pytest.raises(ValueError): flexitext(0.5, 0.5, text, xycoords="oth...
2025-01-19T13:45:06+00:00Z
Why is `xycoords` limited to 2 options and not use the "default" (`data`)? Hello, Trying to understand why the xycoords is limited to only 2 options you provide. When using this great library (with plottable) the coordinates are not right using either of the 2 options. When monkey patching the code by commenting ou...
Hi @ant1j, I think there was no real thorough thought behind this decision. I'm going to add it as an option and make a release. Thanks!
0.0.1-alpha
74b15f2d8bc71316d73c9f3c7c064de215674395
["flexitext.tests.test_flexitext::test_flexitext"]
["flexitext.tests.parser.test_args::test_args", "flexitext.tests.parser.test_make_texts::test_make_texts", "flexitext.tests.parser.test_utils::test_styles_queue", "flexitext.tests.test_style::test_style", "flexitext.tests.test_text::test_text", "flexitext.tests.test_textgrid::test_make_grid", "flexitext.tests.test_text...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1222
octodns/octodns
54d2e0f19bdb5c8bed5e29ac9c0bac079ac5c396
diff --git a/octodns/provider/yaml.py b/octodns/provider/yaml.py index b5fd3d7..1a2a512 100644 --- a/octodns/provider/yaml.py +++ b/octodns/provider/yaml.py @@ -73,6 +73,12 @@ class YamlProvider(BaseProvider): # (optional, default False) disable_zonefile: false + Note + ---- + + When using ...
python
diff --git a/tests/test_octodns_manager.py b/tests/test_octodns_manager.py index 271268d..76e5027 100644 --- a/tests/test_octodns_manager.py +++ b/tests/test_octodns_manager.py @@ -2,7 +2,7 @@ # # -from os import environ, listdir +from os import environ, listdir, remove from os.path import dirname, isfile, join f...
2024-11-05T23:28:02+00:00Z
Deletion when syncing from a remote provider to the local Yaml provider. From my testing and operations it seems that when syncing a zone (e.g. clowns.org) from a remote provider (e.g. DigitalOcean) to the local Yaml Provider, if the local yaml file e.g. clowns.org.yaml contains: --- bozo: type A: value: 10....
Going to need more details about what you're running. If you only plan (no `--doit`) then the file would be left untouched, but if you apply the changes the local yaml file will be overwritten with the values pulled from DO. What's you're octoDNS config file look like an what command line and args are you running? Ah....
0.0.1-alpha
5a2f92f38da03ef5f21cc990362d4af037f43932
["tests.test_octodns_provider_yaml.TestYamlProvider::test_idna", "tests.test_octodns_provider_yaml.TestYamlProvider::test_provider", "tests.test_octodns_provider_yaml.TestSplitYamlProvider::test_provider", "tests.test_octodns_zone.TestZone::test_changes"]
["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" }
swansonk14__typed-argument-parser-97
swansonk14/typed-argument-parser
5257fe8562cd10e60ff2118926376a6efda50550
diff --git a/src/tap/utils.py b/src/tap/utils.py index 37e6e16..9f22c34 100644 --- a/src/tap/utils.py +++ b/src/tap/utils.py @@ -1,4 +1,5 @@ from argparse import ArgumentParser, ArgumentTypeError +import ast from base64 import b64encode, b64decode import copy from functools import wraps @@ -10,6 +11,7 @@ import pic...
python
diff --git a/tests/test_utils.py b/tests/test_utils.py index a3fabcf..33729ca 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -300,6 +300,30 @@ T class_variables = {"bar": {"comment": "biz baz"}, "hi": {"comment": "Hello there"}} self.assertEqual(get_class_variables(TripleQuoteMultiline)...
2024-08-24T23:40:55+00:00Z
Escaped characters in docstring are over-escaped by the tokenizer The branch [quote-docstrings](https://github.com/swansonk14/typed-argument-parser/tree/quote-docstrings) has a testcase that shows that `\"` is tokenized as `\\\"` by the tokenizer library. The branch also contains preliminary attempts to fix this issue...
This is fixed here: https://github.com/swansonk14/typed-argument-parser/pull/148
0.0.1-alpha
c0d4b7516d55b7dbc6c9648b0db9d4ee2a1b719d
["tests.test_utils.ClassVariableTests::test_comments_with_quotes", "tests.test_utils.ClassVariableTests::test_multiline_argument"]
["tests.test_actions.TestArgparseActions::test_actions_append_const", "tests.test_actions.TestArgparseActions::test_actions_append_list", "tests.test_actions.TestArgparseActions::test_actions_append_list_int", "tests.test_actions.TestArgparseActions::test_actions_append_list_literal", "tests.test_actions.TestArgparseAc...
["tests.test_to_tap_class::test_subclasser_simple_help_message[function]", "tests.test_to_tap_class::test_subclasser_complex_help_message[function]", "tests.test_to_tap_class::test_subclasser_subparser_help_message[function-args_string_and_description_and_expected_message0]", "tests.test_to_tap_class::test_subclasser_s...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mhe__pynrrd-108
mhe/pynrrd
7213262c4dd602b903adb2d2c542d7959f3936e9
diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 45b870c..2fefe8a 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -34,6 +34,31 @@ Example only reading header print(header) >>> OrderedDict([('type', 'double'), ('dimension', 1), ('sizes', array([50])), ('endian', 'l...
python
diff --git a/nrrd/tests/test_writing.py b/nrrd/tests/test_writing.py index 090bf51..7ff22ee 100644 --- a/nrrd/tests/test_writing.py +++ b/nrrd/tests/test_writing.py @@ -1,3 +1,4 @@ +import io import os import sys @@ -17,42 +18,40 @@ class TestWritingFunctions(object): with open(RAW_DATA_FILE_PATH, 'rb') as...
2022-06-17T00:37:43+00:00Z
Read/write nrrd from/to memory The library seems to be missing an interface to simply parse a nrrd-record from another source then an actual file on disk. Would e.g. an interface based on a provided instance of _IOBase make sense for you?
Hello, The `nrrd.read_header` and `nrrd.read_data` functions accept file handles that I **think** should work for any `IOBase` class. Have you tested that yet to see if it fails? The `read_header` function accepts any string iterable and just calls `next()` on it to get another line. The `read_data` calls close, ...
0.0.1-alpha
a8667a541c2040c5a43eaf8b6de49fca046cc164
["nrrd.tests.test_writing.TestWritingFunctionsFortran::test_write_memory", "nrrd.tests.test_writing.TestWritingFunctionsFortran::test_write_memory_file_handle", "nrrd.tests.test_writing.TestWritingFunctionsC::test_write_memory", "nrrd.tests.test_writing.TestWritingFunctionsC::test_write_memory_file_handle"]
["nrrd.tests.test_writing.TestWritingFunctionsFortran::test_invalid_custom_field", "nrrd.tests.test_writing.TestWritingFunctionsFortran::test_invalid_index_order", "nrrd.tests.test_writing.TestWritingFunctionsFortran::test_quoted_string_list_header", "nrrd.tests.test_writing.TestWritingFunctionsFortran::test_remove_end...
["nrrd.tests.test_parsing.TestFieldParsing::test_parse_optional_matrix", "nrrd.tests.test_formatting.TestFieldFormatting::test_format_optional_matrix", "nrrd.tests.test_formatting.TestFieldFormatting::test_format_optional_vector", "nrrd.tests.test_reading.TestReadingFunctionsFortran::test_read_simple_4d_nrrd", "nrrd.te...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
maroba__findiff-66
maroba/findiff
663162c908a5e168e7ea95778cd14df9acd7bafa
diff --git a/findiff/coefs.py b/findiff/coefs.py index a9c0866..e2ee15a 100644 --- a/findiff/coefs.py +++ b/findiff/coefs.py @@ -9,13 +9,14 @@ coefficients(deriv, acc=None, offsets=None, symbolic=False) to calculate the finite difference coefficients for a given derivative order and given accuracy order to given offs...
python
diff --git a/test/test_coefs.py b/test/test_coefs.py index e52b8f7..9054dd6 100644 --- a/test/test_coefs.py +++ b/test/test_coefs.py @@ -14,133 +14,155 @@ class TestCoefs(unittest.TestCase): def test_order2_acc2(self): - c = coefficients(deriv=2, acc=2) + for analytic_inv in [True, False]: + ...
2022-09-23T05:15:09+00:00Z
Analytic inversion of Vandermonde matrix Hi, new fan of this package! :) I was wondering: At least within the applications I'm looking at, the equation solving performed in [L99 of coefs.py](https://github.com/maroba/findiff/blob/663162c908a5e168e7ea95778cd14df9acd7bafa/findiff/coefs.py#L99) (or L89 for `symbolic=T...
Hi @dwierichs , thanks! Glad that you like it. :-) In principle, you are right that one could solve the equation analytically. However, I guess the price would be less readability. Since this part of the code is not critical in terms of performance (the equation system is always small for a computer), I would giv...
0.0.1-alpha
bc0d2ed43fc71c20f7775b82deb7b45c29762230
["test.test_coefs.TestCoefs::test_calc_accuracy_central_deriv1_acc2", "test.test_coefs.TestCoefs::test_calc_accuracy_central_deriv2_acc2", "test.test_coefs.TestCoefs::test_calc_accuracy_from_offsets_symbolic", "test.test_coefs.TestCoefs::test_calc_accuracy_left0_right3_deriv1_acc3", "test.test_coefs.TestCoefs::test_cal...
["test.test_findiff.FinDiffTest::test_identity", "test.test_findiff.FinDiffTest::test_identity_2d", "test.test_findiff.FinDiffTest::test_laplace", "test.test_findiff.FinDiffTest::test_linear_combinations", "test.test_findiff.FinDiffTest::test_local_stencil_operator_addition", "test.test_findiff.FinDiffTest::test_local_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yukinarit__pyserde-328
yukinarit/pyserde
df8db227c26f04135ebfecc03d80933808a2ff6b
diff --git a/serde/de.py b/serde/de.py index 6c49e5e..e51458c 100644 --- a/serde/de.py +++ b/serde/de.py @@ -584,13 +584,17 @@ class DeField(Field[T]): """ typ = type_args(self.type)[n] opts: dict[str, Any] = { + "kw_only": self.kw_only, "case": self.case, + ...
python
diff --git a/tests/test_flatten.py b/tests/test_flatten.py index b0583f9..afcf99b 100644 --- a/tests/test_flatten.py +++ b/tests/test_flatten.py @@ -2,7 +2,7 @@ Tests for flatten attribute. """ -from typing import Any +from typing import Any, Optional import pytest @@ -51,3 +51,20 @@ def test_flatten(se: Any, ...
2024-06-09T05:37:54+00:00Z
Flatten does not work with optional dataclass fields Hi, Currently trying to move over to using pyserde and dataclasses instead of dictionaries for more type assurance. I have discovered what I think is a bug for when the `flatten` field attribute is used for fields with optional dataclasses as type. This example ...
0.0.1-alpha
3c91ee84168ebec196f413c670eb3cc2c8ddd882
["tests.test_flatten::test_flatten_optional[to_dict-from_dict]", "tests.test_flatten::test_flatten_optional[to_tuple-from_tuple]", "tests.test_flatten::test_flatten_optional[to_json-from_json]", "tests.test_flatten::test_flatten_optional[to_msgpack-from_msgpack]", "tests.test_flatten::test_flatten_optional[to_yaml-from...
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
["tests.test_type_check::test_type_check_strict[set-data32-False]"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__lsprotocol-95
microsoft/lsprotocol
ad94b1178ca75ec30e64173290be89d7e84aabc0
diff --git a/generator/requirements.txt b/generator/requirements.txt index 18e30b0..266b0f7 100644 --- a/generator/requirements.txt +++ b/generator/requirements.txt @@ -12,9 +12,9 @@ importlib-metadata==5.0.0 \ --hash=sha256:da31db32b304314d044d3c12c79bd59e307889b287ad12ff387b3500835fc2ab \ --hash=sha256:ddb0...
python
diff --git a/tests/requests/test_initilize_request.py b/tests/requests/test_initilize_request.py new file mode 100644 index 0000000..cd4caa4 --- /dev/null +++ b/tests/requests/test_initilize_request.py @@ -0,0 +1,407 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +i...
2022-10-18T22:39:44+00:00Z
Issue with parsing SemanticTokensClientCapabilitiesRequestsType Tried testing it with my current client (coc.nvim) and it breaks with the following deserialization message: ```traceback ERROR:pygls.protocol:Unable to deserialize message + Exception Group Traceback (most recent call last): | File "/home/sro...
0.0.1-alpha
8a36217e1b7cd26c0ab4bcc1db73d7d75c29fe8a
["tests.requests.test_initilize_request::test_initialize_request_params[0]"]
["tests.test_cattrs_special_cases::test_simple", "tests.test_cattrs_special_cases::test_numeric_validation", "tests.test_cattrs_special_cases::test_forward_refs", "tests.test_cattrs_special_cases::test_union_with_complex_type[data0]", "tests.test_cattrs_special_cases::test_union_with_complex_type[data1]", "tests.test_c...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ttu__ruuvitag-sensor-52
ttu/ruuvitag-sensor
d786efc79a3e9199b2e59e98fb7da83d0ad52bc3
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a94649..3b65854 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Changelog ### [Unreleased] +* CHANGE: Add RSSI reporting ## [2.0.0] - 2022-08-03 * CHANGE: Support only Python 3.7 and above diff --git a/README.md b/README.md index 363727d..c21c93b 1...
python
diff --git a/tests/test_decoder.py b/tests/test_decoder.py index 879fb15..d8ea59d 100644 --- a/tests/test_decoder.py +++ b/tests/test_decoder.py @@ -132,9 +132,10 @@ class TestDecoder(TestCase): movement_counter = '42' measurement_sequence = '00CD' mac = 'CBB8334C884F' + rssi = 'C6' ...
2022-08-07T04:38:16+00:00Z
RSSI Hi, can you add RSSI to the list ? A quick hack lto Df3Decoder like this seems to work: def _get_rssi(self, data): return data[-1]-256 'rssi': self._get_rssi(byte_data) {'acceleration': 1038.0934447341433, 'pressure': 1008.27, 'temperature': 24.75, 'acceleration_y':...
That is a good addition! There is just one thing we should add to that code. RSSI value is added by the receiver, so that should also check somehow that if payload actually contains RSSI data. Any idea how to do that? Don't really know.. maybe inqure if the device supports and then just assume its there? :) hcico...
0.0.1-alpha
89a74bafc6fb9bc45f8dc28ba20eb359a174ac3d
["tests.test_decoder.TestDecoder::test_df5decode_is_valid", "tests.test_ruuvitag_sensor.TestRuuviTagSensor::test_get_data_for_sensors"]
["tests.test_data_formats.TestDataFormats::test_convert_data_valid_data", "tests.test_data_formats.TestDataFormats::test_convert_data_not_valid_binary", "tests.test_data_formats.TestDataFormats::test_convert_data_not_valid", "tests.test_data_formats.TestDataFormats::test_get_data_format_3_valid_data", "tests.test_data_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyfar__pyfar-706
pyfar/pyfar
1cb54bd1830d74ca479d3535fcc901298ca86046
diff --git a/pyfar/io/io.py b/pyfar/io/io.py index e8fcb94..a52faf1 100644 --- a/pyfar/io/io.py +++ b/pyfar/io/io.py @@ -316,7 +316,7 @@ def write(filename, compress=False, **objs): """ # Check for .far file extension filename = pathlib.Path(filename).with_suffix('.far') - compression = zipfile.ZIP_ST...
python
diff --git a/tests/test_io.py b/tests/test_io.py index f57a871..7eff393 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -451,6 +451,16 @@ def test_write_read_multiplePyfarObjects( assert dict_of_builtins.items() <= actual.items() +def test_write_read_compression(sine, tmpdir): + """Test whether comp...
2024-09-23T13:46:33+00:00Z
io.write(..., compress=True) increases file size ## General * pyfar version: 0.6.9 * Python version: 3.11.9 * Operating System: Ubuntu 23.10 * Did you install pyfar via pip: yes ## Description Hi guys, I noticed that instead of compressing the data, `pf.io.write()` produces much bigger files when using `...
Thanks for reporting. Seems like its beeing compressed if ``compress=False`` and vice verca. It should be fixed in #707
0.0.1-alpha
3ee9ffd324003c2d949f11f39af7eb39435a0248
["tests.test_io::test_write_read_compression"]
["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_not_implemented", "tests.test_audio_frequency_data::test_data_frequency_init_with_defaults", "tests.test_audio_frequency_data::test_data_frequency_init_...
["tests.test_plot_interaction::test_toggle_plots[2d-time_2d-function_list1]", "tests.test_plot_interaction::test_toggle_colormap", "tests.test_plot_interaction::test_cycle_and_toggle_signals"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nvictus__pqdict-10
nvictus/pqdict
999c5be36d9aa7893e59434bcdc15b570755b179
diff --git a/pqdict/__init__.py b/pqdict/__init__.py index 971b4af..0999f67 100644 --- a/pqdict/__init__.py +++ b/pqdict/__init__.py @@ -503,18 +503,20 @@ PQDict = pqdict # deprecated def minpq(*args, **kwargs): - return pqdict(dict(*args, **kwargs), precedes=lt) + key = kwargs.pop('key', None) + return ...
python
diff --git a/tests/test_pqdict.py b/tests/test_pqdict.py index df6cb6e..91d3a68 100644 --- a/tests/test_pqdict.py +++ b/tests/test_pqdict.py @@ -3,7 +3,7 @@ from datetime import datetime, timedelta from itertools import combinations import operator import random -import sys + import pytest from pqdict import pqd...
2020-08-20T19:55:04+00:00Z
Missing priority key function argument in nsmallest/nlargest functions It seems to me we need to have "priority key function" argument in `nsmallest`/`nlargest` functions.
That's a good suggestion. Happy to review a PR if you're interested in adding this feature. Fixed by #11
0.0.1-alpha
f8d0cc30d30fe3c176d217590ab2e982d7b4636c
["tests.test_pqdict::test_nbest_key"]
["tests.test_pqdict::test_constructor", "tests.test_pqdict::test_equality", "tests.test_pqdict::test_minpq", "tests.test_pqdict::test_maxpq", "tests.test_pqdict::test_fromkeys", "tests.test_pqdict::test_len", "tests.test_pqdict::test_contains", "tests.test_pqdict::test_getitem", "tests.test_pqdict::test_setitem", "test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-benchmark-713
opensearch-project/opensearch-benchmark
14172258a87337ead7b74ce339b409dee833f66d
diff --git a/.pylintrc b/.pylintrc index a71657a..285a676 100644 --- a/.pylintrc +++ b/.pylintrc @@ -360,7 +360,7 @@ indent-after-paren=4 indent-string=' ' # Maximum number of characters on a single line. -max-line-length=140 +max-line-length=180 # Maximum number of lines in a module. max-module-lines=1000 d...
python
diff --git a/tests/worker_coordinator/runner_test.py b/tests/worker_coordinator/runner_test.py index b43bd53..5e19262 100644 --- a/tests/worker_coordinator/runner_test.py +++ b/tests/worker_coordinator/runner_test.py @@ -3435,9 +3435,15 @@ class VectorSearchQueryRunnerTests(TestCase): runner.register_runner(...
2025-01-15T23:15:52+00:00Z
Support gradual ramp up of clients ### Is your feature request related to a problem? Please describe Currently, after a warmup period, all query tasks are executed together at the same time. After the first execution, they respect their configured scheduler for subsequent executions. In cases with a high number of t...
Document a discussion with @rishabh6788 on this feature: Assume the goal of users is to find the max qps, it would be more straightforward to provide a `max_qps` input param. The output user get is the max qps number this ramp feature find out in the end. So we don't require user to set client number and target thro...
0.0.1-alpha
4d96c35d47a26d646002e1cb2c5de09435948d85
["tests.worker_coordinator.runner_test.VectorSearchQueryRunnerTests::test_query_vector_search_should_actually_calculate_recall_with_default_value", "tests.worker_coordinator.runner_test.VectorSearchQueryRunnerTests::test_query_vector_search_should_skip_calculate_recall", "tests.worker_coordinator.worker_coordinator_tes...
["tests.aggregator_test::test_count_iterations_for_each_op", "tests.aggregator_test::test_accumulate_results", "tests.aggregator_test::test_test_execution_compatibility_check", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_weighted_average", "tests.aggregator_test::test_cal...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
microsoft__lsprotocol-308
microsoft/lsprotocol
a13d4489d7e3962cbff6d9424d442000dfd3cd9d
diff --git a/packages/python/lsprotocol/_hooks.py b/packages/python/lsprotocol/_hooks.py index b807e9f..322a6d8 100644 --- a/packages/python/lsprotocol/_hooks.py +++ b/packages/python/lsprotocol/_hooks.py @@ -691,16 +691,20 @@ def _register_capabilities_hooks(converter: cattrs.Converter) -> cattrs.Converte ass...
python
diff --git a/tests/python/requests/test_workspace_symbols_request.py b/tests/python/requests/test_workspace_symbols_request.py new file mode 100644 index 0000000..ceddebb --- /dev/null +++ b/tests/python/requests/test_workspace_symbols_request.py @@ -0,0 +1,90 @@ +# Copyright (c) Microsoft Corporation. All rights reser...
2023-12-02T01:01:26+00:00Z
[Python] Cannot structure `WorkspaceSymbolResponse` with unresolved symbols The _workspace/symbol_ request can include `WorkspaceSymbol` instances where the `location` field only contains a `uri` but not a `range`. The spec models this incomplete `Location` as a distinct type: https://microsoft.github.io/language-serv...
0.0.1-alpha
fc37ce9cebc9c3a7d4ee116eae10392b2444e062
["tests.python.requests.test_workspace_symbols_request::test_workspace_symbols[data0]", "tests.python.requests.test_workspace_symbols_request::test_workspace_symbols[data2]"]
["tests.generator.test_model::test_model_loading", "tests.generator.test_model::test_model_loading_failure", "tests.generator.test_schema::test_validate_with_schema", "tests.python.test_cattrs_special_cases::test_simple", "tests.python.test_cattrs_special_cases::test_numeric_validation", "tests.python.test_cattrs_speci...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
scikit-hep__resample-112
scikit-hep/resample
b6c70e65e92084fe6c3ab39cb25cac1652894ec9
diff --git a/resample/bootstrap.py b/resample/bootstrap.py index 594912f..0dc4888 100644 --- a/resample/bootstrap.py +++ b/resample/bootstrap.py @@ -11,7 +11,7 @@ are taken from scipy.stats. Confidence intervals can be computed with the ordinary percentile method and with the more efficient BCa method. """ -from typ...
python
diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index 7e91f51..061146b 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -56,7 +56,7 @@ def test_resample_shape_1d(method): n_rep = 5 count = 0 with np.errstate(invalid="ignore"): - for bx in resample(x, n_rep, meth...
2022-01-27T14:29:43+00:00Z
Feature request: Allow passing several arrays to `resample.bootstrap.resample` and similar functions First of all, thank you for implementing this package! I [came across this thread on StackOverflow](https://stackoverflow.com/questions/43151401/bootstrapping-multiple-regression-parameters-in-python), this is how I fo...
Hi @JohannesWiesner, thanks for your interest. I think that's a reasonable idea, but arguments could be made either way in my opinion. It would be convenient in some cases to pass two arguments, but on the other hand when we sample we're really only ever drawing from a single (possibly multivariate, including both X an...
0.0.1-alpha
fa17911be9bba20398fd15df964631b50a175bd0
["tests.test_bootstrap::test_random_state", "tests.test_bootstrap::test_resample_several_args[ordinary]", "tests.test_bootstrap::test_resample_several_args[balanced]", "tests.test_bootstrap::test_resample_several_args_incompatible_keywords", "tests.test_jackknife::test_resample_several_args", "tests.test_jackknife::tes...
["tests.test_bootstrap::test_resample_shape_1d[f]", "tests.test_bootstrap::test_resample_shape_1d[t]", "tests.test_bootstrap::test_resample_shape_1d[gamma]", "tests.test_bootstrap::test_resample_shape_1d[poisson]", "tests.test_bootstrap::test_resample_shape_1d[laplace]", "tests.test_bootstrap::test_resample_shape_1d[ba...
["tests.test_bootstrap::test_resample_deprecation", "tests.test_jackknife::test_resample_deprecation", "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" }
matthewwithanm__python-markdownify-59
matthewwithanm/python-markdownify
c8f7cf63e3b675fcef7913396257b1ea3dc90fc0
diff --git a/README.rst b/README.rst index 670ae6c..9a06912 100644 --- a/README.rst +++ b/README.rst @@ -102,6 +102,10 @@ code_language should be annotated with `````python`` or similar. Defaults to ``''`` (empty string) and can be any string. +escape_underscores + If set to ``False``, do not escape ``_`` to `...
python
diff --git a/tests/test_escaping.py b/tests/test_escaping.py index 23a828c..3388b7e 100644 --- a/tests/test_escaping.py +++ b/tests/test_escaping.py @@ -3,6 +3,7 @@ from markdownify import markdownify as md def test_underscore(): assert md('_hey_dude_') == r'\_hey\_dude\_' + assert md('_hey_dude_', escape_un...
2022-01-18T07:51:44+00:00Z
Can you provide an option to disable text escaping? For example, when I convert `<p>INVALID_ERROR_CODE</p>`, I got `INVALID\_ERROR\_CODE`, but I want `INVALID_ERROR_CODE`. So I must call `text.replace(r'\_', '_')`. That's too slow when processing long text. Can I get any help? Thanks.
As REAMD.md describes, I create my custom Converter, and rewirte `process_text` method. Now it works for me. Hi, you can use https://github.com/matthewwithanm/python-markdownify/blob/d3eff116177cf245cae8ce8d6a79e853cf9b5a43/tests/test_escaping.py#L6 for this now. Best Thank you very much.
0.0.1-alpha
bd6b5811223dc7f9c3a3f9e5afa1005ce9a005aa
["tests.test_escaping::test_underscore"]
["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" }
sicara__easy-few-shot-learning-89
sicara/easy-few-shot-learning
c409ceb89d576d8cb1286362df5ab254e6a08d1a
diff --git a/easyfsl/samplers/task_sampler.py b/easyfsl/samplers/task_sampler.py index f3928f3..3a16e13 100644 --- a/easyfsl/samplers/task_sampler.py +++ b/easyfsl/samplers/task_sampler.py @@ -1,12 +1,15 @@ import random -from typing import List, Tuple, Iterator - +from typing import List, Tuple, Iterator, Union impo...
python
diff --git a/easyfsl/tests/samplers/task_sampler_test.py b/easyfsl/tests/samplers/task_sampler_test.py index e4a7d04..957f2ec 100644 --- a/easyfsl/tests/samplers/task_sampler_test.py +++ b/easyfsl/tests/samplers/task_sampler_test.py @@ -1,6 +1,8 @@ from typing import Tuple, List +import numpy as np import pytest +i...
2023-03-30T07:53:01+00:00Z
TaskSampler.episodic_collate_fn(): IndexError: Target 7 is out of bounds. **Problem** I'm trying to use relational networks for a binary classification problem, I used the code from the episodic training tutorial but I encountered some problems while doing that and I think that the source of those problems is the T...
When you are performing classification in the context of a few-shot task, you need the labels (both support and query) to be between 0 and `n_way`. Most metric computation utilities (such as our `evaluate()` methods) rely on this assumption, and breaking it will cause errors (`IndexError`s for instance). If you are...
0.0.1-alpha
a86d5db0482ee01940521025c6b07e81adac2017
["easyfsl.tests.samplers.task_sampler_test.TestCastInputDataToTensorIntTuple::test_raises_error_for_inappropriate_input[input_data0-TypeError]", "easyfsl.tests.samplers.task_sampler_test.TestCastInputDataToTensorIntTuple::test_raises_error_for_inappropriate_input[input_data1-TypeError]", "easyfsl.tests.samplers.task_sa...
["easyfsl.tests.datasets.easy_set_test.TestEasySetInit::test_init_does_not_break_when_specs_are_ok[specs0]", "easyfsl.tests.datasets.easy_set_test.TestEasySetInit::test_init_does_not_accept_non_json_specs[path/to/file.csv]", "easyfsl.tests.datasets.easy_set_test.TestEasySetInit::test_init_does_not_accept_non_json_specs...
["easyfsl.tests.datasets.easy_set_test.TestEasySetListDataInstances::test_list_data_instances_returns_expected_values[class_roots0-images0-labels0]", "easyfsl.tests.datasets.easy_set_test.TestEasySetListDataInstances::test_list_data_instances_lists_only_images[images0-all_files0]", "easyfsl.tests.datasets.easy_set_test...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-38
simonw/git-history
32b8b81c713bffe5df66b4cf0155078a2d7c392d
diff --git a/README.md b/README.md index 84da220..ffb810d 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,8 @@ CREATE VIEW item_version_detail AS select ) as _changed_columns from item_version join commits on commits.id = item_version._commit; +CREATE INDEX [idx_item_version__item] + ON [item_version] ([_...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 73cb0b3..eda0984 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -303,6 +303,8 @@ CREATE TABLE [{namespace}_changed] ( PRIMARY KEY ([item_version], [column]) ); {view} +CREATE INDEX [idx_{namespace}_version__item] +...
2021-12-07T17:08:18+00:00Z
Add index on `item_version._item` Looking up all versions of a specific item is a very common operation.
But when should I add this index? Ideally I would add it when the table is first created, but doing that concisely is blocked on: - https://github.com/simonw/sqlite-utils/issues/349 So I guess I add the index at the very end of the script instead, at least for the moment.
0.0.1-alpha
166cdaecb4cacd5a30c6f62fdccbe105df55d0b7
["tests.test_git_history::test_file_with_id[None]", "tests.test_git_history::test_file_with_id[custom]", "tests.test_git_history::test_file_with_id_full_versions[None]", "tests.test_git_history::test_file_with_id_full_versions[custom]", "tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history:...
["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sepandhaghighi__nafas-143
sepandhaghighi/nafas
e9a3bb334618886bf12b73072ac035c1457bfdd5
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 0b165ad..8051049 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -85,6 +85,7 @@ body: label: Nafas version description: Which version of Nafas are you using? ...
python
diff --git a/test/test.py b/test/test.py index 8750311..aa5c01d 100644 --- a/test/test.py +++ b/test/test.py @@ -245,5 +245,5 @@ nava.errors.NavaBaseError: Sound file's path should be a string. False >>> # testing get_rendered_survey_link for multiple cases >>> get_rendered_survey_link("X", "Medium", {"ratio": [1, 0...
2025-06-03T22:48:34+00:00Z
[Feature]: BPM (Breaths per minute) ### Describe the feature you want to add Add **BPM** to the report ### Describe your proposed solution ```console Program details: Name : Box Level : Beginner Number of Cycles : 4 Unit : 1 seconds Total Time : 01 minutes, 07 seconds ...
0.0.1-alpha
76c9fbfdcc1d26c07cb8f2639315b9062d61b0f8
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
santoshphilip__eppy-410
santoshphilip/eppy
9964b129659aee42768faed9a7d53288d08471a6
diff --git a/eppy/modeleditor.py b/eppy/modeleditor.py index b8cc9d4..ad6c486 100644 --- a/eppy/modeleditor.py +++ b/eppy/modeleditor.py @@ -59,6 +59,10 @@ class IDDAlreadySetError(Exception): """Exception Object""" pass + +class IDDResetError(Exception): + """Exception Object""" + pass def a...
python
diff --git a/tests/test_runner.py b/tests/test_runner.py index 845ff6a..1c5f521 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -71,7 +71,10 @@ def test_version_reader(): # We need to reload modeleditor since the IDF class may have had an IDD # which causes problems. # https://stackoverfl...
2022-12-08T03:39:17+00:00Z
need a way to reset IDD for testing reload(module) was a way of doing this for testing It has started to throw up some hard to debug errors Explore a way writing a function that can safely do this.
:Problem: need a IDF.resetidd() function during testing :Solution: IDF.resetidd() will reset all related idd values
0.0.1-alpha
9e3b1951e63c0c1ca704bc560608594d9c793561
["tests.test_runner::test_version_reader"]
["tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2groups", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2group", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_iddtxt2grouplist", "tests.EPlusInterfaceFunctions_tests.test_iddgroups::test_idd2grouplist", "tests.EPlusInterfaceFuncti...
["tests.test_parse_error::test_capture_real_error"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyfar__pyfar-647
pyfar/pyfar
0e32971c5d05d7982d2037d6eb7c7c0a1cf41782
diff --git a/pyfar/classes/filter.py b/pyfar/classes/filter.py index 4583567..86a491c 100644 --- a/pyfar/classes/filter.py +++ b/pyfar/classes/filter.py @@ -84,8 +84,9 @@ def _repr_string(filter_type, order, n_channels, sampling_rate): if filter_type == "SOS": sec_str = 'section' if order == 1 else 'sec...
python
diff --git a/tests/conftest.py b/tests/conftest.py index 9706b4b..82a404f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -604,7 +604,7 @@ def state(): @pytest.fixture -def filter(coeffs, state): +def filterObject(coeffs, state): """ Filter object. """ return fo.Filter(coefficients=coeffs,...
2024-09-20T12:18:13+00:00Z
Ruff configuration Currently ruff is set-up to replicate the flake8 guidelines, which could be extended. I'm creating this issue to keep track of the different configuration options and respective branches. In progress: - [ ] docstring rules #612 and #685 - [ ] pytest rules #692 - [x] "FIX": Code should not co...
and i would also add the the discussion: - "C4" [flake8-comprehensions](https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4) - "I" sort import, might be good to also uniform our imports and make them properly - "C90" [Checks for functions with a high McCabe complexity.](https://docs.astral.sh/ruff/rule...
0.0.1-alpha
b4462f2d84a5056369bf7840637de00229394b6a
["tests.test_deprecations::test_deprecations_audio_io"]
["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_not_implemented", "tests.test_audio_frequency_data::test_data_frequency_init_with_defaults", "tests.test_audio_frequency_data::test_data_frequency_init_...
["tests.test_plot_interaction::test_toggle_plots[2d-time_2d-function_list1]", "tests.test_plot_interaction::test_toggle_colormap", "tests.test_plot_interaction::test_cycle_and_toggle_signals"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tanghaibao__jcvi-213
tanghaibao/jcvi
73b181da1f9c5a650d634ace0ba9e0ec8b5f7f5d
diff --git a/jcvi/apps/base.py b/jcvi/apps/base.py index a4f5ee6..9919dc2 100644 --- a/jcvi/apps/base.py +++ b/jcvi/apps/base.py @@ -1365,33 +1365,67 @@ def ls_ftp(dir): return files -def download(url, filename=None, debug=True, cookies=None): +def download(url, filename=None, debug=True, cookies=None, handle_...
python
diff --git a/tests/apps/test_base.py b/tests/apps/test_base.py index 9b5f8de..a21aa29 100644 --- a/tests/apps/test_base.py +++ b/tests/apps/test_base.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # -*- coding: UTF-8 -*- +import os + def test_sample_N(): from jcvi.apps.base import sample_N @@ -16,3 +18,24 @@ def ...
2020-02-21T02:57:14+00:00Z
Link broken. May need to replace.. https://github.com/tanghaibao/jcvi/blob/73b181da1f9c5a650d634ace0ba9e0ec8b5f7f5d/jcvi/apps/vecscreen.py#L51 Hi - I think NCBI changed some link formats this year - so this link is broken. May need to be replaced with ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/019/425/GCF_0000...
@rahulvrane Thanks for the update. I just made a couple of changes. Please let me know if there are other issues.
0.0.1-alpha
37a546a275b99d9210dbf78bfa5a3183ba2cb457
["tests.apps.test_base::test_download"]
["tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array0-expected0]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array1-expected1]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array2-expected2]", "tests.algorithms.test_lis::test_longest_incre...
["tests.formats.test_cblast.TestCblast::test_getters", "tests.formats.test_cblast.TestCblast::test_setters", "tests.formats.test_cblast.TestCblast::test_swap", "tests.formats.test_cblast_benchmark::test_cblast", "tests.formats.test_formats::test_script[bed_append_source_ftype-jcvi.formats.gff-bed---append_source --appe...
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
redimp__otterwiki-67
redimp/otterwiki
0dd92cd101cd659f78de8e35a481a1064b3f80bc
diff --git a/otterwiki/renderer.py b/otterwiki/renderer.py index 4fe3450..4e2499e 100644 --- a/otterwiki/renderer.py +++ b/otterwiki/renderer.py @@ -188,7 +188,7 @@ class OtterwikiRenderer: ], ) self.lastword = re.compile(r"([a-zA-Z_0-9\.]+)$") - self.htmlcursor = "<span id=\"curso...
python
diff --git a/tests/test_auth.py b/tests/test_auth.py index 35bcff7..81e6889 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -156,7 +156,7 @@ def app_with_permissions(app_with_user, test_client): html = test_client.post( "/Home/save", data={ - "content_update": "There is no ...
2024-08-02T17:03:31+00:00Z
Improve the Edit/Preview implementation How the switching between `Editor` and `Preview` currenlty works is far from perfect. I would like to change that in a way like it works in e.g. github. This would solve the issue with loosing the Undo/Redo history as well. As discussed in #60.
Released in [2.5.0](https://github.com/redimp/otterwiki/releases/tag/v2.5.0).
0.0.1-alpha
7759c82582778cb09f03e58d75c80b005485c333
["tests.test_auth::test_page_view_permissions", "tests.test_auth::test_page_blame_permissions", "tests.test_auth::test_page_history_permissions", "tests.test_auth::test_page_index_permissions", "tests.test_auth::test_page_changelog_permissions", "tests.test_auth::test_page_edit_permissions", "tests.test_auth::test_page...
["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...
["tests.test_preview::test_preview", "tests.test_preview::test_preview_all", "tests.test_preview::test_preview_list_bug"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nalepae__pandarallel-127
nalepae/pandarallel
5972e02ae27540e4561f3cd84e9b0c73c9fb021a
diff --git a/pandarallel/core.py b/pandarallel/core.py index b2db893..c54ec14 100644 --- a/pandarallel/core.py +++ b/pandarallel/core.py @@ -30,7 +30,7 @@ ON_WINDOWS = os.name == "nt" CONTEXT = multiprocessing.get_context("spawn" if ON_WINDOWS else "fork") # Root of Memory File System -MEMORY_FS_ROOT = "/dev/shm" +...
python
diff --git a/tests/test_pandarallel.py b/tests/test_pandarallel.py index 14363d5..0f66fcf 100644 --- a/tests/test_pandarallel.py +++ b/tests/test_pandarallel.py @@ -1,3 +1,4 @@ +import importlib import math import numpy as np @@ -168,7 +169,7 @@ def test_dataframe_apply_invalid_function(pandarallel_init, exception)...
2023-02-02T16:35:37+00:00Z
OSError: [Errno 28] No space left on device Hi, Hi, How can I prevent the space error bellow ? ``` Traceback (most recent call last): File "/anaconda/lib/python3.6/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/anaconda/lib/python3.6/multiprocessing/pool.py"...
Hi, I guess this issue is unrelated to `pandarallel`. It seems your hard drive is simply full. So you may remove some files from you drive... It happens only when I am using `pandarallel` on relatively big data frame . This config does work : ` pandarallel.initialize(use_memory_fs = False )` Found some relat...
0.0.1-alpha
f168ff63cf1c83080fda7a1592a2d454f0313a74
["tests.test_pandarallel::test_memory_fs_root_environment_variable"]
["tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-False-None]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-False-False]", "tests.test_pandarallel::test_dataframe_apply_invalid_function[RuntimeError-True-None]", "tests.test_pandarallel::test_dataframe_apply_inv...
["tests.test_pandarallel::test_dataframe_groupby_apply[1000-False-None]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-False-False]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-True-None]", "tests.test_pandarallel::test_dataframe_groupby_apply[1000-True-False]", "tests.test_pandarallel::te...
{ "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" }
pytest-dev__pytest-bdd-411
pytest-dev/pytest-bdd
a01ca25e5ae2542ccefb6f621691df651f6bb59e
diff --git a/CHANGES.rst b/CHANGES.rst index 400f2c5..661df2d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,8 @@ 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_outline.py b/tests/feature/test_outline.py index 8f85c5c..e87a332 100644 --- a/tests/feature/test_outline.py +++ b/tests/feature/test_outline.py @@ -79,6 +79,61 @@ def test_outlined(pytester): # fmt: on +def test_multiple_outlined(pytester): + pytester.makefile( + ".fe...
2024-11-13T22:16:36+00:00Z
Tags support for Example sections When I have Feature file like: ```gherkin Feature: Foo Background: Given Step <bar> @cool_background_tag Examples: |bar| | 10| @nice_background_tag Examples: |bar| | 45| Scenario Outline: Fizz Given Step <buzz> @ba...
Any update on this feature? news? @olegpidsadnyi could you please check #413 and provide some timeline for parser rewriting. There could be one good step to untangle development: split parsing and execution models maybe with some marshalling in between as it was done in Cucmber.io project. This feature uses aspec...
0.0.1-alpha
f47c6d2fb55efae18ba1df4319a7f766ee67edcc
["tests.feature.test_outline::test_multiple_outlined", "tests.parser.test_parser::test_parser"]
["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" }
python-injector__injector-192
python-injector/injector
bbaac17330cb6a3dff365a2011013604f9a38ee0
diff --git a/injector/__init__.py b/injector/__init__.py index 885c1af..8a39210 100644 --- a/injector/__init__.py +++ b/injector/__init__.py @@ -699,7 +699,7 @@ def _is_specialization(cls: type, generic_class: Any) -> bool: def _punch_through_alias(type_: Any) -> type: - if getattr(type_, '__qualname__', '') ==...
python
2021-12-20T21:20:03+00:00Z
Python 3.10 regression: injector.UnknownProvider: couldn't determine provider Some users of Fedora 35 [reported](https://gitlab.com/leinardi/gwe/-/issues/162) that an app I developed doesn't work anymore after upgrading from Fedora 43. After some investigation it seems related to the upgrade to Python 3.10. I was a...
Is there any know workaroud (beside downgrading Python) for this issue? @jstasiak any suggestion? Yep this issue is also affecting me. No suggestions, sorry, pull requests fixing this are welcome though. PS. Please provide the exact Python and Injector versions where this happens, for clarity. This is now also an is...
0.0.1-alpha
d7f6f396ebb80c39fda5337a9c8dbd23ce95653f
["injector_test::test_multibind", "injector_test::test_regular_bind_and_provider_dont_work_with_multibind", "injector_test::test_auto_bind_with_newtype", "injector_test::test_callable_provider_injection", "injector_test::test_child_scope", "injector_test::test_newtype_integration_works"]
["README.md::README.md", "injector.__init__::injector.BoundKey", "injector.__init__::injector.CallableProvider", "injector.__init__::injector.InstanceProvider", "injector.__init__::injector.ProviderOf", "injector.__init__::injector.SingletonScope", "injector.__init__::injector.get_bindings", "injector.__init__::injecto...
["injector_test.TestThreadSafety::test_injection_is_thread_safe", "injector_test.TestThreadSafety::test_singleton_scope_is_thread_safe"]
{ "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" }