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
more-itertools__more-itertools-571
more-itertools/more-itertools
ae32ef57502b9def6e2362cff43a453901fc1f4f
diff --git a/more_itertools/more.py b/more_itertools/more.py index b2f9d96..8f7f9a1 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -603,71 +603,70 @@ def strictly_n(iterable, n, too_short=None, too_long=None): >>> iterable = ['a', 'b', 'c', 'd'] >>> n = 4 - >>> strictly_n...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 7fcc1d1..691847b 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -4785,37 +4785,61 @@ class StrictlyNTests(TestCase): def test_basic(self): iterable = ['a', 'b', 'c', 'd'] n = 4 - actual = mi.strictly_n(iter(iterable), ...
2021-10-23T19:09:32+00:00Z
strictly_n should be lazy - return an iterator with a length hint The new `more_itertools.strictly_n` was suggested in #552 and implemented in #558 which is awesome, but it always consumes the `n` elements right-away and returns a list. Instead, I think it should be lazy - return an iterator (optimally with a lengt...
I'll take a PR for this, but note that the items still need to be collected to be passed to `too_short` or `too_long`. @bbayles What is the benefit of collecting the items to pass to these, why not just the amount of items? I guess the `average` example in the docstring is cool, but is it really useful? It's pretty wei...
0.0.1-alpha
2641f21a17b2dff8599eca8d7ee2f570f74b4876
["tests.test_more.StrictlyNTests::test_too_long_custom", "tests.test_more.StrictlyNTests::test_too_short_custom", "tests.test_more.StrictlyNTests::test_too_short_default"]
["tests.test_more.CollateTests::test_alias", "tests.test_more.CollateTests::test_default", "tests.test_more.CollateTests::test_empty", "tests.test_more.CollateTests::test_key", "tests.test_more.CollateTests::test_one", "tests.test_more.CollateTests::test_reverse", "tests.test_more.ChunkedTests::test_even", "tests.test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-distro__distro-332
python-distro/distro
4c0bd866fe266215244e6abcd3a32b88b081294e
diff --git a/src/distro/distro.py b/src/distro/distro.py index c731e8c..8fc5a41 100755 --- a/src/distro/distro.py +++ b/src/distro/distro.py @@ -898,6 +898,15 @@ class LinuxDistribution: if self.uname_attr("id").startswith("aix"): # On AIX platforms, prefer oslevel command output. ver...
python
diff --git a/tests/resources/distros/debian10/bin/lsb_release b/tests/resources/distros/debian10/bin/lsb_release new file mode 100644 index 0000000..7d269dc --- /dev/null +++ b/tests/resources/distros/debian10/bin/lsb_release @@ -0,0 +1,21 @@ +#!/bin/bash +# +# lsb_release command for testing the ld module. +# Only the...
2022-06-06T09:57:33+00:00Z
Minor version missing for Debian >= 10 For Debian >= 10 distro can't get the minor version. This worked for Debian <= 9 at least when you have the `lsb-release` Debian package installed with `distro.version(best=True)` because `lsb_release -a` returned the major and minor version in the `Release` key: ``` $ ca...
Hey @netsandbox, Whereas a small patch (see below) could bring this support to distro, one could argue that this will _break_ `version` output on Debian platforms. From [this response](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931197#30), "Debian version" actually corresponds to what you currently get from ...
0.0.1-alpha
6d446622202849832496efd86031e5fc98ac909d
["tests.test_distro.TestOSRelease::test_debian8_os_release", "tests.test_distro.TestOSRelease::test_debian10_os_release", "tests.test_distro.TestOSRelease::test_raspbian7_os_release", "tests.test_distro.TestOSRelease::test_raspbian8_os_release", "tests.test_distro.TestWithRootDir::test_debian8_os_release", "tests.test_...
["tests.test_distro.TestNonLinuxPlatform::test_cant_use_on_windows", "tests.test_distro.TestCli::test_cli_for_coverage_yuch", "tests.test_distro.TestCli::test_cli_can_parse_root_dir_args", "tests.test_distro.TestCli::test_cli", "tests.test_distro.TestCli::test_cli_json", "tests.test_distro.TestCli::test_cli_with_root_d...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
prometheus__client_python-916
prometheus/client_python
147c9d1ac01ae0c36446d1dee79aae85aaf98a6e
diff --git a/docs/content/multiprocess/_index.md b/docs/content/multiprocess/_index.md index c69cad8..bf57d35 100644 --- a/docs/content/multiprocess/_index.md +++ b/docs/content/multiprocess/_index.md @@ -18,6 +18,7 @@ This comes with a number of limitations: - The pushgateway cannot be used - Gauges cannot use the `...
python
diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py index 6e188e5..77fd3d8 100644 --- a/tests/test_multiprocess.py +++ b/tests/test_multiprocess.py @@ -381,6 +381,22 @@ class TestMultiProcess(unittest.TestCase): os.path.join(self.tempdir, 'gauge_livesum_9999999.db'), ])) + de...
2024-02-01T23:30:06+00:00Z
.remove and .clear not working with multiprocessing mode Trying to remove a given set of labels for a metric doesn't work. The label value is still readable by the collector after it's presumed removal ? any suggestions ?
I have this problem too Yep, this is definitely an issue. At a minimum we should document that they do not work in the multiprocessing section of the readme, but ideally we could figure out a way to support remove/clear in multiprocess. @csmarchbanks Hi Chris, I also run into this issue. After looking around the code b...
0.0.1-alpha
998d8afa78b31fd2ddc3acf11bbc14c2f30fc363
["tests.test_multiprocess.TestMultiProcess::test_remove_clear_warning"]
["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" }
mjpost__sacrebleu-228
mjpost/sacrebleu
574e88fc902edf5846bd3e15a4b0388a2f2088ee
diff --git a/sacrebleu/metrics/ter.py b/sacrebleu/metrics/ter.py index 3078656..efb45fc 100644 --- a/sacrebleu/metrics/ter.py +++ b/sacrebleu/metrics/ter.py @@ -125,7 +125,14 @@ class TER(Metric): :return: A `TERScore` object. """ total_edits, sum_ref_lengths = stats[0], stats[1] - sco...
python
diff --git a/test/test_ter.py b/test/test_ter.py index 8457a5c..df650a9 100644 --- a/test/test_ter.py +++ b/test/test_ter.py @@ -7,6 +7,8 @@ test_cases = [ (['aaaa bbbb cccc dddd'], ['aaaa bbbb cccc dddd'], 0), # perfect match (['dddd eeee ffff'], ['aaaa bbbb cccc'], 1), # no overlap ([''], ['a'], 1), ...
2023-05-22T12:47:59+00:00Z
TER between two empty strings is 100 I am not sure whether this is expected behavior, but I just found out that when calculating TER between two empty strings yields a TER score of 100. I would expect 0. The use case is subtitle correction. If the subtitle system does not generate a subtitle (empty string), and som...
Any ideas @ales-t ? Good question. I've done a quick check of `tercom` outputs: * For an empty reference and non-empty hypothesis, the output is `Infinity`. So `sacrebleu` is not consistent with `tercom` here. * If both are empty, `tercom` outputs `NaN`. Since we're not consistent with tercom here anyway, maybe ...
0.0.1-alpha
8a742aef9920c4d763ba0b4ae08532ae16ac9cd9
["test.test_ter::test_ter[hypotheses4-references4-0]"]
["test.test_api::test_api_get_source[wmt19-de-en-1-Sch\\xf6ne M\\xfcnchnerin 2018: Sch\\xf6ne M\\xfcnchnerin 2018 in Hvar: Neun Dates-The Beauty of Munich 2018: the Beauty of Munich 2018 in Hvar: Nine dates]", "test.test_api::test_api_get_source[mtnt1.1/train-ja-en-10-0\\u6b73\\u304b\\u3089100\\u6b73\\u306e\\u5973\\u60...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pylessard__python-udsoncan-53
pylessard/python-udsoncan
3012c716299730c23f58d7e545d5bb22f301d1c7
diff --git a/doc/source/udsoncan/client.rst b/doc/source/udsoncan/client.rst index c82ef16..ef5bd50 100755 --- a/doc/source/udsoncan/client.rst +++ b/doc/source/udsoncan/client.rst @@ -54,8 +54,8 @@ The client configuration must be a dictionary with the following keys defined: .. attribute:: exception_on_unexpected_re...
python
diff --git a/test/client/test_client.py b/test/client/test_client.py index abdb966..0184496 100755 --- a/test/client/test_client.py +++ b/test/client/test_client.py @@ -107,6 +107,31 @@ class TestClient(ClientServerTest): self.assertGreater(diff, timeout, 'Timeout raised after %.3f seconds when it should b...
2020-07-19T15:37:55+00:00Z
No exception is raised when UDS server respond with no Session Params on Diagnostic Control Session Request The interpret_response method of the Diagnostic Session service does not raise an InvalidResponseException if the UDS Server respond back to with no session control params. https://github.com/pylessard/python-...
Thanks, It was optional in the 2006 version, which is the standard I initially used to write to library. I will update accordingly. I guess the best approach would be to add a parameter telling what version of the standard needs to be supported. And what version are you using, in my document, the section is 9.2, no...
0.0.1-alpha
39e95f0ff13d7da28f77f81546191de2a37fb9d1
["test.client.test_client.TestClient::test_p2_star_timeout_overrided_by_diagnostic_session_control", "test.client.test_diagnostic_session_control.TestDiagnosticSessionControl::test_dsc_success_2006", "test.client.test_diagnostic_session_control.TestDiagnosticSessionControl::test_dsc_success_2013_plus", "test.client.tes...
["test.client.test_read_dtc_information.TestReportNumberOfEmissionsRelatedOBDDTCByStatusMask::test_bad_length_response_exception", "test.client.test_read_dtc_information.TestReportNumberOfEmissionsRelatedOBDDTCByStatusMask::test_bad_length_response_no_exception", "test.client.test_read_dtc_information.TestReportNumberO...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
prometheus__client_python-501
prometheus/client_python
56a8a533d094d7c64881ec510b96a167d9da5786
diff --git a/prometheus_client/metrics.py b/prometheus_client/metrics.py index 4094449..b34ca81 100644 --- a/prometheus_client/metrics.py +++ b/prometheus_client/metrics.py @@ -656,6 +656,7 @@ class Enum(MetricWrapperBase): def state(self, state): """Set enum metric state.""" + self._raise_if_not...
python
diff --git a/tests/test_core.py b/tests/test_core.py index 2d6f83f..f0b856a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -428,6 +428,7 @@ class TestEnum(unittest.TestCase): self.assertEqual(0, self.registry.get_sample_value('el', {'l': 'a', 'el': 'a'})) self.assertEqual(0, self.registry...
2020-02-29T15:12:36+00:00Z
Enums not checking labelnames are valid This should throw an exception: ``` e = Enum("a", "b", labelnames=('taskId', ), states=["foo"]) e.state("foo") ```
0.0.1-alpha
72317c15d681ff4c4c092e4da71b57e03d45dc86
["tests.test_core.TestEnum::test_labels"]
["tests.openmetrics.test_exposition.TestGenerateText::test_counter", "tests.openmetrics.test_exposition.TestGenerateText::test_counter_total", "tests.openmetrics.test_exposition.TestGenerateText::test_enum", "tests.openmetrics.test_exposition.TestGenerateText::test_escaping", "tests.openmetrics.test_exposition.TestGene...
["tests.test_core.TestCounter::test_function_decorator", "tests.test_core.TestGauge::test_inprogress_function_decorator", "tests.test_core.TestGauge::test_time_function_decorator", "tests.test_core.TestSummary::test_function_decorator", "tests.test_core.TestHistogram::test_function_decorator"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
movingpandas__movingpandas-367
movingpandas/movingpandas
7d88a6fd407457f6aca47f45a7a2b2019af626d9
diff --git a/movingpandas/trajectory_collection.py b/movingpandas/trajectory_collection.py index b0de581..2a7c5c5 100644 --- a/movingpandas/trajectory_collection.py +++ b/movingpandas/trajectory_collection.py @@ -230,6 +230,25 @@ class TrajectoryCollection: if traj.id == traj_id: return tr...
python
diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py index 5377a3b..72bf633 100644 --- a/movingpandas/tests/test_trajectory_collection.py +++ b/movingpandas/tests/test_trajectory_collection.py @@ -91,6 +91,11 @@ class TestTrajectoryCollection: assert ...
2024-05-11T17:38:05+00:00Z
Add TrajectoryCollection.get_trajectories(object_id): TrajectoryCollection method I'm thinking a get_trajectories method takes a obj_id_col value and returns trajectories for that obj_id_col value
Is this not covered by https://movingpandas.readthedocs.io/en/main/trajectorycollection.html#movingpandas.TrajectoryCollection.get_trajectory ? Edit: Ah, I see. The new function would take the object ID instead of the trajectory ID and it would return a TrajectoryCollection
0.0.1-alpha
a7ef98e1dff5136afc5bc307e8b9f183a06e2971
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_get_trajectories"]
["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" }
matiasb__python-unidiff-52
matiasb/python-unidiff
71f510b181dbb3bb3885fe032e81b0d3258b4287
diff --git a/unidiff/constants.py b/unidiff/constants.py index 3853743..5393421 100644 --- a/unidiff/constants.py +++ b/unidiff/constants.py @@ -50,6 +50,9 @@ RE_HUNK_EMPTY_BODY_LINE = re.compile( RE_NO_NEWLINE_MARKER = re.compile(r'^\\ No newline at end of file') +RE_BINARY_DIFF = re.compile( + r'^Binary files...
python
diff --git a/tests/samples/sample8.diff b/tests/samples/sample8.diff new file mode 100644 index 0000000..5ab192e --- /dev/null +++ b/tests/samples/sample8.diff @@ -0,0 +1,11 @@ +diff --git a/foo.bin b/foo.bin +new file mode 100644 +index 0000000..af000000 +Binary files /dev/null and b/foo.bin differ +diff --git a/bar.b...
2020-03-20T19:29:58+00:00Z
[git] binaries files ignored ``` Binary files a/example.bin and b/example.bin differ ``` i only see text files listed in my added_files, modified_files, deleted_files lists. I am having trouble finding a way to get the file changed out of this module when the files are binary :\ Any thing I can do to help/get suppo...
0.0.1-alpha
7b6f2ca219f502f3187cca3d3764dd7774e1a6b8
["tests.test_parser.TestUnidiffParser::test_parse_diff_with_new_and_modified_binary_files"]
["tests.test_parser.TestVCSSamples::test_samples", "tests.test_line.TestLine::test_equal", "tests.test_line.TestLine::test_is_added", "tests.test_line.TestLine::test_is_context", "tests.test_line.TestLine::test_is_removed", "tests.test_line.TestLine::test_not_equal", "tests.test_line.TestLine::test_repr", "tests.test_l...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nteract__testbook-69
nteract/testbook
34cede054938fe361b10ac30a8d15e979abbb3e4
diff --git a/testbook/client.py b/testbook/client.py index 8a341f3..7297d85 100644 --- a/testbook/client.py +++ b/testbook/client.py @@ -138,12 +138,35 @@ class TestbookNotebookClient(NotebookClient): """ Return cell text output """ + cell_index = self._cell_index(cell) + return...
python
diff --git a/testbook/tests/conftest.py b/testbook/tests/conftest.py new file mode 100644 index 0000000..ed1b2f8 --- /dev/null +++ b/testbook/tests/conftest.py @@ -0,0 +1,46 @@ +from typing import List, Optional + +import pytest +from jupyter_client import kernelspec +from nbformat.notebooknode import NotebookNode +fro...
2020-11-10T08:36:57+00:00Z
Add `cell_execute_result` to `TestbookNotebookClient` Similarly to `cell_output_text`, https://github.com/nteract/testbook/blob/957cc4df52f055f5c403202d28281695f802c571/testbook/client.py#L137-L146 it would be nice to have a method `cell_execute_result`. What do you think?
Yes, for sure. However, there is an internal static method - [`TestbookNotebookClient._execute_result`](https://github.com/nteract/testbook/blob/34cede054938fe361b10ac30a8d15e979abbb3e4/testbook/client.py#L53) which does the job. Perhaps we could implement a new function `cell_execute_result` which would internally ...
0.0.1-alpha
be1bd7316aee3266db9a262b01f8835851053e27
["testbook.tests.test_client::test_cell_execute_result_index", "testbook.tests.test_client::test_cell_execute_result_tag", "testbook.tests.test_client::test_cell_execute_result_indexerror", "testbook.tests.test_client::test_cell_execute_result_tagnotfound"]
["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" }
weaviate__weaviate-python-client-82
weaviate/weaviate-python-client
973dafe214d2e8552ea1c340ee747202eb5f2a3e
diff --git a/weaviate/util.py b/weaviate/util.py index cc43798..b4b71d8 100644 --- a/weaviate/util.py +++ b/weaviate/util.py @@ -11,6 +11,8 @@ from io import BufferedReader import validators import requests +from weaviate.exceptions import SchemaValidationException + def image_encoder_b64(image_or_image_path: Un...
python
diff --git a/test/test_util.py b/test/test_util.py index 4f4225b..a62a007 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -1,8 +1,22 @@ import unittest from copy import deepcopy from unittest.mock import patch, Mock -from weaviate.util import * -from weaviate.util import _get_dict_from_object, _is_sub_sc...
2021-10-26T08:29:03+00:00Z
`Client().schema.contains()` does not accept class schemas This does not create any schemas: ```python if not client.schema.contains(class_schema): client.schema.create_class(class_schema) ``` The workaround is: ```python if not client.schema.contains({'classes': [class_schema]}): client.schema.cre...
name class schema is not defined
0.0.1-alpha
17cb37867be93c4dc74093854980c1a35b5c3bfe
["test.test_util.TestUtil::test__is_sub_schema"]
["test.classification.test_classification.TestClassification::test__check_status", "test.classification.test_classification.TestClassification::test_get", "test.classification.test_classification.TestClassification::test_is_complete", "test.classification.test_classification.TestClassification::test_is_failed", "test.c...
["test.test_util.TestUtil::test__get_dict_from_object"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
sissaschool__xmlschema-376
sissaschool/xmlschema
2c7cc33360f2a0d36db023b1f49d3d192e294154
diff --git a/doc/api.rst b/doc/api.rst index 0fb8d60..2b46f12 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -24,6 +24,7 @@ Errors and exceptions .. autoexception:: xmlschema.XMLSchemaEncodeError .. autoexception:: xmlschema.XMLSchemaChildrenValidationError +.. autoexception:: xmlschema.XMLSchemaStopValidation .. a...
python
diff --git a/tests/validation/test_decoding.py b/tests/validation/test_decoding.py index de07387..a5d8648 100644 --- a/tests/validation/test_decoding.py +++ b/tests/validation/test_decoding.py @@ -1800,6 +1800,20 @@ class TestDecoding(XsdValidatorTestCase): obj = self.vh_schema.decode(self.vh_xml_file, namespa...
2023-12-21T11:51:37+00:00Z
xsd_schema to_dict only read n amount of data I have the following code: xsd_schema = XMLSCHEMA11(await schema_file.read()) xml_dict = xsd_schema.to_dict(await data_file.read()) and i want to convert the data file to dict but only for n amount of data. i have files with milions of objects and i want to read only t...
Currently no option is available for doing this, but in 3.0 develop I've already included a callable option (*stop_validation*) for stopping or skipping validation on certain custamizable condition. I'll check if a similar option is applicable on decoding (maybe to merge in a single option). Hi, in new major releas...
0.0.1-alpha
44b94799241df79e6261890b555a37e932361f3c
["tests.validation.test_decoding.TestDecoding::test_validation_hook_argument", "tests.validation.test_decoding.TestDecoding11::test_validation_hook_argument", "tests.validation.test_validation.TestValidation::test_validation_hook_argument", "tests.validation.test_validation.TestValidation11::test_validation_hook_argume...
["tests.test_cli.TestConsoleScripts::test_get_converter", "tests.test_cli.TestConsoleScripts::test_get_loglevel", "tests.test_cli.TestConsoleScripts::test_json2xml_command_01", "tests.test_cli.TestConsoleScripts::test_json2xml_command_02", "tests.test_cli.TestConsoleScripts::test_json2xml_command_03", "tests.test_cli.T...
["tests.test_typing.TestTyping::test_extra_validator__issue_291", "tests.test_typing.TestTyping::test_schema_source", "tests.test_typing.TestTyping::test_simple_types"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-482
microsoft/fabric-cicd
d98cae2d3d90e81f612084a06f2e39a97b65fed0
diff --git a/src/fabric_cicd/publish.py b/src/fabric_cicd/publish.py index 9f42d2e..db1a6b9 100644 --- a/src/fabric_cicd/publish.py +++ b/src/fabric_cicd/publish.py @@ -127,15 +127,15 @@ def publish_all_items( if _should_publish_item_type("Warehouse"): print_header("Publishing Warehouses") items....
python
diff --git a/tests/test_publish.py b/tests/test_publish.py index 5ad222f..319afa5 100644 --- a/tests/test_publish.py +++ b/tests/test_publish.py @@ -340,3 +340,95 @@ def test_unpublish_with_feature_flags_enabled(mock_endpoint, caplog): # Restore original feature flags constants.FEATURE_FLAG.cl...
2025-08-25T14:55:01+00:00Z
Mirrored Database Deployed After Lakehouse ### Library Version latest ### What is the problem? Because mirrored databases are deployed after lakehouses, the shortcuts can't be established in a lakehouse to the mirrored db. ### Is there an ideal solution? _No response_ ### Additional context, screenshots, logs, e...
@FabFricator created new bug to track this. <img width="864" height="167" alt="Image" src="https://github.com/user-attachments/assets/5fc0b55a-995e-4125-8929-6dd3a9fd9f66" /> @FabFricator adding your comment here <img width="816" height="814" alt="Image" src="https://github.com/user-attachments/assets/a2906c6e-909d-4...
0.0.1-alpha
047755ad03e914339a345b3f06091f95a7d0de50
["tests.test_publish::test_mirrored_database_published_before_lakehouse"]
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-502
more-itertools/more-itertools
0b8e810c4ee23c87af5c265a7685fdec5d59ebb4
diff --git a/docs/api.rst b/docs/api.rst index 806daaf..2fa92a8 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -232,6 +232,7 @@ consume iterables. .. autofunction:: always_iterable .. autofunction:: always_reversible +.. autofunction:: countable .. autofunction:: consumer .. autofunction:: with_iter .. autoclas...
python
diff --git a/tests/test_more.py b/tests/test_more.py index d155a7c..e4b94f3 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -4363,3 +4363,20 @@ class PermutationIndexTests(TestCase): def test_invalid_match(self): with self.assertRaises(ValueError): mi.permutation_index(tuple('axe'...
2021-02-09T12:06:58+00:00Z
Idea: An iterator wrapper that counts items yielded so far Sometimes I find that I have an iterable that I want to consume, but as a side effect I want to count the number of items yielded: ```python counting_iterator = CountingIterator(my_iterable) consume(counting_iterator) counting_iterator.counter # -> number...
Isn't that just len(my_iterable)? Perhaps it's most useful to think about cases where iteration over `my_iterable` is expensive (so the `len` call is wasteful) or `my_iterable` is an iterator that can't be re-iterated over once exhausted (so code that wants to separately call `len` and `consume` would need to cache ele...
0.0.1-alpha
28d603b0ddf3c3b0fa77cbb80071591c9f99ba44
["tests.test_more.CountableTests::test_basic", "tests.test_more.CountableTests::test_empty"]
["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" }
ncclient__ncclient-601
ncclient/ncclient
a001efed8c60ac1b7019030c8b19194e321c96ea
diff --git a/ncclient/transport/ssh.py b/ncclient/transport/ssh.py index 483f9d3..d179680 100644 --- a/ncclient/transport/ssh.py +++ b/ncclient/transport/ssh.py @@ -406,17 +406,16 @@ class SSHSession(Session): saved_exception = None for key_filename in key_filenames: - for cls in (paramik...
python
diff --git a/test/unit/transport/test_ssh.py b/test/unit/transport/test_ssh.py index b4b44ed..73a82be 100644 --- a/test/unit/transport/test_ssh.py +++ b/test/unit/transport/test_ssh.py @@ -164,7 +164,7 @@ class TestSSH(unittest.TestCase): obj._auth,'user', None, [], True, False) @patch('paramiko.tra...
2024-11-11T09:21:47+00:00Z
ncclient doesn't support ssh certificate authentication ncclient directly tries to [load SSH private keys depending on their type](https://github.com/ncclient/ncclient/blob/652ef67b266df0ee02bbbbc4cc6eb09ca01f4878/ncclient/transport/ssh.py#L408-L419), circumventing Paramiko's [SSH certificate detection](https://github...
0.0.1-alpha
c246b2ff438456294e2a672120a4a40a140f363d
["test.unit.transport.test_ssh.TestSSH::test_auth_default_keyfiles", "test.unit.transport.test_ssh.TestSSH::test_auth_default_keyfiles_exception", "test.unit.transport.test_ssh.TestSSH::test_auth_keyfiles", "test.unit.transport.test_ssh.TestSSH::test_auth_keyfiles_exception"]
["test.unit.devices.test_alu.TestAluDevice::test_add_additional_operations", "test.unit.devices.test_alu.TestAluDevice::test_get_capabilities", "test.unit.devices.test_alu.TestAluDevice::test_get_xml_base_namespace_dict", "test.unit.devices.test_alu.TestAluDevice::test_get_xml_extra_prefix_kwargs", "test.unit.devices.t...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
zobweyt__textcase-4
zobweyt/textcase
a505ad930d70d02e9ae0e6b84b7b04c853e2d4f0
diff --git a/CHANGELOG.md b/CHANGELOG.md index be7a3d0..2f4b211 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,18 @@ Acronym identification fixes. - update ACRONYM to correctly identify acronym boundaries ([`dd604b0`](https://github.com/zobweyt/textcase/commit/dd604b0725329ae71be2212e694087216d57d388)) ...
python
diff --git a/tests/boundary/test_custom.py b/tests/boundary/test_custom.py index c329459..bc8d6fa 100644 --- a/tests/boundary/test_custom.py +++ b/tests/boundary/test_custom.py @@ -2,16 +2,11 @@ from textcase import case, convert from textcase.boundary import Boundary -def test_custom_simple_boundary() -> None: - ...
2025-04-13T17:27:28+00:00Z
feature: add `Boundary.from_delimiter` static method ### Search for Existing Issues - [x] I've searched the [issues](https://github.com/zobweyt/textcase/issues?q=is%3Aissue+label%3A%22type%3A%20feature%22+sort%3Aupdated). - [x] I've searched the [discussions](https://github.com/zobweyt/textcase/discussions). ### Fea...
0.0.1-alpha
ff46f04051347fca94d3f2dde191c881d8b024bf
["tests.boundary.test_custom::test_boundary_from_delimiter"]
["tests.boundary.test_boundaries::test_underscore", "tests.boundary.test_boundaries::test_hypen", "tests.boundary.test_boundaries::test_space", "tests.boundary.test_boundaries::test_lower_upper", "tests.boundary.test_boundaries::test_upper_lower", "tests.boundary.test_boundaries::test_acronym", "tests.boundary.test_bou...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mwaskom__seaborn-3230
mwaskom/seaborn
64ef8cfd563c41341c0309518755ed89c0e1315e
diff --git a/doc/whatsnew/v0.13.0.rst b/doc/whatsnew/v0.13.0.rst index 3684d39..117921d 100644 --- a/doc/whatsnew/v0.13.0.rst +++ b/doc/whatsnew/v0.13.0.rst @@ -12,3 +12,5 @@ v0.13.0 (Unreleased) - |Fix| Fixed a bug introduced in v0.12.0 where :func:`histplot` added a stray empty `BarContainer` (:pr:`3246`). - |Fix...
python
diff --git a/tests/test_relational.py b/tests/test_relational.py index 5c37674..ca7970d 100644 --- a/tests/test_relational.py +++ b/tests/test_relational.py @@ -680,6 +680,11 @@ class TestRelationalPlotter(Helpers): for text in g.legend.texts: assert float(text.get_text()) > 1e7 + def test_li...
2023-04-16T21:50:34+00:00Z
TypeError with `dashes` kwarg to lineplot since 0.12 We just noticed that code that used to work for 0.11, now causes a TypeError. Here is a mimimal reproducible example: ```python import numpy as np import pandas as pd import seaborn as sns df = pd.DataFrame(np.random.normal(size=(10, 2))) sns.linep...
Likely caused by https://github.com/mwaskom/seaborn/pull/2449/files (based on the release notes the relevant change was folded in there, although it is only tangentially related to the main thrust of that PR). Closed by #3316
0.0.1-alpha
bf0cfec0627bee4b757f033ff504c0a520a3cd5b
["tests.test_relational.TestRelationalPlotter::test_lineplot_2d_dashes"]
["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" }
nerdocs__pydifact-58
nerdocs/pydifact
57e9980b573e21d4bc2a000ff4c7c361344a92f4
diff --git a/pydifact/parser.py b/pydifact/parser.py index 21a26c1..73a15d5 100644 --- a/pydifact/parser.py +++ b/pydifact/parser.py @@ -30,12 +30,13 @@ from pydifact.control import Characters class Parser: """Parse EDI messages into a list of segments.""" - def __init__(self, factory: SegmentFactory = None)...
python
diff --git a/tests/test_interchange_parsing.py b/tests/test_interchange_parsing.py new file mode 100644 index 0000000..b4cfed0 --- /dev/null +++ b/tests/test_interchange_parsing.py @@ -0,0 +1,72 @@ +# pydifact - a python edifact library +# Copyright (C) 2017-2018 Christian González +# +# This program is fr...
2023-05-09T12:58:09+00:00Z
Parser: enable configurable control characters and Parser reuse The German energy sector uses a EDIFACT subset for market communication ([edi@energy]( https://www.edi-energy.de/)), which implements a set of control characters differing from the current defaults (see the decimal separator on p. 49 [Allgemeine Festlegu...
Yes, it's always a shame that there are established standards, and companies just ignore them and cook their own soup. I don't have time to implement this, but it seems to be a requirement on your side, so if you want to implement this, it surely would be a helpful enhancement! Done: https://github.com/nerdocs/pydifact...
0.0.1-alpha
3210bac29fb389b733b7e3d8da52e17e3153e895
["tests.test_interchange_parsing::test_with_default_parser", "tests.test_interchange_parsing::test_configured_parser_and_una", "tests.test_interchange_parsing::test_configured_parser_and_differing_una", "tests.test_interchange_parsing::test_configured_parser_and_no_una", "tests.test_parser::test_parsing_with_new_defaul...
["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" }
modal-labs__pytest-markdown-docs-31
modal-labs/pytest-markdown-docs
7f019eed106f3d2ab43181e121fc5eba548e2ed3
diff --git a/README.md b/README.md index cbf55a1..9aacd37 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,21 @@ The following options can be specified using MDX comments: This approach allows you to add metadata to the code block without modifying the code fence itself, making it particularly useful in MDX env...
python
diff --git a/tests/plugin_test.py b/tests/plugin_test.py index 8d050d2..1ed61a2 100644 --- a/tests/plugin_test.py +++ b/tests/plugin_test.py @@ -470,3 +470,43 @@ def test_custom_runner(testdir): ], consecutive=True, ) + + +def test_admonition_markdown_text_file(testdir): + testdir.makeconftest...
2025-04-09T10:03:29+00:00Z
Not compatible with `mkdocs`'s admonition A widely used `mkdocs` plugin is introducing admonitions. I have a lot of code examples in expandable admonitions, like so: ``` ??? quote ```python x = 1 ``` ``` Using this syntax, the code blocks are not tested. I believe this is because `markd...
Happy to accept contributions for this! :) I gathered some information about this. Note that I did not test any of this yet. The plugins can be added like this with the example of the admonition: ```python from markdown_it import MarkdownIt from mdit_py_plugins.admon import admon_plugin from mdit_py_plugins ...
0.0.1-alpha
c9328615554dfa987ecc2e2de34774329c40ddb1
["tests.plugin_test::test_admonition_markdown_text_file"]
["tests.plugin_test::test_docstring_markdown", "tests.plugin_test::test_markdown_text_file", "tests.plugin_test::test_continuation", "tests.plugin_test::test_traceback", "tests.plugin_test::test_autouse_fixtures", "tests.plugin_test::test_specific_fixtures", "tests.plugin_test::test_non_existing_fixture_error", "tests....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-532
more-itertools/more-itertools
7b87a0e88286d0476a697867cd61aaf77f11195c
diff --git a/docs/api.rst b/docs/api.rst index 2fa92a8..9a96904 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -84,6 +84,7 @@ These tools yield items from an iterable, plus additional data. .. autofunction:: intersperse .. autofunction:: padded .. autofunction:: mark_ends +.. autofunction:: repeat_each .. autofunc...
python
diff --git a/tests/test_more.py b/tests/test_more.py index b139827..4381ffe 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -1662,6 +1662,35 @@ class PaddedTest(TestCase): ) +class RepeatEachTests(TestCase): + """Tests for repeat_each()""" + + def test_default(self): + actual = lis...
2021-07-11T16:43:16+00:00Z
repeat_each I hope I didn't overlook any already existing itertool that might cover this. ### Description The iterator repeats each element of the passed iterable _n_ times. ### References [https://stackoverflow.com/questions/24225072/repeating-elements-of-a-list-n-times](https://stackoverflow.com/questions/24...
Feel free to open a PR with your implementation - looks good!
0.0.1-alpha
727f01d070190d0a1ea1135548c40f1f39b53857
["tests.test_more.RepeatEachTests::test_basic", "tests.test_more.RepeatEachTests::test_default", "tests.test_more.RepeatEachTests::test_empty", "tests.test_more.RepeatEachTests::test_negative_repeat", "tests.test_more.RepeatEachTests::test_no_repeat"]
["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" }
microsoft__fabric-cicd-214
microsoft/fabric-cicd
844e5bb29de3ae8a28b4077c3d09fbc66bc47e93
diff --git a/src/fabric_cicd/_parameter/_parameter.py b/src/fabric_cicd/_parameter/_parameter.py index 909a967..300001a 100644 --- a/src/fabric_cicd/_parameter/_parameter.py +++ b/src/fabric_cicd/_parameter/_parameter.py @@ -38,6 +38,8 @@ class Parameter: "spark_pool_replace_value": {"type", "name"}, } ...
python
diff --git a/tests/test_parameter.py b/tests/test_parameter.py new file mode 100644 index 0000000..0791541 --- /dev/null +++ b/tests/test_parameter.py @@ -0,0 +1,657 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +from pathlib import Path + +import pytest +import yaml + +import fabric_c...
2025-05-01T16:22:36+00:00Z
Unit Tests for Parameter Class ### What is the problem? Create unit tests for Parameter class ### Is there an ideal solution? _No response_ ### Additional context _No response_
0.0.1-alpha
f8b48aacb5622773ae9f995a08eea50ce2719f0d
["tests.test_parameter::test_parameter_file_validation", "tests.test_parameter::test_multiple_parameter_validation", "tests.test_parameter::test_validate_parameter[find_replace]", "tests.test_parameter::test_validate_parameter[spark_pool]", "tests.test_parameter::test_validate_parameter_environment_and_filters[find_rep...
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
lovasoa__marshmallow_dataclass-91
lovasoa/marshmallow_dataclass
b6794ce3e64df408e7e5936473254ef962827a4e
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7bd21..4263fbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # marshmallow_dataclass change log +## v8.0.0 + - Added support for validator stacking. This breaks backwards compatability. See https://github.com/lovasoa/marshmallow_dataclass/issues/91. + ...
python
diff --git a/tests/test_class_schema.py b/tests/test_class_schema.py index 3c2efde..b6c9837 100644 --- a/tests/test_class_schema.py +++ b/tests/test_class_schema.py @@ -6,8 +6,9 @@ from uuid import UUID import dataclasses from marshmallow import Schema, ValidationError from marshmallow.fields import Field, UUID as U...
2020-07-13T12:09:03+00:00Z
Validators aren't stackable between NewType and field() Say we have the following class: ```python3 CustomType = NewType("CustomType", str, validate=marshmallow.validate.bla()) @dataclass class CustomObject: some_field: CustomType = field(metadata={"validate": marshmallow.validate.URL()}) ``` I think the ...
Hello, I think this is a legitimate feature request, and I'll happily merge a PR implementing that. Please make sure to add a test for the new behavior and mention the change in the CHANGELOG. This will require a major version bump, since it may break existing code.
0.0.1-alpha
2b5d5e5dbdf8c423ae0374b7153ea756b1217291
["tests.test_class_schema.TestClassSchema::test_validator_stacking"]
["tests.test_attribute_copy.TestAttributesCopy::test_custom_method_not_copied", "tests.test_attribute_copy.TestAttributesCopy::test_custom_property_not_copied", "tests.test_attribute_copy.TestAttributesCopy::test_meta_class_copied", "tests.test_attribute_copy.TestAttributesCopy::test_validates_schema_copied", "tests.te...
["tests.test_field_for_schema.TestFieldForSchema::test_enum", "tests.test_field_for_schema.TestFieldForSchema::test_newtype", "tests.test_field_for_schema.TestFieldForSchema::test_union"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__vscode-black-formatter-395
microsoft/vscode-black-formatter
608c698be2b06aa4e42eb973b1ba885cc0c3920a
diff --git a/.vscode/settings.json b/.vscode/settings.json index 381dec6..fd31c75 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,5 +22,5 @@ "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, "python.testing.cwd": "${workspaceFolder}", - "editor.format...
python
diff --git a/src/test/python_tests/requirements.txt b/src/test/python_tests/requirements.txt index 3b36541..164260c 100644 --- a/src/test/python_tests/requirements.txt +++ b/src/test/python_tests/requirements.txt @@ -4,9 +4,9 @@ # # pip-compile --generate-hashes ./src/test/python_tests/requirements.in # -attrs==2...
2024-01-09T23:23:28+00:00Z
Black does not format correctly strings containing emojis It seems that this extension does not handle correctly formatting strings containing emojis when formatting from vscode. Formatting the file with the black command via cli works correctly. Examples: before ```py s = '😊' x = 'foo' ``` after ```py ...
This may be related to the fact that in python `assert len("😊") == 1` while in javascript (that uses utf-16) `"😊".length == 2`. Javascript recommends converting the string into an array to retrieve the number of characters (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Strin...
0.0.1-alpha
8098bce075912958d23994cfe306405adaaa517c
["src.test.python_tests.test_edit_utils::test_with_emojis[utf-8-expected0]", "src.test.python_tests.test_edit_utils::test_with_emojis[utf-16-expected1]", "src.test.python_tests.test_edit_utils::test_with_emojis[utf-32-expected2]", "src.test.python_tests.test_edit_utils::test_with_emojis2[utf-8-expected0]", "src.test.py...
["src.test.python_tests.test_formatting::test_formatting[sample1]", "src.test.python_tests.test_formatting::test_formatting[sample3]", "src.test.python_tests.test_formatting::test_formatting_cell", "src.test.python_tests.test_formatting::test_skipping_site_packages_files", "src.test.python_tests.test_formatting::test_r...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mdowds__python-mock-firestore-35
mdowds/python-mock-firestore
77858377ea17771c0ecb5c5672932e93dd9057fb
diff --git a/mockfirestore/collection.py b/mockfirestore/collection.py index 781a69e..7302ab8 100644 --- a/mockfirestore/collection.py +++ b/mockfirestore/collection.py @@ -1,5 +1,5 @@ import warnings -from typing import Any, List, Optional, Iterable, Dict, Tuple, Sequence +from typing import Any, List, Optional, Iter...
python
diff --git a/tests/test_collection_reference.py b/tests/test_collection_reference.py index 361e3e0..451abdc 100644 --- a/tests/test_collection_reference.py +++ b/tests/test_collection_reference.py @@ -244,6 +244,25 @@ class TestCollectionReference(TestCase): self.assertEqual({'id': 2}, docs[0].to_dict()) ...
2021-01-09T15:20:39+00:00Z
Add support for using a document snapshot as the query cursor Add support for using a document snapshot as the query cursor to be able to paginate documents in a collection. Example: ``` doc = fs.collection('foo').document('1').get() fs.collection('foo').order_by('id').start_after(doc).limit(2).stream() ``` ...
Closed by #36
0.0.1-alpha
31dd5763c6b32677b5c0120cb7068951b2a2822b
["tests.test_collection_reference.TestCollectionReference::test_collection_end_at_doc_snapshot", "tests.test_collection_reference.TestCollectionReference::test_collection_end_before_doc_snapshot", "tests.test_collection_reference.TestCollectionReference::test_collection_start_after_doc_snapshot", "tests.test_collection...
["tests.test_mock_client.TestMockFirestore::test_client_get_all", "tests.test_collection_reference.TestCollectionReference::test_collection_addDocument", "tests.test_collection_reference.TestCollectionReference::test_collection_end_at", "tests.test_collection_reference.TestCollectionReference::test_collection_end_at_or...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
platformio__platformio-core-installer-14
platformio/platformio-core-installer
627a350f6ca5bcad5b4afe7d3468c895648328e4
diff --git a/Makefile b/Makefile index 68b1dd9..427f872 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ format: black --target-version py27 ./tests test: - py.test --verbose --capture=no --exitfirst -n 6 --dist=loadscope tests + py.test --verbose --capture=no --exitfirst -n 1 --dist=loadscope tests befor...
python
diff --git a/tests/test_core.py b/tests/test_core.py new file mode 100644 index 0000000..66b2ae9 --- /dev/null +++ b/tests/test_core.py @@ -0,0 +1,37 @@ +# 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-16T15:22:34+00:00Z
Install PIO Core into penv https://github.com/platformio/platformio-node-helpers/blob/master/src/installer/stages/platformio-core.js#L342 1. Add `pioinstaller --dev` option, default = false 2. Install PIo Core into `penv`, using `penv` python.
0.0.1-alpha
077d8e8a29fafe309069c6912cb566c0b2616e11
["tests.test_core::test_install_pio_core"]
["tests.test_packer::test_pioinstaller_packer", "tests.test_penv::test_penv_with_default_python", "tests.test_penv::test_penv_with_downloadable_venv", "tests.test_penv::test_penv_with_portable_python", "tests.test_python::test_check_default_python", "tests.test_python::test_check_conda_python"]
[]
{ "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-63
pyfar/pyfar
e5eff384edd5e55927fcb78007c37e13f5a567c4
diff --git a/pyfar/signal.py b/pyfar/signal.py index 5566681..b443205 100644 --- a/pyfar/signal.py +++ b/pyfar/signal.py @@ -309,6 +309,68 @@ class Signal(Audio): """ return self._data.shape[:-1] + def reshape(self, newshape): + """ + Return reshaped copy of the signal. + + P...
python
diff --git a/tests/test_signal.py b/tests/test_signal.py index 7d10114..7039fbd 100644 --- a/tests/test_signal.py +++ b/tests/test_signal.py @@ -344,6 +344,57 @@ def test_find_nearest_frequency(): npt.assert_allclose(actual, expected) +def test_reshape(): + + # test reshape with tuple + signal_in = Signa...
2021-01-12T09:40:56+00:00Z
creshape and cflatten for Signal class It would be nice if Signal hat a channel_reshape `creshape()` and channel_flatten function that return copies of the signal with another channel layout. Implementation will be analogous to np.flatten and np.reshape, but the last dimension (n_samples, n_bins) can not be changed. ...
I would rather name these functions `reshape` and `flatten`, adding a c for channel is redundant and in my opinion only confusing. Linked to #58 related to copy methods.
0.0.1-alpha
717e9fe3bee7b605ff3a9e26c4dd2660af156f3c
["tests.test_signal::test_reshape", "tests.test_signal::test_reshape_exceptions", "tests.test_signal::test_flatten"]
["tests.test_coordinates::test_coordinates_init", "tests.test_coordinates::test__systems", "tests.test_coordinates::test_coordinate_names", "tests.test_coordinates::test_exist_systems", "tests.test_coordinates::test_systems", "tests.test_coordinates::test_coordinates_init_val", "tests.test_coordinates::test_coordinates...
["tests.test_coordinates::test_show", "tests.test_coordinates::test_get_nearest_k", "tests.test_dsp::test_phase_rad", "tests.test_dsp::test_phase_deg", "tests.test_dsp::test_phase_unwrap", "tests.test_dsp::test_phase_deg_unwrap", "tests.test_eq_area_partitions::test_caps_dim_2", "tests.test_eq_area_partitions::test_cap...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-68
sepandhaghighi/mycoffee
ca716930e2ab9b6e31370d0ff06c47281c3f0560
diff --git a/CHANGELOG.md b/CHANGELOG.md index f096fff..c4ca9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,15 +6,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added -- 4 new water units +- 5 new water units 1. Troy Ounce (`t oz`) 2. Grain (`gr...
python
diff --git a/test/functions_test.py b/test/functions_test.py index cc3b9e3..676999e 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -158,23 +158,24 @@ Coffee units list: Water units list: <BLANKLINE> 1. `cc` - cubic centimeter -2. `ct` - carat -3. `cup` - cup -4. `dsp` - dessertspoon -5. `fl oz` ...
2024-12-30T17:52:27+00:00Z
[Feature]: Centiliters ### Describe the feature you want to add Centiliters(`cl`) unit for `water` ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://www.metric-conversions.org/volume/millilite...
0.0.1-alpha
901cfb7e66166ed2d803c77c999dc2ed484f8e11
["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" }
mondeja__mkdocs-include-markdown-plugin-45
mondeja/mkdocs-include-markdown-plugin
96c9958b6da1d27fb836a39ff4c48486b0ae9856
diff --git a/README.md b/README.md index 8233cb3..8ee3c14 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ content to include. include is wrapped by `<!-- BEGIN INCLUDE -->` and `<!-- END INCLUDE -->` comments which help to identify that the content has been included. Possible values are `true` and `false...
python
diff --git a/tests/test_include_markdown.py b/tests/test_include_markdown.py index f5d9eca..d188bbb 100644 --- a/tests/test_include_markdown.py +++ b/tests/test_include_markdown.py @@ -244,6 +244,111 @@ This must be included. - Baz ''', ), + + # Markdown heading offset 1 + ( + ...
2021-05-19T07:37:34+00:00Z
Feature Request: Add option to offset headings I would like to ability to offset the headings inside a markdown file I import. I have a Markdown file that can both standalone and be imported into another file. This could be an option available for every import. {% include-markdown "docs/test.md" head...
I am working on a PR for this if you don't mind.
0.0.1-alpha
b703027e45352e4c6d2d61e5648e2d0fef6bd696
["tests.test_include_markdown::test_include_markdown[# Header\\n\\n{%\\n include-markdown \"{filepath}\"\\n heading-offset=1\\n%}\\n-# This should be a second level heading.\\n\\nExample data-# Header\\n\\n<!-- BEGIN INCLUDE {filepath} -->\\n## This should be a second level heading.\\n\\nExample data\\n<!-- END INC...
["tests.test_include::test_include[# Header\\n\\n{% include \"{filepath}\" %}\\n-This must be included.-# Header\\n\\nThis must be included.\\n]", "tests.test_include::test_include[# Header\\n\\n{% include \"{filepath}\" %}\\n-This must be included.\\n-# Header\\n\\nThis must be included.\\n]", "tests.test_include::tes...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__sqlite-migrate-11
simonw/sqlite-migrate
240bf2f8d4e70181be9363786c7caa3ce75fbdc5
diff --git a/README.md b/README.md index 3d90f0f..8c5c013 100644 --- a/README.md +++ b/README.md @@ -109,10 +109,11 @@ Migrating creatures.db Schema before: - CREATE TABLE [_sqlite_migrations] ( + CREATE TABLE "_sqlite_migrations" ( [migration_set] TEXT, - [name] TEXT PRIMARY KEY, - [applied_at] TE...
python
diff --git a/tests/test_sqlite_migrate.py b/tests/test_sqlite_migrate.py index 6c068d6..3f1e53a 100644 --- a/tests/test_sqlite_migrate.py +++ b/tests/test_sqlite_migrate.py @@ -52,3 +52,20 @@ def test_two_migration_sets(migrations, migrations2): migrations.apply(db) migrations2.apply(db) assert set(db.ta...
2023-10-27T23:33:26+00:00Z
Migration steps with same name are erroneously skipped Discovered when I had two separate migrations with different `migration_set` names but the same step name. The first migration: ```python from sqlite_migrate import Migrations m1 = Migrations("m1") @m1() def m001_init(db): pass ``` The sec...
Ouch, there's another problem here: https://github.com/simonw/sqlite-migrate/blob/82f3459635b495ae909e0a744ad4326ef94dbe26/sqlite_migrate/__init__.py#L84-L97 The primary key on `_sqlite_migrations` is on `name` - but clearly it should be. compound primary key on (`migration_set`, `name`) instead - otherwise you c...
0.0.1-alpha
8ee3fec859a1359b26c03ffb049d23e311c0d8f3
["tests.test_sqlite_migrate::test_upgrades_sqlite_migrations_from_one_to_two_primary_keys"]
["tests.test_sqlite_migrate::test_basic", "tests.test_sqlite_migrate::test_stop_before", "tests.test_sqlite_migrate::test_two_migration_sets", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR/foo/migrations.py]", "tests.test_sqlite_utils_migrate_...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
procrastinate-org__procrastinate-1212
procrastinate-org/procrastinate
f9a6f44d9fd75f0a4da221156f0a46ba19e6cb74
diff --git a/docs/howto/advanced/retry.md b/docs/howto/advanced/retry.md index d8a5ad7..9c6d6ee 100644 --- a/docs/howto/advanced/retry.md +++ b/docs/howto/advanced/retry.md @@ -9,36 +9,36 @@ app / machine reboots. ## Simple strategies -- Retry 5 times (so 6 attempts total): - - ```python - @app.task(retry=5) - ...
python
diff --git a/tests/unit/test_job_context.py b/tests/unit/test_job_context.py index f6eab09..72ed06f 100644 --- a/tests/unit/test_job_context.py +++ b/tests/unit/test_job_context.py @@ -55,3 +55,19 @@ def test_evolve(app: App, job_factory): abort_reason=lambda: None, ) assert context.evolve(worker_nam...
2025-01-12T15:38:27+00:00Z
Simplify JobContext The `JobContext` class mixes fields that are intended to be used by consumers of this library while other fields are used internally.  As part of `v3`, it is a good time to clean up `JobContext` and only expose the fields that are intended for public use. There is also the opportunity to simpli...
Closed by #1213 (as seen in https://github.com/procrastinate-org/procrastinate/issues/1257#issuecomment-2551505079, maybe the task was useful after all...) > (as seen in https://github.com/procrastinate-org/procrastinate/issues/1257#issuecomment-2551505079, maybe the task was useful after all...) Rather than reintrod...
0.0.1-alpha
a5eebcd5d465ec93dfea085202d99ecdc534c4d1
["tests.unit.test_job_context::test_task"]
["tests.unit.contrib.aiopg.test_aiopg_connector::test_adapt_pool_args_on_connect", "tests.unit.contrib.aiopg.test_aiopg_connector::test_wrap_exceptions_wraps[UniqueViolation-UniqueViolation]", "tests.unit.contrib.aiopg.test_aiopg_connector::test_wrap_exceptions_wraps[DatabaseError-ConnectorException]", "tests.unit.cont...
["tests.integration.contrib.django.test_django_connector::test_wrap_exceptions__integrity_error", "tests.integration.contrib.django.test_django_connector::test_get_sync_connector", "tests.integration.contrib.django.test_django_connector::test_open", "tests.integration.contrib.django.test_django_connector::test_open_poo...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__vscode-mypy-353
microsoft/vscode-mypy
7b9ee5534d8c2837c2d4203a02478d7303168c28
diff --git a/README.md b/README.md index 70b20b6..65bbd10 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,8 @@ There are several settings you can configure to customize the behavior of this e <tr> <td>mypy-type-checker.reportingScope</td> <td><code>file</code></td> - <td>(experimental) Contr...
python
diff --git a/src/test/python_tests/test_data/pyproject.toml b/src/test/python_tests/test_data/pyproject.toml new file mode 100644 index 0000000..c3a0ac5 --- /dev/null +++ b/src/test/python_tests/test_data/pyproject.toml @@ -0,0 +1,2 @@ +[tool.mypy] +files = ["sample1/sample.py"] \ No newline at end of file diff --git a...
2025-03-12T20:32:01+00:00Z
Report only files specified by mypy config Add a setting to check only a subset of files in the workspace folder. The actual list of files is specified in the [files](https://mypy.readthedocs.io/en/stable/config_file.html#confval-files) mypy configuration. We omit path argument to mypy, so that it uses files defined...
0.0.1-alpha
75590161a8b1503d2f4ce2cb6b9c4930d4be07f4
["src.test.python_tests.test_linting::test_custom_reporting_scope"]
["src.test.python_tests.test_extra_paths::test_extra_paths", "src.test.python_tests.test_linting::test_publish_diagnostics_on_open", "src.test.python_tests.test_linting::test_publish_diagnostics_on_save", "src.test.python_tests.test_linting::test_publish_diagnostics_on_close", "src.test.python_tests.test_linting::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yuvadm__viewstate-18
yuvadm/viewstate
545b14eeb5f7cade4a58cc63df4157e0b284f909
diff --git a/viewstate/parse.py b/viewstate/parse.py index b2a85f0..965a769 100644 --- a/viewstate/parse.py +++ b/viewstate/parse.py @@ -266,3 +266,13 @@ class TypedArray(Parser): val, remain = Parser.parse(remain) l.append(val) return l, remain + + +class BinaryFormatted(Parser): + ...
python
diff --git a/tests/samples/ysoserial.sample b/tests/samples/ysoserial.sample new file mode 100644 index 0000000..9e38b44 --- /dev/null +++ b/tests/samples/ysoserial.sample @@ -0,0 +1,1 @@ +/wEyxAcAAQAAAP////8BAAAAAAAAAAwCAAAAXk1pY3Jvc29mdC5Qb3dlclNoZWxsLkVkaXRvciwgVmVyc2lvbj0zLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0t...
2020-12-14T08:26:29+00:00Z
YSOSerial.net Payloads could not be processed ``` Traceback (most recent call last): File "genvs.py", line 56, in <module> main() File "genvs.py", line 48, in main newpayload = gen_shell_payload("ping google.com") File "genvs.py", line 14, in gen_shell_payload analyze_vs('/wEyxAcAAQAAAP////8BA...
@exploit-io Thanks for reporting this, apparently `0x32` marks binary formatted data, added parsing support
0.0.1-alpha
d71ef41dee820f8403bc7c57bcf3bc5756806549
["tests.test_parse.TestParse::test_parse_samples"]
["tests.test_parse.TestParse::test_const_value", "tests.test_parse.TestParse::test_int_value", "tests.test_parse.TestParse::test_string_value", "tests.test_parse.TestParse::test_simple_dict", "tests.test_parse.TestParse::test_simple_list", "tests.test_parse.TestParse::test_simple_pair", "tests.test_parse.TestParse::tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
open2c__bioframe-128
open2c/bioframe
30e568b465501c2f00b8af23e25076d91cf5296a
diff --git a/bioframe/ops.py b/bioframe/ops.py index 1fe40fb..5fde6f9 100644 --- a/bioframe/ops.py +++ b/bioframe/ops.py @@ -10,6 +10,7 @@ from .core import construction from .core import checks __all__ = [ + "select_mask", "select", "expand", "overlap", @@ -27,19 +28,18 @@ __all__ = [ ] -def...
python
diff --git a/tests/test_ops.py b/tests/test_ops.py index c20b6eb..7b879b6 100644 --- a/tests/test_ops.py +++ b/tests/test_ops.py @@ -64,6 +64,30 @@ def mock_bioframe(num_entries=100): ############# tests ##################### +def test_select_mask(): + df1 = pd.DataFrame( + [["chrX", 3, 8], ["chr1", 4, 5...
2022-12-19T21:08:20+00:00Z
Feature idea: select_index – select that only returns indices `select` returns a subset of the passed dataframe. For use with `anndata` and `sgkit`, we'd probably want to use select to get the indices of the regions of index, then subset the entire `AnnData` object or `xarray.Dataset`. Alternatively we may want to ...
Thanks for the suggestion! In terms of implementation, another option would be to add keywords controlling return behavior to current select, as we do in `overlap()`, which has defaults: ```python return_input=True, return_index=False ``` thoughts? cc @golobor @nvictus Perhaps something like `bio...
0.0.1-alpha
dcf5052ea64d995f333e28f01f1ed5c81ce36204
["tests.test_ops::test_select_mask"]
["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....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyswmm__swmmio-217
pyswmm/swmmio
24673b5f83e8f9c66cce9a0221f7947a3a9c232e
diff --git a/swmmio/core.py b/swmmio/core.py index f0f8aa0..2da7c5b 100644 --- a/swmmio/core.py +++ b/swmmio/core.py @@ -600,6 +600,8 @@ class inp(SWMMIOFile): self._streets_df = None self._inlets_df = None self._inlet_usage_df = None + self._patterns_df = None + self._controls_...
python
diff --git a/swmmio/tests/data/Pump_Control_Model.inp b/swmmio/tests/data/Pump_Control_Model.inp new file mode 100644 index 0000000..5ae69dd --- /dev/null +++ b/swmmio/tests/data/Pump_Control_Model.inp @@ -0,0 +1,306 @@ +[TITLE] +;;Project Title/Notes +A pump control model. +From SWMM 5.2 examples + +[OPTIONS] +;;Optio...
2024-04-21T16:15:57+00:00Z
Updates to support read/write of additional INP sections I have been using swmmio to add stormwater/wastewater analysis to WNTR. The ability to read, modify, and write INP files using pandas DataFrames has been very helpful! I found a few issues when comparing simulation results with and without the read/write of IN...
@kaklise, I'm so happy that swmmio has been helpful for you. 100% we're interested in a PR! Please feel free to submit a PR at your convenience, then we can continue the conversation there :)
0.0.1-alpha
9c885cb3523a4bb3027a09f7a812b7f559d6c10e
["swmmio.tests.test_dataframes::test_inflow_dwf_dataframe", "swmmio.tests.test_dataframes::test_inp_sections"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-508
more-itertools/more-itertools
c7e73ffbf9c7e15969f9ed301d0431770061ab90
diff --git a/more_itertools/more.py b/more_itertools/more.py index abaa893..59d2ddb 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1235,7 +1235,8 @@ def split_before(iterable, pred, maxsplit=-1): buf = [] maxsplit -= 1 buf.append(item) - yield buf + if buf:...
python
diff --git a/tests/test_more.py b/tests/test_more.py index e4b94f3..5c90812 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -1238,6 +1238,11 @@ class SplitBeforeTest(TestCase): expected = [['o', 'o', 'o']] self.assertEqual(actual, expected) + def test_empty_collection(self): + ...
2021-03-12T01:51:20+00:00Z
Inconsistent behaviour of the split_before function for an empty collection I've noticed that the `split_before` function never returns an empty iterator: ```python >>> list(split_before([], lambda x: bool(x)) [[]] ``` In the meantime, the `split_after` function works correctly: ```python >>> list(split_after(...
0.0.1-alpha
42e1dac4208516ccd55a16fe554e1714b6b42079
["tests.test_more.SplitBeforeTest::test_empty_collection"]
["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" }
simonw__claude-to-sqlite-2
simonw/claude-to-sqlite
7fadc55bb820d35a41debbdedca833e9271769c0
diff --git a/README.md b/README.md index 9b76d9d..0d7231d 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ from claude_to_sqlite import cli tmpdir = pathlib.Path(tempfile.mkdtemp()) db_path = str(tmpdir / "claude.db") runner = CliRunner() -result = runner.invoke(cli.cli, ["tests/example.json", db_path]) +run...
python
diff --git a/tests/artifacts.json b/tests/artifacts.json new file mode 100644 index 0000000..fd40a60 --- /dev/null +++ b/tests/artifacts.json @@ -0,0 +1,209 @@ +[ + { + "uuid": "91098bc8-f2c4-427b-b71b-1e25efa2e871", + "name": "LLM Pricing Calculator", + "created_at": "2024-10-17T03:28:33.480257...
2024-10-21T03:00:49+00:00Z
Extract artifacts into a separate table Artifacts look like this in the `text`: > Let's update the calculator to include these options. > > `<antThinking>This request further refines our "llm-pricing-calculator" artifact by adding more comprehensive pricing options for the Gemini models. This update will make th...
Got a bit of help from Claude: https://gist.github.com/simonw/83dbe487456daf10a5cf31f44ae732bd ![CleanShot 2024-10-20 at 20 00 09@2x](https://github.com/user-attachments/assets/2181589f-0fd1-404a-bb1a-213ea01b8c07) Now I can see all the artifacts I created within the past 7 days using this monster: `/claude/artifa...
0.0.1-alpha
e37a66b4f7cda621dd4c90006b4ebc35a22ab6f3
["tests.test_claude_to_sqlite::test_import_artifacts"]
["tests.test_claude_to_sqlite::test_import[True-False]", "tests.test_claude_to_sqlite::test_import[True-True]", "tests.test_claude_to_sqlite::test_import[False-False]", "tests.test_claude_to_sqlite::test_import[False-True]"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__git-history-10
simonw/git-history
55c95eb27197427d290ea863a404a467388a14f9
diff --git a/README.md b/README.md index 5099bf3..bd781b7 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Additional options: - `--ignore-duplicate-ids` - if a single version of a file has the same ID in it more than once, the tool will exit with an error. Use this option to ignore this and instead pick just ...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 227d0c8..d0183d7 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -28,8 +28,20 @@ def repo(tmpdir): (repo_dir / "items-with-reserved-columns.json").write_text( json.dumps( [ - {"id...
2021-11-12T07:28:58+00:00Z
Failure importing potholes.json ``` % git clone https://github.com/patricktrainer/open-potholes % cd open-potholes % git-history file potholes.db potholes.json --id service_request [#############-----------------------] 19/50 38% 00:00:04Traceback (most recent call last): File "/Users/simon/.local/bin/git...
Running that command multiple times eventually processes the whole file, presumably missing some data. It's because that JSON has a `rowid` column: ``` "rowid": "841311" ``` Adding `rowid` as a reserved column may fix this.
0.0.1-alpha
e553053df969f9bc19c84df0c78a1c02789fc7ba
["tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history::test_more_than_one_id_makes_id_reserved"]
["tests.test_git_history::test_file_without_id", "tests.test_git_history::test_file_with_id", "tests.test_git_history::test_file_with_banned_columns[True]", "tests.test_git_history::test_file_with_banned_columns[False]", "tests.test_git_history::test_csv_tsv[trees.csv]", "tests.test_git_history::test_csv_tsv[trees.tsv]...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tkem__cachetools-256
tkem/cachetools
f461c73028a0898667724b5c4073281e6f94c159
diff --git a/docs/index.rst b/docs/index.rst index d4a0279..8df4ed9 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -604,6 +604,11 @@ all the decorators in this module are thread-safe by default. saves up to `maxsize` results based on a Most Recently Used (MRU) algorithm. + .. deprecated:: 5.4 + + The...
python
diff --git a/tests/test_func.py b/tests/test_func.py index 72e7589..d375c28 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -100,30 +100,32 @@ class DecoratorTestMixin: class FIFODecoratorTest(unittest.TestCase, DecoratorTestMixin): - DECORATOR = staticmethod(cachetools.func.fifo_cache) class...
2024-07-15T18:34:08+00:00Z
Deprecate MRUCache It looks like `MRUCache` isn't used much (or not at all), so removing it could make maintenance a little easier. If you use `MRUCache`, please provide your use case for discussion!
For the sake of completeness, however, it might be left :)
0.0.1-alpha
f9021d50cec8134a0da96a8fd19754a597adbad2
["tests.test_func.MRUDecoratorTest::test_decorator", "tests.test_func.MRUDecoratorTest::test_decorator_clear", "tests.test_func.MRUDecoratorTest::test_decorator_needs_rlock", "tests.test_func.MRUDecoratorTest::test_decorator_nocache", "tests.test_func.MRUDecoratorTest::test_decorator_typed", "tests.test_func.MRUDecorat...
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing", "tests.test_cache.CacheTest::test_mis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
macbre__sql-metadata-538
macbre/sql-metadata
e5b97f193a051fd98e8711867de27da1bc3e9256
diff --git a/sql_metadata/keywords_lists.py b/sql_metadata/keywords_lists.py index 53f3334..4414356 100644 --- a/sql_metadata/keywords_lists.py +++ b/sql_metadata/keywords_lists.py @@ -107,6 +107,7 @@ SUPPORTED_QUERY_TYPES = { "DELETE": QueryType.DELETE, "WITH": QueryType.SELECT, "CREATETABLE": QueryType...
python
diff --git a/test/test_create_table.py b/test/test_create_table.py index 07a04f9..7a8551f 100644 --- a/test/test_create_table.py +++ b/test/test_create_table.py @@ -164,3 +164,15 @@ def test_create_if_not_exists_simple_name(): assert parser.query_type == QueryType.CREATE assert parser.tables == ["analytics_ta...
2025-08-25T17:30:32+00:00Z
The project cannot parse the CREATE TEMPORARY statement. sql = "create temporary table M_ZJM_qy2 DISTRIBUTED BY('B_dkhth') select B_dkhth,B_khh,CONCAT(F,F_jjbh,F_bz,F_jjje,F_jjye,F_fkrq,F_fkdqr,rtrim(F_dkywzl),F_dkxs,F_dkxz,F_dktx,F_dkzl,F_zqbz,F_sjfl,F_wjfl) F from m_zjm_dkywxx_f where beiz = '' and B_dkhth <> ''...
0.0.1-alpha
3d0c043fb22efdd5b2837507f5bfce9c053bc10a
["test.test_create_table::test_create_temporary_table"]
["test.test_aliases::test_get_query_table_aliases", "test.test_aliases::test_select_aliases", "test.test_aliases::test_tables_aliases_are_resolved", "test.test_alter::test_alter_table_indices_key", "test.test_alter::test_alter_table_indices_index", "test.test_caching::test_cleared_cache", "test.test_column_aliases::tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
loqusion__hyprshade-11
loqusion/hyprshade
de67520b2dbda9867ed7c5881e2c28ddc07921de
diff --git a/src/hyprshade/shader/core.py b/src/hyprshade/shader/core.py index 4db4598..7fb7fbb 100644 --- a/src/hyprshade/shader/core.py +++ b/src/hyprshade/shader/core.py @@ -6,7 +6,7 @@ from typing import Final from more_itertools import first, first_true -from hyprshade.config.utils import hypr_config_home +fr...
python
diff --git a/tests/shader/test_shader.py b/tests/shader/test_shader.py index 2756b84..72ebad7 100644 --- a/tests/shader/test_shader.py +++ b/tests/shader/test_shader.py @@ -12,8 +12,8 @@ class TestDirs: monkeypatch.delenv(Shader.dirs.ENV_VAR_NAME, raising=False) assert Shader.dirs.env() != str(shader_...
2023-10-27T22:28:42+00:00Z
Support shader directory searching `~/.config/hyprshade/shaders` ```shell ~/.config ❯ nix shell nixpkgs#hyprshade ~/.config ❯ mkdir -p hyprshade/shaders ~/.config ❯ cd hyprshade/ ~/.config/hyprshade ❯ nvim shaders/blue-light.glsl ~/.config/hyprshade took 40s ❯ hyprshade on blue-light Error: Shad...
0.0.1-alpha
b4c722ac97a99f75a57d40f31be117f55d6f9075
["tests.shader.test_shader.TestDirs::test_user_hypr"]
["tests.cli.utils.test_click_utils.TestConvertToShader::test_works", "tests.cli.utils.test_click_utils.TestConvertToShader::test_none", "tests.cli.utils.test_click_utils.TestConvertToShader::test_stale", "tests.cli.utils.test_click_utils.TestValidateOptionalParam::test_empty", "tests.cli.utils.test_click_utils.TestVali...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mikeckennedy__jinja_partials-11
mikeckennedy/jinja_partials
a2bb2e9c1e8c6f386c3a784b8ecd3e196de083fc
diff --git a/README.md b/README.md index aafd8eb..f09d291 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,55 @@ jinja_partials.register_environment(environment) # ... ``` +### Using the Jinja2 Extension (Declarative) + +Alternatively, you can use the `PartialsJinjaExtension` for a more declarative approach. + +...
python
diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 14d1086..8569a4d 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -76,6 +76,7 @@ def test_render_partial_empty_template_name(registered_extension): # type: igno def test_render_partial_none_template_name(registered_extension): ...
2025-05-31T17:38:56+00:00Z
Provide a Jinja Extension class -- Simplifies integration/use with Jinja template contexts If you provide an `jinja2.ext.Extension` class, this would slightly simplify the use in different Jinja template engine contexts. Especially, if it is difficult to add the explicit call to register this extension. EXAMPLE: ```...
This is a good idea. It's on PyPI as 0.3.0. Thanks! https://github.com/mikeckennedy/jinja_partials/releases/tag/v0.3.0
0.0.1-alpha
7740edaef9a1844a8c9a769595c7f1a860ffb9c4
["tests.test_rendering::test_partials_jinja_extension", "tests.test_rendering::test_partials_jinja_extension_markup_behavior"]
["tests.test_rendering::test_render_empty", "tests.test_rendering::test_render_with_data", "tests.test_rendering::test_render_with_layout", "tests.test_rendering::test_render_recursive", "tests.test_rendering::test_missing_template", "tests.test_rendering::test_not_registered", "tests.test_rendering::test_render_partia...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pretix__python-drafthorse-42
pretix/python-drafthorse
19393c9b8b24210a1fbb78170a5e10b21683f922
diff --git a/drafthorse/models/document.py b/drafthorse/models/document.py index 2056eed..bbdcc11 100644 --- a/drafthorse/models/document.py +++ b/drafthorse/models/document.py @@ -100,14 +100,30 @@ class Document(Element): context: DocumentContext = Field(DocumentContext, required=True) header: Header = Fiel...
python
diff --git a/tests/test_minimal.py b/tests/test_minimal.py index d21a3b4..d450509 100644 --- a/tests/test_minimal.py +++ b/tests/test_minimal.py @@ -109,3 +109,17 @@ def test_invalid_invoice_exceptions(invoice_document, invoice_pdf17_bytes): attach_xml(invoice_pdf17_bytes, "invalid_xml_type") assert str...
2025-01-22T15:58:54+00:00Z
definitions of xmlns:xsi and xmlns:qdt in rsm:CrossIndustryInvoice missing Version 2.4.0 from pypi Expected: <?xml version='1.0' encoding='UTF-8' ?> <rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" xmlns:udt...
Probably a bug, but maybe hard to fix if the XML library we use only adds namespaces that are needed Thanks for the answer. In the moment i’m using a workaround. After creating the XML and before attaching it to the pdf i use a brute force method to add the namespace i expect if it doesn‘t exist. ValiTool has no more...
0.0.1-alpha
1f80911ebc8e9155ccd849dc6c451878a90f004e
["tests.test_minimal::test_unused_name_spaces_included[380]"]
["tests.test_minimal::test_readme_construction_example_pdf16[380]", "tests.test_minimal::test_readme_construction_example_pdf17[380]", "tests.test_minimal::test_readme_construction_example_pdf17_en16931[380]", "tests.test_minimal::test_readme_construction_example_pdf17_xrechnung2[380]", "tests.test_minimal::test_readme...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
more-itertools__more-itertools-441
more-itertools/more-itertools
78405e9b24d0ccdd67785136ecd56774f38ae95e
diff --git a/docs/api.rst b/docs/api.rst index dcf50d7..4464e60 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -224,6 +224,7 @@ consume iterables. .. autofunction:: always_reversible .. autofunction:: consumer .. autofunction:: with_iter +.. autoclass:: callback_iter ---- diff --git a/more_itertools/more.py b/...
python
diff --git a/tests/test_more.py b/tests/test_more.py index baf326f..df52768 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -3915,3 +3915,85 @@ class IsSortedTests(TestCase): py_result = iterable == sorted(iterable, **kwargs) self.assertEqual(mi_result, expected) ...
2020-07-02T01:31:13+00:00Z
Callback to iterator utility: cb_to_iter Thought I would ask about this one here since it's something I keep using, and is completely to do with iterators but I'm not sure if it might be a bit controversial/out of scope. Some libraries (e.g. HDF5py, lxml) do iteration via callbacks. It seems to be particularly comm...
Definitely a useful thing, though the way one has to do this is quite... un-aesthetic. Can you paste some examples of your code in action, e.g. with the scipy `fmin` from SO? The `thread.join(5)` in the `finally` is unfortunate, but I suppose it's either that or risk leaking resources? Here's my take: <details><s...
0.0.1-alpha
29288c851dfc90c3e773e3607ccc39abbc43a19d
["tests.test_more.CallbackIterTests::test_abort", "tests.test_more.CallbackIterTests::test_basic", "tests.test_more.CallbackIterTests::test_callback_kwd", "tests.test_more.CallbackIterTests::test_exception", "tests.test_more.CallbackIterTests::test_no_result", "tests.test_more.CallbackIterTests::test_partial_consumptio...
["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" }
py-cov-action__python-coverage-comment-action-285
py-cov-action/python-coverage-comment-action
70b2d8a8394613653c94ab9638cbf39d81d35099
diff --git a/coverage_comment/main.py b/coverage_comment/main.py index 39d4c84..60dfae1 100644 --- a/coverage_comment/main.py +++ b/coverage_comment/main.py @@ -112,6 +112,14 @@ def process_pr( ) -> int: log.info("Generating comment for PR") + if not config.GITHUB_PR_NUMBER and not config.GITHUB_BRANCH_NAME:...
python
diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 20811c8..a653d9d 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -400,6 +400,25 @@ def test_action__push__non_default_branch( assert output_file.read_text() == expected_output +def test_action...
2023-10-13T11:45:25+00:00Z
Running coverage action in tag push events produce misleading error message This [change](https://github.com/py-cov-action/python-coverage-comment-action/pull/248/files#diff-aa416c9a98a0fd16ca04ed4a3606bf634663109cd1562c05467181ad9b0a8a08R174) makes the coverage action produce a misleading error message about permissi...
Only happens for tag push events apparently. Ok, looks like rather than an assert, if there's no config.GITHUB_BRANCH_NAME, we should just silently abort. @pdecat feel free to try the PR and report if it fixes the issue for you. It's working fine with that branch, thanks! :rocket: released in https://github.com/py-cov...
0.0.1-alpha
8e1040d3a790bf2ecccd9cc9e2aef0b4d91a9c74
["tests.integration.test_main::test_action__push__no_branch"]
["tests.unit.test_activity::test_find_activity[workflow_run-True-post_comment]", "tests.unit.test_activity::test_find_activity[push-True-save_coverage_data_files]", "tests.unit.test_activity::test_find_activity[push-False-process_pr]", "tests.unit.test_activity::test_find_activity[pull_request-True-process_pr]", "tests...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wookayin__gpustat-32
wookayin/gpustat
ebd7f463bd2185db1cc86704e7ed0535b3d73d4e
diff --git a/gpustat/cli.py b/gpustat/cli.py index 6dc6458..5248c4e 100644 --- a/gpustat/cli.py +++ b/gpustat/cli.py @@ -2,6 +2,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +import os import sys import time @@ -44,9 +45,12 @@ def loop_gpustat(...
python
2020-02-02T06:08:25+00:00Z
Extra character in watch colour mode on Ubuntu 17.10 When I use command `watch --color -n1.0 gpustat --color` I get a lot of extra `^`: https://imgur.com/a/A9Fxc ![](https://i.imgur.com/KzFd5TV.png) This problem doesn't occur without `watch`. I'm on Ubuntu 17.10 with wayland.
Which version of `watch` are you using? Or, what can be an output of `watch gpustat --color` (without `--color` option on the `watch`)? What is the value of `$TERM`? I have the same issue. This is what I get with `watch gpustat --color ![watch gpustat --color](https://i.imgur.com/rIMA0Qj.png) I'm also on Ubuntu 1...
0.0.1-alpha
3d3ed5fe974089cd18f8ba3a561613044f5d8863
["gpustat.test_gpustat.TestGPUStat::test_args_endtoend"]
["gpustat.test_gpustat.TestGPUStat::test_attributes_and_items", "gpustat.test_gpustat.TestGPUStat::test_json_mocked", "gpustat.test_gpustat.TestGPUStat::test_main", "gpustat.test_gpustat.TestGPUStat::test_new_query_mocked", "gpustat.test_gpustat.TestGPUStat::test_new_query_mocked_nonexistent_pid"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nteract__testbook-55
nteract/testbook
616096875aef7a61bb593920da803314f842e3a8
diff --git a/testbook/testbook.py b/testbook/testbook.py index 3d43e66..8d05247 100644 --- a/testbook/testbook.py +++ b/testbook/testbook.py @@ -4,15 +4,11 @@ from .client import TestbookNotebookClient class testbook: - def __init__(self, nb_path, execute=None, timeout=60, allow_errors=False): - self.nb_...
python
diff --git a/testbook/tests/test_testbook.py b/testbook/tests/test_testbook.py index 724caaa..cfccd5b 100644 --- a/testbook/tests/test_testbook.py +++ b/testbook/tests/test_testbook.py @@ -31,3 +31,12 @@ def test_testbook_class_decorator_context_manager(): def test_testbook_class_decorator_execute_none_context_manager...
2020-08-15T15:16:09+00:00Z
Accept notebook as str, file and nbformat.NotebookNode object Currently, the `testbook` api only accepts a notebook path. We should extend it to also accept file objects and `nbformat.NotebookNode` objects. @MSeal how do you suggest we go about this? A particular use case where this would be feasible is when a ...
Yeah I think that's a good addition. You can check if it's a string at first and if it's not assume it's a file-like object.
0.0.1-alpha
7499cd4afe0b91b74d7649845b8721ab0b4a939f
["testbook.tests.test_testbook::test_testbook_with_file_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" }
ramonhagenaars__jsons-120
ramonhagenaars/jsons
33db6d4c4d186303ddac2a7c3b1a17dcb141e7a8
diff --git a/jsons/serializers/default_union.py b/jsons/serializers/default_union.py index 4191d3b..d32729d 100644 --- a/jsons/serializers/default_union.py +++ b/jsons/serializers/default_union.py @@ -1,5 +1,5 @@ from typing import Union -from jsons._common_impl import get_class_name +from jsons._common_impl import ge...
python
diff --git a/tests/test_union.py b/tests/test_union.py index de5634e..8848579 100644 --- a/tests/test_union.py +++ b/tests/test_union.py @@ -1,4 +1,6 @@ +import dataclasses import datetime +import uuid from typing import Optional, Union from unittest import TestCase @@ -11,7 +13,7 @@ from jsons import ( class...
2020-10-20T16:43:09+00:00Z
Optional UUID class attribute (strict?) serialized to `None` when null ### Problem In a class containing an optional UUID attribute (typed attribute), a value of `None` is serialized to `'None'` instead of staying `None`. Furthermore, the problem does not appear if the optional attribute is of type `str` or `dat...
0.0.1-alpha
6032b15d0774dba0a4796510d6e21e9ed71c4226
["tests.test_union.TestUnion::test_dump_optional_class_uuid"]
["tests.test_case_transformer.TestCaseTransformer::test_case_transformers", "tests.test_case_transformer.TestCaseTransformer::test_serialize_and_deserialize_with_case_transformer", "tests.test_chain_map.TestChainMap::test_dump_chain_map", "tests.test_chain_map.TestChainMap::test_load_chain_map", "tests.test_common_impl...
["tests.test_list.TestList::test_dump_list_strict_no_cls", "tests.test_union.TestUnion::test_dump_union"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyswmm__swmmio-181
pyswmm/swmmio
73df1f976d415be2608246429ea7824c328ea6cc
diff --git a/swmmio/utils/functions.py b/swmmio/utils/functions.py index c73c23d..c44fae8 100644 --- a/swmmio/utils/functions.py +++ b/swmmio/utils/functions.py @@ -161,6 +161,8 @@ def format_inp_section_header(string): :param string: :return: string """ + if string == '[Polygons]': + return st...
python
diff --git a/swmmio/tests/test_version_control.py b/swmmio/tests/test_version_control.py index be83283..8b8fb90 100644 --- a/swmmio/tests/test_version_control.py +++ b/swmmio/tests/test_version_control.py @@ -220,3 +220,34 @@ def test_modify_inp_sections(): sects1 = get_inp_sections_details(m1.inp.path) ...
2023-02-02T19:05:59+00:00Z
Polygons header overwrite bug Below is an explanation and steps to reproduce the Polygons header overwriting bug. The event occurs when using the "replace_inp_section" function. The code I am executing: ```python def _add_coords(self, subcatchment_id): exist = [ (self.model.inp.polygons["X"][-1]...
0.0.1-alpha
34f9c967f4fc99c1b798b81f379f75d10a51e5a1
["swmmio.tests.test_version_control::test_replace_inp_section_overwrite_polygons_header"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-299
microsoft/fabric-cicd
5f949213b2aa0028c49716b7ea3b39b84d0ec4e8
diff --git a/src/fabric_cicd/_common/_fabric_endpoint.py b/src/fabric_cicd/_common/_fabric_endpoint.py index 2fc2774..b6dddc3 100644 --- a/src/fabric_cicd/_common/_fabric_endpoint.py +++ b/src/fabric_cicd/_common/_fabric_endpoint.py @@ -160,7 +160,6 @@ def _handle_response( body: str, long_running: bool, ...
python
diff --git a/tests/test__fabric_endpoint.py b/tests/test__fabric_endpoint.py index 331ac98..5241c6d 100644 --- a/tests/test__fabric_endpoint.py +++ b/tests/test__fabric_endpoint.py @@ -358,7 +358,7 @@ def test_handle_response_item_display_name_already_in_use(setup_mocks): dl, mock_requests = setup_mocks respo...
2025-07-07T17:19:11+00:00Z
Bug Report: Operation in progress. Checking again in n seconds. Constant maximum retry attempts exceeded ### Library Version 0.1.18 ### What is the problem? Super stoked about the project! We have a large number of Notebooks in our repo, 510 to be precise. The last couple of days deployment of notebooks has result...
Hi, We are encountering a similar issue when deploying semantic models. Despite raising the maximum retry attempts for SemanticModel to 20 using: `constants.MAX_RETRY_OVERRIDE['SemanticModel'] = 20` , the problem persists. We deploy six semantic models, which are not particularly large. The deployment process frequen...
0.0.1-alpha
b19fd6f51356985c99682a8783b42234188156fc
["tests.test__fabric_endpoint::test_handle_response_item_display_name_already_in_use"]
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mwaskom__seaborn-3115
mwaskom/seaborn
852ffaf3e28de848c4d07e778c7990924637d046
diff --git a/doc/whatsnew/v0.12.2.rst b/doc/whatsnew/v0.12.2.rst index dc29ab7..6bf7ee0 100644 --- a/doc/whatsnew/v0.12.2.rst +++ b/doc/whatsnew/v0.12.2.rst @@ -2,4 +2,6 @@ v0.12.2 (Unreleased) -------------------- -- Added the :class:`objects.KDE` stat (:pr:`3111`). +- |Feature| Added the :class:`objects.KDE` stat...
python
diff --git a/tests/test_distributions.py b/tests/test_distributions.py index c4d62fa..f881969 100644 --- a/tests/test_distributions.py +++ b/tests/test_distributions.py @@ -1816,6 +1816,13 @@ class TestHistPlotUnivariate(SharedAxesLevelTests): assert line.get_linewidth() == lw assert line.get_linestyl...
2022-10-28T23:23:01+00:00Z
Duplicate legend entries for histplot Observed behavior ---------------------- When creating a `histplot` with a legend, duplicate labels show up in the legend. It seems to be creating entries in the legend for more than one `BarContainer` artist. Expected behavior --------------------- A single entry in th...
It appears that there is an issue with how the plots are being created. In `distributions.py` line 558, this method ` ax = self._get_axes(sub_vars)` is called, which triggers creation of the plot object. If you inspect the ax object, it gets initialized with and empty BarContainer object. e.g. `([<BarContaine...
0.0.1-alpha
021a20f06f41212fd8c55680a8cc3bf0924e1b30
["tests.test_distributions.TestHistPlotUnivariate::test_label"]
["tests.test_algorithms::test_bootstrap", "tests.test_algorithms::test_bootstrap_length", "tests.test_algorithms::test_bootstrap_range", "tests.test_algorithms::test_bootstrap_multiarg", "tests.test_algorithms::test_bootstrap_axis", "tests.test_algorithms::test_bootstrap_seed", "tests.test_algorithms::test_bootstrap_ol...
["tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_single_layer_stats_with_missing_data", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats", "tests.test_categorical.TestCategoricalStatPlotter::test_nested_stats_wit...
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
redimp__otterwiki-126
redimp/otterwiki
08be560fa86f885e26ac36345076e47b784e92ab
diff --git a/otterwiki/renderer.py b/otterwiki/renderer.py index f6301e4..ff8803c 100644 --- a/otterwiki/renderer.py +++ b/otterwiki/renderer.py @@ -368,7 +368,7 @@ class OtterwikiRenderer: # to avoid that preparsing removes the trailing newline and to be # able to deal with manually comitted files th...
python
diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 20abcc6..1a76400 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -645,3 +645,15 @@ def test_nested_list(): assert ul li = ul.find_all("li") # pyright: ignore assert len(li) == 2 + + +def test_empty_blocks_issue216(): ...
2025-03-13T20:54:02+00:00Z
Improve CSS for media: print The css for `media: print` is currently a bit to minimalistic. No major issue but code blocks: With `dark-mode` enabled, the colors of the code blocks are the ones of the dark mode which is not fitting for printing on paper, e.g. ![image](https://github.com/redimp/otterwiki/assets/11205...
0.0.1-alpha
29a6b2df1f33968a5695c50d8359cd78d7636425
["tests.test_renderer::test_empty_blocks_issue216"]
["tests.test_attachments::test_app_with_attachments", "tests.test_attachments::test_list_attachments", "tests.test_attachments::test_get_attachment0_legcay", "tests.test_attachments::test_get_attachment0", "tests.test_attachments::test_edit_attachment0", "tests.test_attachments::test_thumbnail_legacy", "tests.test_atta...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oceanbase__sql-lifecycle-management-98
oceanbase/sql-lifecycle-management
451fbf0cdd82b96965484e38d60247a3e735d59c
diff --git a/src/parser/mysql_parser/parser.py b/src/parser/mysql_parser/parser.py index b10c335..95d8ec6 100644 --- a/src/parser/mysql_parser/parser.py +++ b/src/parser/mysql_parser/parser.py @@ -54,7 +54,7 @@ from src.parser.tree.select_item import SingleColumn from src.parser.tree.set_operation import Except, Inter...
python
diff --git a/test/parser/test_parser_dml.py b/test/parser/test_parser_dml.py index 9e1976b..ed6bcac 100644 --- a/test/parser/test_parser_dml.py +++ b/test/parser/test_parser_dml.py @@ -135,9 +135,7 @@ delete from execution_log where ( """SELECT cast FROM t""",...
2023-08-07T05:50:03+00:00Z
[Bug]: parser error in table alias **Describe the bug** ``` sql select count(1) as job_count, date_format(y.gmtdate, '%m-%d') as time_node from ( ( select a.tenant_id, a.namespace_id, a.project_id, a.group_name, a.flow_name, a.scri...
0.0.1-alpha
8071137c22f87dbd5066e4b6dff72747289e60a1
["test.parser.test_parser_dml.MyTestCase::test_inner_join"]
["test.common.test_utils.MyTestCase::test_hint", "test.common.test_utils.MyTestCase::test_remove_force_index", "test.common.test_utils.MyTestCase::test_remove_hint_and_annotate", "test.common.test_utils.MyTestCase::test_remove_now_in_insert", "test.common.test_utils.MyTestCase::test_replace_interval_day", "test.common....
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__csv-diff-6
simonw/csv-diff
09409e320910a13e444a95879ff326b7ce4c1624
diff --git a/csv_diff/__init__.py b/csv_diff/__init__.py index 7c018d0..08ee893 100644 --- a/csv_diff/__init__.py +++ b/csv_diff/__init__.py @@ -10,7 +10,7 @@ def load_csv(fp, key=None, dialect=None): peek = fp.read(1024 ** 2) fp.seek(0) try: - dialect = csv.Sniffer().sniff(peek, d...
python
diff --git a/tests/test_cli.py b/tests/test_cli.py index bdaa47c..af94165 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -153,3 +153,36 @@ def test_column_containing_dot(tmpdir): "columns_added": [], "columns_removed": [], } == json.loads(result.output.strip()) + + +def test_semicolon_...
2020-10-16T01:26:11+00:00Z
support for semicolon separated csv https://github.com/simonw/csv-diff/blob/0256e49e050077815119a42acc48272624d74cbe/csv_diff/__init__.py#L13 Can you please add ";" in the list of supported delimiters to support CSV generated in countries that uses the "," as decimal point, like Italy? the line can be modified i...
0.0.1-alpha
0cf7d3cbb55b7530dc49f63a6d9d868923b7d7cb
["tests.test_cli::test_semicolon_delimited"]
["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_sniff_format", "tests.test_cli::test_format_overrides_sniff", "tests.test_cli::test_column_containing_dot", "tests.test_csv_diff::test_row...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
matthewwithanm__python-markdownify-166
matthewwithanm/python-markdownify
5bc3059abf952299524532ef85ef61976d595125
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 0fbb7a5..53d9cb1 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -444,7 +444,7 @@ class MarkdownConverter(object): return '\n\n' + text + '\n' def convert_caption(self, el, text, convert_as_inline): - retur...
python
diff --git a/tests/test_tables.py b/tests/test_tables.py index fc6eee6..dcf9ad7 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -249,6 +249,6 @@ def test_table(): assert md(table_missing_text) == '\n\n| | Lastname | Age |\n| --- | --- | --- |\n| Jill | | 50 |\n| Eve | Jackson | 94 |\n\n' ass...
2025-01-19T00:09:24+00:00Z
Add a blank line between table captions and table content Currently, table `<caption>` elements are placed directly adjacent to the table content: ```python import markdownify html = """\ <table> <caption>Table caption</caption> <thead><tr><th>Header 1</th><th>Header 2</th></tr></thead> <tbody><tr><td>Bo...
0.0.1-alpha
9339571ae9bbc97b10ad8685c50575b990c836bd
["tests.test_tables::test_table"]
["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" }
mcp-use__mcp-use-118
mcp-use/mcp-use
a49778f23b937fbec8be6f8812d16893b7caab36
diff --git a/mcp_use/task_managers/websocket.py b/mcp_use/task_managers/websocket.py index 74c1786..46c8394 100644 --- a/mcp_use/task_managers/websocket.py +++ b/mcp_use/task_managers/websocket.py @@ -22,14 +22,17 @@ class WebSocketConnectionManager(ConnectionManager[tuple[Any, Any]]): def __init__( self,...
python
diff --git a/tests/unit/test_websocket_connection_manager.py b/tests/unit/test_websocket_connection_manager.py new file mode 100644 index 0000000..302d7f7 --- /dev/null +++ b/tests/unit/test_websocket_connection_manager.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python3 +"""Unit tests for WebSocketConnectionManager.""" + +imp...
2025-06-13T13:18:41+00:00Z
websocket error When I use WebSocket, the following error is reported:When I use WebSocket, the following error is reported: Assistant: 2025-06-10 11:15:13,821 - mcp_use - ERROR - Failed to connect to MCP implementation via WebSocket: WebSocketConnectionManager.__init__() takes 2 positional arguments but 3 were given ...
Hi @wxzed, Thank you for reporting this issue. I wanted to clarify that WebSocket support is not part of the official MCP (Model Context Protocol) specifications. Fixed it in #123 Thanks We'd love to have you join our Discord community to chat about how you're planning to use mcp-use in production! https://discord....
0.0.1-alpha
525d0cd27dd689f26f40cb3da00d26dbe76d2801
["tests.unit.test_websocket_connection_manager.TestWebSocketConnectionManager::test_init_with_url_only", "tests.unit.test_websocket_connection_manager.TestWebSocketConnectionManager::test_init_with_url_and_headers", "tests.unit.test_websocket_connection_manager.TestWebSocketConnectionManager::test_init_with_url_and_non...
["tests.unit.test_client.TestMCPClientInitialization::test_init_empty", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_dict_config", "tests.unit.test_client.TestMCPClientInitialization::test_from_dict", "tests.unit.test_client.TestMCPClientInitialization::test_init_with_file_config", "tests.unit.te...
["tests.integration.transports.sse.test_sse_integration::test_sse_connection", "tests.integration.transports.stdio.test_stdio_integration::test_stdio_connection", "tests.integration.transports.streamableHttp.test_streamable_http_integration::test_streamable_http_connection", "tests.unit.test_client.TestMCPClientSession...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
rsheftel__pandas_market_calendars-188
rsheftel/pandas_market_calendars
816ab63f128b658bc3ed41a0f33859e183714e29
diff --git a/pandas_market_calendars/exchange_calendar_bmf.py b/pandas_market_calendars/exchange_calendar_bmf.py index deb8459..10b2487 100644 --- a/pandas_market_calendars/exchange_calendar_bmf.py +++ b/pandas_market_calendars/exchange_calendar_bmf.py @@ -15,6 +15,7 @@ from datetime import time +from pandas impor...
python
diff --git a/tests/test_bmf_calendar.py b/tests/test_bmf_calendar.py new file mode 100644 index 0000000..6a5a2d9 --- /dev/null +++ b/tests/test_bmf_calendar.py @@ -0,0 +1,31 @@ +import datetime +import pytest +import pandas as pd +import pytz + +from pandas_market_calendars.exchange_calendar_bmf import BMFExchangeCalen...
2022-06-24T13:32:14+00:00Z
BMF calendar needs adjustements after covid and regulation change There are two issues with the current version of the BMF calendar, which derives from the fact that the exchanged followed both national and regional holiday schedules. 1. Two regional holidays were cancelled in 2020 due to covid-19 calendar changes...
0.0.1-alpha
b53a21583e4fb15773a2c816db5cd74132898a42
["tests.test_bmf_calendar::test_2020_holidays_skip", "tests.test_bmf_calendar::test_post_2022_regulation_change"]
["tests.test_XNYS_calendar::test_weekmask", "tests.test_XNYS_calendar::test_open_time_tz", "tests.test_XNYS_calendar::test_close_time_tz", "tests.test_XNYS_calendar::test_2012", "tests.test_XNYS_calendar::test_special_holidays", "tests.test_XNYS_calendar::test_new_years", "tests.test_XNYS_calendar::test_thanksgiving", ...
["tests.test_XNYS_calendar::test_time_zone", "tests.test_cboe_calendars::test_2016_holidays", "tests.test_market_calendar::test_schedule", "tests.test_market_calendar::test_schedule_w_breaks", "tests.test_market_calendar::test_basic_information", "tests.test_nyse_calendar::test_custom_open_close", "tests.test_nyse_cale...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ramonhagenaars__nptyping-17
ramonhagenaars/nptyping
d3f04365ede4c34962b15e3eb7a22b9de44ad7f5
diff --git a/HISTORY.rst b/HISTORY.rst index c31ebdf..33850cb 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,11 @@ History ------- +1.0.1 (2020-04-05) +++++++++++++++++++ + +- Added a hash function to ``_NDArrayMeta``. + 1.0.0 (2020-03-22) ++++++++++++++++++ diff --git a/nptyping/_ndarray_meta.py b/nptyp...
python
diff --git a/tests/test_ndarray.py b/tests/test_ndarray.py index 5d404be..027d18a 100644 --- a/tests/test_ndarray.py +++ b/tests/test_ndarray.py @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, Optional from unittest import TestCase import numpy as np @@ -163,3 +163,11 @@ class TestNDArray(TestCase)...
2020-04-05T08:19:01+00:00Z
NDArray fails with Optional NDArray I'm trying to make the new NDArray class work with optional inputs. Any idea what I'm doing wrong? from typing import Any, Dict, Union, Optional from nptyping import NDArray NDArray3float = NDArray[(3, ), float] def test_func1(self, x: Optional[NDArray3flo...
Traceback (most recent call last): File ".\typing_test.py", line 5, in <module> Optional[NDArray3float] File "C:\Python37\lib\typing.py", line 254, in inner return func(*args, **kwds) File "C:\Python37\lib\typing.py", line 358, in __getitem__ return Union[arg, type(No...
0.0.1-alpha
9ce0bf0411176f17df9214b2c07f6f90c9b37cbe
["tests.test_ndarray.TestNDArray::test_hash_ndarray"]
["tests.test_array.NPTypingTestSuite::test_empty_arg", "tests.test_array.NPTypingTestSuite::test_heterogeneous_array", "tests.test_array.NPTypingTestSuite::test_identity", "tests.test_array.NPTypingTestSuite::test_instantiation", "tests.test_array.NPTypingTestSuite::test_isinstance", "tests.test_ndarray.TestNDArray::te...
["tests.test_py_type.TestPyType::test_py_type"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
opensearch-project__opensearch-benchmark-519
opensearch-project/opensearch-benchmark
00c3b4813f975bb65224f959b39c4d49c140fa94
diff --git a/osbenchmark/workload/loader.py b/osbenchmark/workload/loader.py index ce75d12..f90afd7 100644 --- a/osbenchmark/workload/loader.py +++ b/osbenchmark/workload/loader.py @@ -490,7 +490,8 @@ class Downloader: self.logger.info("Downloading data from [%s] to [%s].", data_url, target_path) ...
python
diff --git a/tests/workload/loader_test.py b/tests/workload/loader_test.py index fcf40d5..71525ac 100644 --- a/tests/workload/loader_test.py +++ b/tests/workload/loader_test.py @@ -261,12 +261,12 @@ class WorkloadPreparationTests(TestCase): # after download uncompressed file still does not exist (in main loop)...
2024-05-27T14:23:57+00:00Z
Use pre-computed offset tables for indexing ### Description With large data corpora, it takes a long time for OSB to generate the offset file for a corpus. This process can be sped up considerably by uploading pre-computed offset tables. Implementing this capability will alleviate the issue of the user needing to w...
Fixed with #542
0.0.1-alpha
3d9ca6e8ddce344fc17af382f6e1c6b40a4806b5
["tests.workload.loader_test.WorkloadPreparationTests::test_download_document_archive_if_no_file_available", "tests.workload.loader_test.WorkloadPreparationTests::test_download_document_file_if_no_file_available", "tests.workload.loader_test.WorkloadPreparationTests::test_download_document_with_trailing_baseurl_slash"]
["tests.builder.configs.listers.plugin_config_instance_lister_test.PluginConfigInstanceListerTest::test_list_plugin_config_instances", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathResolverTest::test_provision_config_path_defined", "tests.builder.configs.utils.config_path_resolver_test.ConfigPathReso...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
movingpandas__movingpandas-425
movingpandas/movingpandas
e9ebbb0f2fbbe578cb6b166de8d36ac165250860
diff --git a/movingpandas/trajectory_collection.py b/movingpandas/trajectory_collection.py index 768df76..27ae8ba 100644 --- a/movingpandas/trajectory_collection.py +++ b/movingpandas/trajectory_collection.py @@ -385,9 +385,11 @@ class TrajectoryCollection: df.reset_index(inplace=True) df.rena...
python
diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py index 446745c..a496516 100644 --- a/movingpandas/tests/test_trajectory_collection.py +++ b/movingpandas/tests/test_trajectory_collection.py @@ -124,6 +124,7 @@ class TestTrajectoryCollection: assert...
2024-10-23T08:35:13+00:00Z
get_start_locations() has no CRS #### Code Sample, a copy-pastable example ```python tc = mpd.TrajectoryCollection( gdf, traj_id_col=TRAJ_ID, obj_id_col=MOVER_ID, t=TIMESTAMP, x="x", y="y", crs="epsg:4326", ) start = tc.get_start_locations(...
Issue confirmed
0.0.1-alpha
826177b9456eaba52e049e9ba92ce09ec3bdb100
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_get_start_locations", "movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_get_end_locations"]
["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" }
semuconsulting__pynmeagps-2
semuconsulting/pynmeagps
43d86b0a2e42dcccc5ba578e9061f37c5e30b4cd
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ee5ea61..460417f 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,12 @@ # pynmeagps Release Notes +### RELEASE 1.0.1 + +FIXES: + +1. Fixed typo in GBS payload definition - `effLon` is now `errLon`. Test script updated. +2. Fixed cosmetic ty...
python
diff --git a/tests/test_stream.py b/tests/test_stream.py index e7e3f0a..7d1ee2b 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -1,4 +1,4 @@ -''' +""" Stream method tests for pynmeagps Created on 4 Mar 2021 @@ -6,7 +6,7 @@ Created on 4 Mar 2021 *** NB: must be saved in UTF-8 format *** :a...
2021-05-24T17:11:46+00:00Z
few notes **Describe the bug** - In the file example/nmeafile.py line 72-76 is a copy error from your other project pyubx2: self._ubxreader should be self_nmeareader - In the msgID GBS is one attribute wrong: effLon should be errLon - For the msgID GSA no distinction is made between the NMEA Talker IDs. This ...
Thanks for these - appreciated. First two obviously fat finger trouble, but I'm not sure if the third one is actually a pynmeagps issue or a feature of the receiver itself? Can you clarify what you expect to get vs. what you're actually getting? I presume what you mean is that GSA messages for different GNSS all...
0.0.1-alpha
4884efe4fddbeea81563c5640c870d5557433733
["tests.test_stream.StreamTest::testNMEA4"]
["tests.test_parse.ParseTest::testParseBADCK", "tests.test_parse.ParseTest::testParseBADMODE", "tests.test_parse.ParseTest::testParseGLL", "tests.test_parse.ParseTest::testParseNK", "tests.test_parse.ParseTest::testParseNK2", "tests.test_parse.ParseTest::testParsePGRMM", "tests.test_parse.ParseTest::testParsePGRMO", "t...
["unittest.loader._FailedTest.tests::testsuite"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
workhorsy__py-cpuinfo-147
workhorsy/py-cpuinfo
4a204f5855d4945a2efb8b699099e5b82c198952
diff --git a/ChangeLog b/ChangeLog index a512cb6..40d138c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * Release 7.0.0 + * Fixed Bug #147: Remove extended_model and extended_family fields * Fixed Bug #146: CPUID family and model is wrong * Fixed Bug #144: Cache fields should be full ints instead of kb st...
python
diff --git a/tests/test_cpuid.py b/tests/test_cpuid.py index 397eda7..c6424b3 100644 --- a/tests/test_cpuid.py +++ b/tests/test_cpuid.py @@ -217,7 +217,7 @@ class TestCPUID(unittest.TestCase): self.assertEqual({'size_b': 64 * 1024, 'line_size_b': 512, 'associativity': 6}, cache_info) info = cpuid.get_info() - ...
2020-06-15T00:30:53+00:00Z
Remove extended_model and extended_family fields It is a good idea to remove these fields as they are only used internally to calculate the actual Family and Model.
0.0.1-alpha
85ce180102ae30c75dfc0e6639eb3889aadf7eea
["test_windows_10_x86_64_ryzen_7.TestWindows_10_X86_64_Ryzen7::test_returns", "test_windows_10_x86_64.TestWindows_10_X86_64::test_returns", "test_windows_8_x86_64.TestWindows_8_X86_64::test_returns", "test_cpuid.TestCPUID::test_normal"]
["test_true_os_18_x86_64_ryzen_7.TestTrueOS_18_X86_64_Ryzen7::test_all", "test_true_os_18_x86_64_ryzen_7.TestTrueOS_18_X86_64_Ryzen7::test_get_cpu_info_from_dmesg", "test_true_os_18_x86_64_ryzen_7.TestTrueOS_18_X86_64_Ryzen7::test_returns", "test_haiku_x86_64.TestHaiku_x86_64::test_all", "test_haiku_x86_64.TestHaiku_x8...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
movingpandas__movingpandas-467
movingpandas/movingpandas
59d0092a837618f4b93b7cac74f0dcb597184f65
diff --git a/movingpandas/trajectory_collection.py b/movingpandas/trajectory_collection.py index 18e3d32..9681852 100644 --- a/movingpandas/trajectory_collection.py +++ b/movingpandas/trajectory_collection.py @@ -3,7 +3,7 @@ import warnings from pandas import concat from copy import copy -from geopandas import GeoD...
python
diff --git a/movingpandas/tests/test_trajectory.py b/movingpandas/tests/test_trajectory.py index 10792da..db21a94 100644 --- a/movingpandas/tests/test_trajectory.py +++ b/movingpandas/tests/test_trajectory.py @@ -734,30 +734,6 @@ class TestTrajectory: assert traj.get_length() == 5 # assert len(traj) =...
2025-05-12T20:40:18+00:00Z
Ensure that get_start_locations et al. return geom columns When lazy geom col is used, get_start_locations currently returns a GeoDataFrame without geometry
0.0.1-alpha
9cb0140e808de24cbe3135756d53a527ff4dbd4e
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollectionNonGeo::test_get_start_locations_nongeo", "movingpandas.tests.test_trajectory_collection.TestTrajectoryCollectionNonGeo::test_get_end_locations_nongeo"]
["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" }
pyprojectx__pyprojectx-100
pyprojectx/pyprojectx
59d89750162807535a9c4c80acb83a13f03f756e
diff --git a/CHANGELOG.md b/CHANGELOG.md index 560763e..bf1fd53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### Features & Improvements +- #100 add --clean option to cleanup virtual environments + Release v2.2.0 (2024-06-25) ---------------------------- ### Bug Fixes diff --git a/pdm.lock b/pdm.loc...
python
diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index aa99976..f59bee1 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -23,6 +23,9 @@ def test_parse_args(): assert _get_options(["-f", "my-cmd"]).force_install assert not _get_options(["my-cmd"]).force_install + assert _get...
2024-06-26T15:36:07+00:00Z
automatically clean up venvs from old versions **Is your feature request related to a problem? Please describe.** when bumping pyprojectx, these old folders stick around in the `.pyprojectx` folder: ![image](https://github.com/pyprojectx/pyprojectx/assets/57028336/b74cba82-4698-428b-8d64-04cdd3bc2f8e) **Des...
0.0.1-alpha
711793fce6424f3cf13cf91a412f25ccaf5c85d7
["tests.unit.test_cli::test_parse_args"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
movingpandas__movingpandas-374
movingpandas/movingpandas
d1ac6155fd4640368975a6e0d5a48515e7980751
diff --git a/movingpandas/trajectory_collection.py b/movingpandas/trajectory_collection.py index ee25425..acdba25 100644 --- a/movingpandas/trajectory_collection.py +++ b/movingpandas/trajectory_collection.py @@ -55,8 +55,10 @@ class TrajectoryCollection: crs : string CRS of the x/y coordinates ...
python
diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py index eb8be83..fabe48d 100644 --- a/movingpandas/tests/test_trajectory_collection.py +++ b/movingpandas/tests/test_trajectory_collection.py @@ -10,7 +10,7 @@ from fiona.crs import from_epsg from geopandas i...
2024-04-10T09:10:36+00:00Z
TrajectoryCollection.clip doesn't consider min_length correctly Clip results include too short trajectories
0.0.1-alpha
87b4a808f0f392bf737ecad7d19844204a36e2ee
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_clip_with_min_length"]
["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" }
pyprojectx__pyprojectx-66
pyprojectx/pyprojectx
6891932ec2005b545db22e8d65414e85e43711ce
diff --git a/src/pyprojectx/cli.py b/src/pyprojectx/cli.py index 43d328a..7e1ed2e 100644 --- a/src/pyprojectx/cli.py +++ b/src/pyprojectx/cli.py @@ -50,7 +50,7 @@ def _run(argv: List[str]) -> None: config = Config(options.toml_path) if options.install_context: - _install_ctx(options, config) + ...
python
diff --git a/tests/data/pw-test.toml b/tests/data/pw-test.toml index d042a35..e0f2a80 100644 --- a/tests/data/pw-test.toml +++ b/tests/data/pw-test.toml @@ -8,6 +8,10 @@ failing-install = "pycowsay==123.456.789.0" requirements = "pycowsay==0.0.0.1" post-install = "pycowsay post-install-action && pw@create-file" +[t...
2024-01-10T08:49:07+00:00Z
--install-context fails to execute post-install alias When the post-install action of a context is an alias, it fails to run when executing `./pw --install-context ctx`
0.0.1-alpha
65abe2e20897dcc01dd0e5efb7f058df2ec62cad
["tests.integration.test_pw::test_install_ctx"]
["tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts-list]", "tests.i...
["tests.integration.test_pw::test_automatic_lock_update", "tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tes...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tompollard__tableone-193
tompollard/tableone
2aeb243b28f9aab9fa7eeb04052a70edb36d45a5
diff --git a/tableone/statistics.py b/tableone/statistics.py index 29389a2..68e98ed 100644 --- a/tableone/statistics.py +++ b/tableone/statistics.py @@ -115,7 +115,8 @@ class Statistics: is_normal: bool, min_observed: int, catlevels: list, - h_test: dict...
python
diff --git a/tests/unit/test_tableone.py b/tests/unit/test_tableone.py index c9bc28a..25833ff 100644 --- a/tests/unit/test_tableone.py +++ b/tests/unit/test_tableone.py @@ -1411,8 +1411,22 @@ def test_pval_digits_custom_formatting(): pval = t2.tableone['Grouped by group']['P-Value'].iloc[1] assert pval == '0....
2025-04-10T01:56:15+00:00Z
Add `equal_var` for hypothesis tests In https://github.com/tompollard/tableone/issues/189, @vljlangen suggests adding an `equal_var` for hypothesis tests. > In addition, if it's at all feasible, having control over equal_var (with False as the default) would be really useful as well. Maybe even with a small warning ...
Added in https://github.com/tompollard/tableone/pull/194. @vljlangen Looking at the code, the test previously defaulted to `equal_var=False` (without the option to set it to True). https://github.com/tompollard/tableone/blob/ccdb5cac9f77c077b0a8a75c925d12b8b62dd2e7/tableone/statistics.py#L166-L171 There is now an arg...
0.0.1-alpha
da4b9a7daeffc61be17fda0492cb73b8f8eef2cc
["tests.unit.test_tableone::test_ttest_equal_var_flag"]
["tests.unit.test_tableone.TestTableOne::test_examples_used_in_the_readme_run_without_raising_error_pn", "tests.unit.test_tableone.TestTableOne::test_duplicate_index_values_raise_error", "tests.unit.test_tableone.TestTableOne::test_overall_mean_and_std_as_expected_for_cont_variable", "tests.unit.test_tableone.TestTable...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yukinarit__pyserde-619
yukinarit/pyserde
1562940badbbd2d0eb75f1a6147b138bd7a22ba8
diff --git a/serde/de.py b/serde/de.py index bd0d78e..5e3e478 100644 --- a/serde/de.py +++ b/serde/de.py @@ -956,7 +956,9 @@ class Renderer: if self.suppress_coerce and suppress_coerce: return dat else: - return f'coerce_object("{self.class_name}", "{arg.name}", {typ}, {dat})' ...
python
diff --git a/tests/test_de.py b/tests/test_de.py index 6bb64dd..6348608 100644 --- a/tests/test_de.py +++ b/tests/test_de.py @@ -60,8 +60,8 @@ def test_render_tuple() -> None: pass rendered = Renderer("foo").render(DeField(tuple[str, int, list[int], Foo], "d", datavar="data")) - rendered_str = 'coerc...
2024-12-09T14:29:10+00:00Z
render tuple does not properly escape quotes when using coerce The following code throws a `SyntaxError`: ```python import serde @serde.serde(type_check=serde.coerce) class Foo: loc: tuple[float, float] foo = Foo(loc=(1, 2)) print(serde.to_dict(foo)) ``` The error is ``` Traceback (most recent c...
Also note that the error is not visible if a single character is used instead of `"loc"`. ``` import serde @serde.serde(type_check=serde.coerce) class Foo: f: tuple[float, float] foo = Foo(f=(1, 2)) print(serde.to_dict(foo)) ``` works fine: ``` {'f': (1.0, 2.0)} ``` From `python -m serde.inspect ...
0.0.1-alpha
b1acb5e910d5e1680ec1a7e1e442bf2f45b6ddd5
["tests.test_de::test_render_tuple", "tests.test_type_check::test_coerce"]
["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" }
rosscdh__mkdocs-markdownextradata-plugin-34
rosscdh/mkdocs-markdownextradata-plugin
cc02b38cbb56f9ac91fab3cf2931d735bf689d97
diff --git a/README.md b/README.md index 1766c43..3034bf5 100644 --- a/README.md +++ b/README.md @@ -91,16 +91,27 @@ plugins: ``` by default it will search in the folder where your mkdocs.yml is kept -and in the docs folder for another folder called `_data` +and in the docs folder for another folder called `_data` ...
python
diff --git a/test/docs/_data/1_foo.yaml b/test/docs/_data/1_foo.yaml new file mode 100644 index 0000000..9e165fb --- /dev/null +++ b/test/docs/_data/1_foo.yaml @@ -0,0 +1,1 @@ +bar: 42 \ No newline at end of file diff --git a/test/docs/index.md b/test/docs/index.md index 8172151..850f641 100644 --- a/test/docs/index.md...
2021-02-27T19:48:22+00:00Z
Variable naming restrictions I'm working on a project with lots of different `.md` files. For a lot of these we need to import variables specific to each of the files. Our idea is to export these variables into a `.yaml` file per `.md` file and use `mkdocs-markdownextradata-plugin` to use those variables in the text. ...
Hey there, unfortunately the project is subject the restrictions of the implementing language. I am also not comfortable impementing some kind of renaming pattern to cater to this issue. As you have already indicated simply start the file with _ which should enable you! I wish you the best for your project! Ross...
0.0.1-alpha
ac4d0409932513abd7103b6f585a4fd3b3d108d6
["test.test_basic::test_basic_working"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-44
matthewwithanm/python-markdownify
6f3732307d8b2e30e9dbc2f0099a5b3023d3a20e
diff --git a/README.rst b/README.rst index e4004ea..6e914b7 100644 --- a/README.rst +++ b/README.rst @@ -84,6 +84,11 @@ strong_em_symbol *emphasized* texts. Either of these symbols can be chosen by the options ``ASTERISK`` (default) or ``UNDERSCORE`` respectively. +sub_symbol, sup_symbol + Define the chars tha...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index b90067a..b88d887 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -201,3 +201,13 @@ def test_strong_em_symbol(): assert md('<b>Hello</b>', strong_em_symbol=UNDERSCORE) == '__Hello__' assert md('<em>Hello</em>', s...
2021-05-30T17:07:43+00:00Z
`<sup>`/`<sub>` tags should be converted to superscript/subscript Here's an example: `text = 'Here\'s some text.<sup class="footnote">12</sup>'` Current behavior: `markdownify(text) = "Here's some text.12"` Desired behavior: `markdownify(text) = "Here's some text.^(12)"`
Hi! Do you have a source for that syntax? Github Flavored Markdown does not support this, and pandoc uses another syntax: https://pandoc.org/MANUAL.html#superscripts-and-subscripts Best, Alex Good point, it looks like superscript/subscript are implemented inconsistently across websites generally. This format is used by...
0.0.1-alpha
a6a31624ad4e0fb15f17d29853d33c34bb7e20c2
["tests.test_conversions::test_sub", "tests.test_conversions::test_sup"]
["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" }
socialpoint-labs__unity-yaml-parser-66
socialpoint-labs/unity-yaml-parser
22da3e0826559476b0ef0b81883c289ba8bc3058
diff --git a/unityparser/dumper.py b/unityparser/dumper.py index d67158a..c37b47f 100644 --- a/unityparser/dumper.py +++ b/unityparser/dumper.py @@ -19,9 +19,6 @@ class UnityDumper(Emitter, Serializer, Representer, Resolver): allow_unicode=None, line_break=None, encoding=None, explic...
python
diff --git a/unityparser/tests/fixtures/MetaFileWithoutTags.meta b/unityparser/tests/fixtures/MetaFileWithoutTags.meta new file mode 100644 index 0000000..5a0b039 --- /dev/null +++ b/unityparser/tests/fixtures/MetaFileWithoutTags.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7b042741569854557813adece4fc66e7 +Plugin...
2024-04-12T09:00:13+00:00Z
"-0" is not preserved in original file This is probably because it is parsed as int by unityparser, while unity probably parses it as float, where the "-0.0" can be preserved. Happy to open a PR, but not sure where to start.
I'm getting to the conclusion that we need to treat every `float` and `int` value as `str` to preserve all uniqueness in Unity formatting the documents as it seems impossible to track every use case. When the library was released we tried to be clever about parsing some numeric values so they were available to manip...
0.0.1-alpha
29cff5d9b78d242e085e22de14bdcfc53c716921
["unityparser.tests.test_scalar_value_types.TestSmartScalarValueTypes::test_types", "unityparser.tests.test_scalar_value_types.TestSmartScalarValueTypes::test_sum_int_type", "unityparser.tests.test_unity_document.TestUnityDocumentSerialization::test_preserve_missing_yaml_tags_ok"]
["unityparser.tests.test_inverted_scalar.TestInvertedScalarLoading::test_inverted_scalar_loading_ok", "unityparser.tests.test_unity_document.TestUnityDocumentSerialization::test_single_doc_unchanged", "unityparser.tests.test_unity_document.TestUnityDocumentSerialization::test_multi_doc_unchanged", "unityparser.tests.te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyinat__pyinaturalist-75
pyinat/pyinaturalist
46a229a36c23644c799bb3a036bdeb8bc6d3869f
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5ef367e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,88 @@ +name: Build & test python package + +on: + push: + branches: [master, dev] + tags: ['v*'] + pull_request: + branches: [master, d...
python
diff --git a/test/test_version.py b/test/test_version.py index 1ed5fdc..20418b4 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -1,17 +1,17 @@ -# A couple tests to make sure that versioning works as expected within Travis +# A couple tests to make sure that versioning works as expected within GitHub Act...
2020-11-12T23:19:11+00:00Z
Migrate from Travis CI to GitHub Actions [RIP Travis CI](https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing) 😢 Travis-ci.org is going read-only next month, and travis-ci.com will no longer have free plans for open-source public repos. Moving to GitHub Actions seems to be the popular choice. Specific feat...
@niconoe One thing I need from you is to enter a PyPi API token into GitHub secrets, which only the repo owner can do. You can do that under **Settings > Secrets**, and you can put the token under `PYPI_TOKEN`. [More info on GitHub secrets here](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypte...
0.0.1-alpha
ef39801b2a33ab8247f88dffbc3edd76979d2ee8
["test.test_version::test_version__pre_release"]
["test.test_api_requests::test_http_methods[delete-DELETE]", "test.test_api_requests::test_http_methods[get-GET]", "test.test_api_requests::test_http_methods[post-POST]", "test.test_api_requests::test_http_methods[put-PUT]", "test.test_api_requests::test_request_headers[input_kwargs0-expected_headers0]", "test.test_api...
["test.test_api_requests::test_request_dry_run_disabled", "test.test_auth::test_get_access_token", "test.test_auth::test_get_access_token__envars", "test.test_auth::test_get_access_token__mixed_args_and_envars", "test.test_auth::test_get_access_token__keyring", "test.test_auth::test_get_access_token__invalid_creds", "t...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
semuconsulting__pynmeagps-23
semuconsulting/pynmeagps
610e179c2dc7b24e0142d527103656ce0853c0ba
diff --git a/pynmeagps/nmeamessage.py b/pynmeagps/nmeamessage.py index ec0b9b9..b00ad12 100644 --- a/pynmeagps/nmeamessage.py +++ b/pynmeagps/nmeamessage.py @@ -91,7 +91,6 @@ class NMEAMessage: gindex = [] # (nested) grouped attribute indices try: - self._payload = kwargs.get("payl...
python
diff --git a/tests/test_parse.py b/tests/test_parse.py index 5a1adf8..d5bae7b 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -62,7 +62,7 @@ class ParseTest(unittest.TestCase): self.assertEqual( str(res), ( - "<NMEA(PUBX00, msgId=00, time=10:36:07, lat=53....
2023-02-15T19:10:06+00:00Z
False / misleading label in "UBX00" (NMEA-PUBX-00) message There is a typo in the bitfield description of the "UBX00" (NMEA-PUBX-00) message in "nmeatypes_get.py". In line 488 it says: "**PDOP**": DE indicating **Positional** DOP. However, according to the interface manual of the u-blox ZED-F9P receiver, and the u-...
Hi @dbstf Well spotted - thanks. PR will fix but needs associated change to PyGPSClient before I can issue a new release.
0.0.1-alpha
a3c64feb11252da8243f6566a4d121996f9d1d0a
["tests.test_parse.ParseTest::testParsePUBX", "tests.test_stream.StreamTest::testNMEA4"]
["tests.test_constructor.FillTest::testFill_BADMODE", "tests.test_constructor.FillTest::testFill_GNGLL", "tests.test_constructor.FillTest::testFill_GNGLLUPD", "tests.test_constructor.FillTest::testFill_GNGLL_HP", "tests.test_constructor.FillTest::testFill_GNGLL_NSEW1", "tests.test_constructor.FillTest::testFill_GNGLL_N...
["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" }
tinytag__tinytag-116
tinytag/tinytag
337c044ce51f9e707b8cd31d02896c9041a98afa
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py index a3f1305..595a101 100644 --- a/tinytag/tinytag.py +++ b/tinytag/tinytag.py @@ -170,40 +170,48 @@ class TinyTag(object): return parser @classmethod - def get_parser_class(cls, filename, filehandle): + def get_parser_class(cls, filena...
python
diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py index 0b70517..aa3a38e 100644 --- a/tinytag/tests/test_all.py +++ b/tinytag/tests/test_all.py @@ -510,6 +510,13 @@ def test_pathlib_compatibility(): TinyTag.get(filename) +def test_bytesio_compatibility(): + testfile = next(iter(testfiles.ke...
2023-06-21T12:04:25+00:00Z
Support BytesIo objects for tagging It would be awesome to support BytesIO or any other IO types with TinyTag. This way it can be used in some scenarios where files are packaged and do not have a normal path.
Have you tried using the parser classes directly? If you know what kind of file type you're handling, you should be able to use: ``` from tinytag import MP3 mp3_info = MP3(my_bytes_io) mp3_info.load(tags=True, duration=True) ``` I agree that this is pretty ugly API wise, so we can discuss how we could make th...
0.0.1-alpha
b882e9eed8cf25acc3f40d9f5630cf90f0102d87
["tinytag.tests.test_all::test_bytesio_compatibility"]
["tinytag.tests.test_all::test_file_reading[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header_2channel.mp3-expected3]...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
troycomi__reportseff-72
troycomi/reportseff
6b31d16f06a15ed87c89825b586cf51227f06fca
diff --git a/pyproject.toml b/pyproject.toml index 188feff..9fa9e82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "reportseff" -version = "2.8.3" +version = "2.8.4" description= "Tablular seff output" authors = ["Troy Comi <troycomi@gmail.com>"] license = "MIT" diff --git a/...
python
diff --git a/tests/test_job_collection.py b/tests/test_job_collection.py index 538a0bd..9523421 100644 --- a/tests/test_job_collection.py +++ b/tests/test_job_collection.py @@ -528,3 +528,26 @@ def test_process_entry_array_user(jobs): expected_job.state = "PENDING" expected_job._cache_entries() assert jo...
2025-08-27T11:58:37+00:00Z
[FEATURE REQUEST]: Having an option that filters the output of array jobs limited by a threshold number **Is your feature request related to a problem? Please describe.** My use case is to use the output results from `reportseff` to gather information about the job stats, and help detect jobs with long tail distribu...
I'll need a bit more information on this since I'm not sure I'm following. Is the idea that you'll have array jobs of, say, 10 jobs and some of 100 and you want to filter out those with 10? It could be feasible, but there may be issues with arrays with skipped indices or other non-straight forward cases. Give me som...
0.0.1-alpha
1ed174a38648926491342cc9b0af28d10611a909
["tests.test_job_collection::test_filter_by_array_size", "tests.test_reportseff::test_filter_by_array_size"]
["tests.test_db_inquirer::test_sacct_init", "tests.test_db_inquirer::test_sacct_get_valid_formats", "tests.test_db_inquirer::test_sacct_get_db_output", "tests.test_db_inquirer::test_sacct_get_db_output_no_newline", "tests.test_db_inquirer::test_sacct_set_user", "tests.test_db_inquirer::test_sacct_get_db_output_user", "...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sissaschool__xmlschema-266
sissaschool/xmlschema
f4789278070622f00721696d43946eb1ac304d88
diff --git a/xmlschema/validators/schema.py b/xmlschema/validators/schema.py index bbc5e10..00be62d 100644 --- a/xmlschema/validators/schema.py +++ b/xmlschema/validators/schema.py @@ -342,27 +342,30 @@ class XMLSchemaBase(XsdValidator, ElementPathMixin, metaclass=XMLSchemaMeta): self._root_elements = None ...
python
diff --git a/tests/test_cases/issues/issue_266/issue_266-1.xml b/tests/test_cases/issues/issue_266/issue_266-1.xml new file mode 100644 index 0000000..05d141c --- /dev/null +++ b/tests/test_cases/issues/issue_266/issue_266-1.xml @@ -0,0 +1,3 @@ +<TestField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + ...
2021-10-05T15:28:56+00:00Z
Schema with no default namespace + inline namespace gives parse error According to xmllint, XSDs with xhtml inline annotations are valid, for example the XSDs here: https://jats.nlm.nih.gov/archiving/1.2d1/xsd.html However, loading such xsd with xmlschema gives errors when no default namespace is specified. Examp...
Hi, found the problem: is related to namespaces mapping when the schema has no namespace. The internal declaration `xmlns="http://www.w3.org/1999/xhtml"` overrides the default namespace mapping (`'': ''`) that has to be applied to the schema declarations/definitions. The fix will be available in the next release....
0.0.1-alpha
3d1c423caea9614bc3768a2e89edbed1e52e9d8a
["tests.test_schemas.TestSchema067::test_xsd_file", "tests.test_validation.TestValidator047::test_xml_document_validation"]
["tests.test_cli.TestConsoleScripts::test_get_converter", "tests.test_cli.TestConsoleScripts::test_get_loglevel", "tests.test_cli.TestConsoleScripts::test_json2xml_command_01", "tests.test_cli.TestConsoleScripts::test_json2xml_command_02", "tests.test_cli.TestConsoleScripts::test_json2xml_command_03", "tests.test_cli.T...
["tests.test_typing.TestTyping::test_reveal_simple_type_restriction1", "tests.test_typing.TestTyping::test_strict_simple_types", "tests.validators.test_simple_types.TestXsd11SimpleTypes::test_assertion_facet"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
samuelcolvin__pytest-pretty-7
samuelcolvin/pytest-pretty
8368b8149698f36e2582a6f4c0d0087862d1baa9
diff --git a/README.md b/README.md index ae79b66..0d73478 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,10 @@ env: ``` This will mean the pytest output is wider and easier to use, more importantly, it'll make the error summary table printed by pytest-pretty much easier to read, see [this](https://github.com/T...
python
diff --git a/tests/test_simple.py b/tests/test_simple.py index 256cb47..7e9dec7 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -1,5 +1,11 @@ import pytest +pytest_plugins = "pytester" + + +test_str = """ +import pytest + def test_add(): assert 1 + 2 == 3 @@ -12,3 +18,17 @@ def test_subtract(...
2023-02-01T16:11:09+00:00Z
Add alternative for `pytester` fixture. This plugin is really nice and really improves the readability of the output. But it breaks the `pytester` fixture https://docs.pytest.org/en/7.2.x/reference/reference.html#std-fixture-pytester The `pytester` is based on parsing pytest output to determine number of failed/p...
Thanks for the issue, in concrete terms, what do you need from me here? > Thanks for the issue, in concrete terms, what do you need from me here? are you open for such a feature in this package (maybe implemented by someone else)? I think so, but I'm a bit lost on what it really does. If it doesn't add massive co...
0.0.1-alpha
8b5ea83408e3097823a50072ae137f6844924504
["tests.test_simple::test_fixture"]
["tests.test_simple::test_base"]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__nafas-144
sepandhaghighi/nafas
765766e77261f90ae533ed55a6e4855468169162
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 8051049..60f7213 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 11a6304..224c93f 100644 --- a/test/test.py +++ b/test/test.py @@ -299,5 +299,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-26T23:15:29+00:00Z
[Feature]: Speakers ### Describe the feature you want to add Support different speakers. ### Describe your proposed solution ```console nafas --speaker="US1" ``` ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://ttsmp3.com/
@sadrasabouri You are welcome to work on this issue whenever you have free time 🔥 Sure, I also find this website which can be useful for audio generation: https://www.narakeet.com/
0.0.1-alpha
eb10e83e04177baa6b8b8facfc152d71fcb34763
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
root-11__graph-theory-40
root-11/graph-theory
96916a0de3b29ff03f60a000a500731bdf60c458
diff --git a/graph/base.py b/graph/base.py index 94ea70c..8f5c63a 100644 --- a/graph/base.py +++ b/graph/base.py @@ -35,6 +35,8 @@ class BasicGraph(object): return False if self._nodes != other._nodes: return False + if self._edge_count != other._edge_count: + return...
python
diff --git a/tests/test_basics.py b/tests/test_basics.py index f946820..bb192ef 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -230,6 +230,25 @@ def test_in_and_out_degree(): assert g.in_degree(node) == in_degree[node] assert g.out_degree(node) == out_degree[node] +def test_equals()...
2024-03-13T18:52:21+00:00Z
`__eq__` (equality) can return false for two identical graphs if an edge was added and removed in one of them If one graph had a edge added and then removed again, comparing it to an identical graph can return false. This occurs it the added and removed edge is outgoing from an node that had no outgoing edges before. ...
A great catch @Sappique. I'm far away from my PC until the 12th of March, so depending on how urgent this issue is to you I see three options: A) If you are confident to make a pull request, then you can propose a patch and @04t02 and I can review it. B) Perhaps @04t02 can help out in my absence? C) I patch the l...
0.0.1-alpha
5b52a0942c22b33b7eaabcf3ed5ab0ab18529533
["tests.test_basics::test_equals", "tests.test_basics::test_copy_equals"]
["tests.test_assignment_problem::test_01_taxis_and_customers", "tests.test_assignment_problem::test_02_taxis_and_more_customers", "tests.test_assignment_problem::test_03_taxis_but_fewer_customers", "tests.test_basics::test_to_from_dict", "tests.test_basics::test_setitem", "tests.test_basics::test_add_node_attr", "tests...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mikeckennedy__fastapi-chameleon-26
mikeckennedy/fastapi-chameleon
a05272a64b79370c228f564e14ea34262bb8af43
diff --git a/fastapi_chameleon/engine.py b/fastapi_chameleon/engine.py index 7eca7f9..af072ce 100644 --- a/fastapi_chameleon/engine.py +++ b/fastapi_chameleon/engine.py @@ -94,7 +94,7 @@ def template(template_file: Optional[Union[Callable, str]] = None, mimetype: str except FastAPIChameleonNotFoundExceptio...
python
2024-11-10T17:41:21+00:00Z
[Feature Request] Add support for template data passed via `generic_error` This would extend upon functionality added in #24 to allow for a single template file within the tree that has dynamic content based upon the error itself. For example, if attempting to access an endpoint that requires authorization that a user...
0.0.1-alpha
9622a174a1613f6a288c460f2f358242c435447d
["tests.test_generic_error::test_friendly_403_sync_method[400-errors/404.pt-<h1>This is a pretty 404 page.</h1>]", "tests.test_generic_error::test_friendly_403_sync_method[401-errors/other_error_page.pt-<h1>Another pretty 404 page.</h1>]", "tests.test_generic_error::test_friendly_403_sync_method[403-errors/404.pt-<h1>T...
["tests.test_generic_error_data::test_data_friendly_generic_sync[400-errors/error_with_data.pt-template_data0-<p>this error is given with data</p>]", "tests.test_generic_error_data::test_data_friendly_generic_sync[401-errors/error_with_data.pt-template_data1-<p>this error is given with data</p>]", "tests.test_generic_e...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
santoshphilip__eppy-408
santoshphilip/eppy
0748f501632f9d5d8bb151ebcc33cfed9d937c0e
diff --git a/eppy/modeleditor.py b/eppy/modeleditor.py index 560a6f3..b8cc9d4 100644 --- a/eppy/modeleditor.py +++ b/eppy/modeleditor.py @@ -996,6 +996,9 @@ class IDF(object): is compatible with the EnergyPlus IDFEditor. """ + if self.idfabsname is None and isinstance(self.idfname, str): ...
python
diff --git a/tests/test_modeleditor.py b/tests/test_modeleditor.py index 873077a..3c16494 100644 --- a/tests/test_modeleditor.py +++ b/tests/test_modeleditor.py @@ -5,7 +5,7 @@ # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ======================================================...
2022-12-03T18:49:23+00:00Z
code for saving a blank file does not work ### code for saving a blank file does not work This is the code in link https://eppy.readthedocs.io/en/master/newfunctions.html#Blank-idf-file The last part of the section where you name and save a file does not work # - give it a file name idf_notemptyf...
fixed issue #408 :Problem: the following code fails :: fhandle = StringIO("VERSION, 7.3;" ) idf = IDF(fhandle) idf.idfname = "somefile.idf" idf.save() :Solution: idf.save uses self.idfabsname, ensure that it is not None
0.0.1-alpha
9964b129659aee42768faed9a7d53288d08471a6
["tests.test_modeleditor::test_name_and_save_inmemoryidf"]
["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" }
yukinarit__pyserde-651
yukinarit/pyserde
eccc151f944330d8bacd156904a56a094a7820d8
diff --git a/serde/se.py b/serde/se.py index c1b8250..7f6be3e 100644 --- a/serde/se.py +++ b/serde/se.py @@ -594,7 +594,7 @@ def {{func}}(obj, reuse_instances=None, convert_sets=None, skip_none=False): ) """, "union": """ -def {{func}}(obj, reuse_instances, convert_sets): +def {{func}}(obj, reuse_insta...
python
diff --git a/tests/test_json.py b/tests/test_json.py index 20d1be6..be0d062 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -1,6 +1,6 @@ from serde import serde from serde.json import to_json, from_json -from typing import Optional +from typing import Optional, Union, List def test_json_basics() -> N...
2025-08-10T17:04:44+00:00Z
`skip_none` doesn't propagate into nested `@serde` objects `skip_none` works at the outer layer of serialization, but doesn't seem to propagate into inner objects. Example: ```python @serde class Inner: a: int b: int|None @serde class Outer: i: Inner j: int k: ...
0.0.1-alpha
3c2d6e560fa015a5710bdcbc778c635da9e5caa1
["tests.test_json::test_skip_none_nested", "tests.test_se::test_render_list", "tests.test_se::test_render_dict", "tests.test_se::test_render_tuple", "tests.test_se::test_render_dataclass"]
["tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-int(10)0]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-str(foo)]", "tests.test_basics::test_simple[to_dict-from_dict-reuse_instances_default-False0-float(100.0)]", "tests.test_basics::test_simple[to_d...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__git-history-25
simonw/git-history
85a6eba85140dd7750f8714c183b92f6ee62c97d
diff --git a/git_history/cli.py b/git_history/cli.py index d9734d1..3d02495 100644 --- a/git_history/cli.py +++ b/git_history/cli.py @@ -199,7 +199,22 @@ def file( item_id_to_version = {} item_id_to_last_full_hash = {} - item_id_to_previous_version = {} + + if db[version_table].exists(): + sql ...
python
diff --git a/tests/test_git_history.py b/tests/test_git_history.py index 622791b..da859b3 100644 --- a/tests/test_git_history.py +++ b/tests/test_git_history.py @@ -6,6 +6,15 @@ import subprocess import sqlite_utils import textwrap +git_commit = [ + "git", + "-c", + "user.name='Tests'", + "-c", + "us...
2021-12-03T00:44:41+00:00Z
_version resets to 1 when command is run incrementally > I restarted it to try out an optimization, but then realized there's a nasty bug: the `_version` resets to 1 if you restart it even if there are already commits in the database. _Originally posted by @simonw in https://github.com/simonw/git-history/issues/21#...
This is why: https://github.com/simonw/git-history/blob/c308e02b498deff25b985683b0bf8fb35ec4a238/git_history/cli.py#L169-L171 Could I instead re-populate those dictionaries from the database on startup, like I do here? https://github.com/simonw/git-history/blob/c308e02b498deff25b985683b0bf8fb35ec4a238/git_histor...
0.0.1-alpha
b9dc03e9b2d80164a1ddf48e2b23f1fc733c3bb0
["tests.test_git_history::test_file_with_id_resume"]
["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" }
simonw__s3-credentials-42
simonw/s3-credentials
f5bc18d4efe6441c95cdb1971b7924cb83a2765b
diff --git a/s3_credentials/cli.py b/s3_credentials/cli.py index 4215f78..143a595 100644 --- a/s3_credentials/cli.py +++ b/s3_credentials/cli.py @@ -285,7 +285,7 @@ def create( ) ) if bucket_policy: - click.echo("... then the foll...
python
diff --git a/tests/test_dry_run.py b/tests/test_dry_run.py index 42aef60..a78c402 100644 --- a/tests/test_dry_run.py +++ b/tests/test_dry_run.py @@ -51,6 +51,16 @@ Would ensure role: 's3-credentials.AmazonS3FullAccess' Would assume role using following policy for 1200 seconds:*""" ), ), + ...
2021-12-07T07:09:53+00:00Z
Support making the bucket public, in that anyone can download files unauthenticated if they know the URL This can be considered a subset of: - #21
As far is I can tell the best way to do this is to attach a bucket policy: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.put_bucket_policy ```python response = client.put_bucket_policy( Bucket="examplebucket", Policy='{"Version": "2012-10-17", ... ] } ]}', )...
0.0.1-alpha
ea13a98a975a5a00c58f9a13e2c571f190dea2d5
["tests.test_dry_run::test_dry_run[options3-Would create bucket: 'my-bucket'\\n... then attach the following bucket policy to it:*\\nWould create user: 's3.read-write.my-bucket' with permissions boundary: 'arn:aws:iam::aws:policy/AmazonS3FullAccess'\\nWould attach policy called 's3.read-write.my-bucket' to user 's3.rea...
["tests.test_dry_run::test_dry_run[options0-Would create bucket: 'my-bucket'\\nWould create user: 's3.read-write.my-bucket' with permissions boundary: 'arn:aws:iam::aws:policy/AmazonS3FullAccess'\\nWould attach policy called 's3.read-write.my-bucket' to user 's3.read-write.my-bucket', details:*\\nWould call create acce...
["tests.test_s3_credentials::test_whoami", "tests.test_s3_credentials::test_list_users[-{\\n \"Path\": \"/\",\\n \"UserName\": \"NameA\",\\n \"UserId\": \"AID000000000000000001\",\\n \"Arn\": \"arn:aws:iam::000000000000:user/NameB\",\\n \"CreateDate\": \"2020-01-01 00:00:00+00:00\"\\n}\\n{\\n \"Path\"...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
rasterio__affine-79
rasterio/affine
7474623d0eeb92729086b4209d3949f25d5150ea
diff --git a/affine/__init__.py b/affine/__init__.py index b26ea37..4c2b61a 100644 --- a/affine/__init__.py +++ b/affine/__init__.py @@ -142,7 +142,7 @@ class Affine( precision = EPSILON def __new__(cls, a: float, b: float, c: float, d: float, e: float, - f: float): + f: float,...
python
diff --git a/affine/tests/test_serialize.py b/affine/tests/test_serialize.py new file mode 100644 index 0000000..0fee691 --- /dev/null +++ b/affine/tests/test_serialize.py @@ -0,0 +1,8 @@ +"""Test unpacking and repacking affine matrices.""" + +from affine import Affine + + +def test_issue79(): + """An affine matrix ...
2023-01-16T23:49:35+00:00Z
Affine class no longer compatible with delayed operations in Dask 2022.8.1 A recent change (dask/dask#9361) in how dask handles arguments that are instances or subclasses of `namedtuple` prevents `Affine` objects from being passed to delayed operations such as `dask.array.map_blocks`. Dask now unpacks the namedtuples ...
Quick example: ```python import dask.array as da import numpy as np from affine import Affine def dummy(x, aff): print(aff) return x x = da.from_array(np.ones((4, 4)), chunks=(2, 2)) a = Affine(1.0, 0.0, 0.0, 0.0, -1.0, 4.0) da.map_blocks(dummy, x, aff=a).compute() ``` @fbunt thanks for reporti...
0.0.1-alpha
451f78d21595480d36252a31bbb32233c6d1e9dd
["affine.tests.test_serialize::test_issue79"]
["affine.tests.test_pickle::test_pickle", "affine.tests.test_pickle::test_with_multiprocessing", "affine.tests.test_rotation::test_rotation_angle", "affine.tests.test_rotation::test_rotation_matrix", "affine.tests.test_rotation::test_rotation_matrix_pivot", "affine.tests.test_transform.PyAffineTestCase::test_add", "aff...
[]
{ "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" }
pappasam__toml-sort-76
pappasam/toml-sort
4ba1cbd0807d8d9627a6a2a8229d8799d968d981
diff --git a/toml_sort/tomlsort.py b/toml_sort/tomlsort.py index 3c66927..25a0339 100644 --- a/toml_sort/tomlsort.py +++ b/toml_sort/tomlsort.py @@ -430,8 +430,9 @@ class TomlSort: """ def sort_first(item: TomlSortItem) -> int: - if item.keys.base in sort_config.first: - re...
python
2024-11-19T13:06:44+00:00Z
0.24.x breaks sorting for inline tables with overrides for the first key Our pipelines recently started failing and it looks like its due to this change: https://github.com/pappasam/toml-sort/commit/9900c719e0e71db8158ed276277367356b79ea07#diff-f893f11eb0bc2f6af62b56b0a01cc76c62e591d06d9979e8212f1cb78d945947R434 ...
Thanks for raising this issue! Can you please send me: 1. Your Python version 2. your `toml-sort` version? 3. A full toml file that breaks on the latest release, and 4. The specific cli command that I can run on it to make it break? I've tried putting the above line in a `pyproject.toml` file, but I haven't ...
0.0.1-alpha
90279917a9c44bc90f3c5e795c4b2d8a4c440af0
["tests.test_toml_sort::test_tomlsort[from-toml-lang-from-toml-lang-first-args7]"]
["tests.test_cli::test_cli_defaults[from-toml-lang-sorted/from-toml-lang]", "tests.test_cli::test_cli_defaults[pyproject-weird-order-sorted/pyproject-weird-order]", "tests.test_cli::test_cli_defaults[comment-sorted/comment-header-footer]", "tests.test_cli::test_cli_defaults[inline-sorted/inline-default]", "tests.test_c...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
yukinarit__pyserde-423
yukinarit/pyserde
96b1df201d9c9f37f4f6ef13fe8c09e35595a957
diff --git a/pyproject.toml b/pyproject.toml index 7537113..b7695eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,6 +153,7 @@ select = [ "C", # flake8-comprehensions "B", # flake8-bugbear ] +ignore = ["B904"] line-length = 100 [tool.ruff.lint.mccabe] diff --git a/serde/core.py b/serde/core.p...
python
diff --git a/tests/test_de.py b/tests/test_de.py index 26290b4..d6e2d10 100644 --- a/tests/test_de.py +++ b/tests/test_de.py @@ -1,6 +1,6 @@ from decimal import Decimal -from typing import Union -from serde.de import from_obj +from typing import Union, Optional +from serde.de import deserialize, from_obj, Renderer, De...
2024-07-05T03:06:00+00:00Z
Error messages with more context Errors encountered while deserialising don't provide much context on which part of a file or string is failing. This makes it hard to debug problems with files being parsed etc. A simple improvement would be to also provide the target type the value is being converted to. Ultimately pr...
I agree! It would be great if someone can help with this. Thanks for implementing @yukinarit this is fantastic! @BaxHugh thank you for waiting so long! Glad you like it 🙂
0.0.1-alpha
586d02aa8adcdb9070dba9c7d6b2d86927576d4e
["tests.test_de::test_render_primitives", "tests.test_de::test_render_list", "tests.test_de::test_render_tuple", "tests.test_de::test_render_dict", "tests.test_de::test_render_set", "tests.test_de::test_render_opt", "tests.test_se::test_render_primitives", "tests.test_se::test_render_list", "tests.test_se::test_render_...
["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" }
pyprojectx__pyprojectx-24
pyprojectx/pyprojectx
9fb2504c1aed7692ee4a79ddc633316457ced4e2
diff --git a/src/pyprojectx/cli.py b/src/pyprojectx/cli.py index 3fb1376..02ecdb2 100644 --- a/src/pyprojectx/cli.py +++ b/src/pyprojectx/cli.py @@ -39,6 +39,11 @@ def _run(argv: List[str]) -> None: return config = Config(options.toml_path) + + if options.install: + _install_tool(options, conf...
python
diff --git a/tests/integration/test_pw.py b/tests/integration/test_pw.py index 3504ba2..40a6067 100644 --- a/tests/integration/test_pw.py +++ b/tests/integration/test_pw.py @@ -11,6 +11,14 @@ from pyprojectx.initializer.initializers import SCRIPT_PREFIX pip_upgrade_regex = re.compile(r"\s*\[notice] A new release of pi...
2023-11-20T14:07:20+00:00Z
(🎁) Command to install tool explicitly My dockerfile looks like this: ```dockerfile # trigger installation of required tools ./pw poetry --version && \ ./pw safety --version && \ ``` I want to install these tools, then use them in a later layer, this is for caching reasons. What if there was a wa...
interesting idea 👍 Something like: `./pw --install tool-x` * add tool-x= "tool-x=={version}" to [tool.pyprojectx] with latest version if not yet present * download latest version: urllib3.request("GET", f'https://pypi.org/pypi/{package}/json').json()['info']['version'] * create or [modify pyproject.toml](https...
0.0.1-alpha
67b60aa891de7d9f002bf0676851a7b64ff8bba1
["tests.integration.test_pw::test_install_tool"]
["tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts-list]", "tests.i...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_tool_alias", "tests.unit.test_cli::test_run_tool_alias_with_args", "tests.unit.test_cli::test_run_explicit_tool_alias_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.unit.test_cli...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__files-to-prompt-15
simonw/files-to-prompt
db4a164fecdb17eb22abcfb96648173249ea559b
diff --git a/README.md b/README.md index b8bf40e..5032d7c 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Contents of file3.txt --- ``` -### XML Output +### Claude XML Output Anthropic has provided [specific guidelines](https://docs.anthropic.com/claude/docs/long-context-window-tips) for optimally str...
python
diff --git a/tests/test_files_to_prompt.py b/tests/test_files_to_prompt.py index cf37549..5b20566 100644 --- a/tests/test_files_to_prompt.py +++ b/tests/test_files_to_prompt.py @@ -1,4 +1,5 @@ import os +import pytest from click.testing import CliRunner @@ -190,53 +191,33 @@ def test_binary_file_warning(tmpdir): ...
2024-09-09T05:33:07+00:00Z
Add `--xml` flag to structure output for Claude's long context window # Add `--xml` flag to structure output for Claude's long context window ## Background Anthropic has provided [specific guidelines](https://docs.anthropic.com/claude/docs/long-context-window-tips) for optimally structuring prompts to take advan...
This landed as `-c/--cxml` - it's documented here: https://github.com/simonw/files-to-prompt/blob/0.3/README.md#claude-xml-output Tested this like so: ```bash files-to-prompt ../datasette/tests/test_internal* -c | llm -m claude-3.5-sonnet \ --system 'summarize each of these documents, include references to the doc...
0.0.1-alpha
d016523c221ea2169d6bab2b266d034a7430f197
["tests.test_files_to_prompt::test_xml_format_dir[args0]", "tests.test_files_to_prompt::test_xml_format_dir[args1]"]
["tests.test_files_to_prompt::test_basic_functionality", "tests.test_files_to_prompt::test_include_hidden", "tests.test_files_to_prompt::test_ignore_gitignore", "tests.test_files_to_prompt::test_multiple_paths", "tests.test_files_to_prompt::test_ignore_patterns", "tests.test_files_to_prompt::test_mixed_paths_with_optio...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
roskakori__pygount-6
roskakori/pygount
4f9b7677802fa0bd578b77d627c45677e71686c4
diff --git a/docs/changes.rst b/docs/changes.rst index ebe4dce..ab15a09 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -3,7 +3,10 @@ Changes This chapter describes the changes coming with each new version of pygount. -Verionn 2.1.0, 2025-03-xx +Version 3.0.0, 2025-03-xx + +.. warning :: This release chang...
python
diff --git a/tests/test_analysis.py b/tests/test_analysis.py index 0e4dc17..f90b369 100644 --- a/tests/test_analysis.py +++ b/tests/test_analysis.py @@ -23,7 +23,7 @@ from pygount.analysis import ( is_markup_file, ) -from ._common import PYGOUNT_PROJECT_FOLDER, PYGOUNT_SOURCE_FOLDER, TempFolderTest +from ._comm...
2025-03-17T01:17:59+00:00Z
Count pure markup files as documentation Some file formats supported by pygments are not really code rather than markup, especially: - .md - .rst - .txt - `.<digit>` (groff) Currently they count as code, a better choice would be documentation or maybe even a new class markup.
0.0.1-alpha
3d6d4c1ce6d48ca98b1ae665a068af4f966d7bb6
["tests.test_analysis.AnalysisTest::test_can_compute_python_line_parts", "tests.test_analysis.AnalysisTest::test_can_detect_white_text", "tests.test_analysis::test_can_detect_markup_file[md-True]", "tests.test_analysis::test_can_detect_markup_file[MD-True]", "tests.test_analysis::test_can_detect_markup_file[mD-True]", ...
["tests.test_analysis.SourceScannerTest::test_can_find_any_files", "tests.test_analysis.SourceScannerTest::test_can_find_files_from_mixed_cloned_git_remote_url_and_local", "tests.test_analysis.SourceScannerTest::test_can_find_no_files", "tests.test_analysis.SourceScannerTest::test_can_find_python_files", "tests.test_an...
[]
{ "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" }
mapbox__tilesets-cli-76
mapbox/tilesets-cli
63a08db9f8abda1c3a8baeb833bd0074be4f20e4
diff --git a/mapbox_tilesets/scripts/cli.py b/mapbox_tilesets/scripts/cli.py index 6fbecc8..309bafb 100644 --- a/mapbox_tilesets/scripts/cli.py +++ b/mapbox_tilesets/scripts/cli.py @@ -4,6 +4,7 @@ import tempfile import click import cligj +import base64 from requests_toolbelt import MultipartEncoder, MultipartEnco...
python
diff --git a/tests/conftest.py b/tests/conftest.py index 6c931b1..9bbfbcf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,7 +6,8 @@ from json.decoder import JSONDecodeError @pytest.fixture(scope="function") def token_environ(monkeypatch): - monkeypatch.setenv("MAPBOX_ACCESS_TOKEN", "fake-token") + ...
2020-08-18T21:03:50+00:00Z
add-source = Broken Pipe 💥 Running into some obtuse errors while attempting to `add-source` (actually update a source). Quite possibly my own fault as I'm on macOS, seem to have 3 versions of python installed, and have no idea about python. Attempting to upload a 60mb non-ld geojson. Noted a comment from @Gerdie i...
Hi @theprojectsomething, have you figured out this issue or a workaround? I am having a similar issue, opened a new ticket for it. Hi @gitalink and @theprojectsomething ! We have schedule this issue for next week's bug rotation. We'll keep the ticket up to date. I ran into this and had some thoughts: - does this r...
0.0.1-alpha
8b581f4eab8e8a8155a6989e063723d584e35eeb
["tests.test_cli_sources::test_cli_add_source_wrong_username"]
["tests.test_cli_create::test_cli_create_missing_recipe", "tests.test_cli_create::test_cli_create_missing_name", "tests.test_cli_create::test_cli_create_success", "tests.test_cli_create::test_cli_create_attribution_json_parse_error", "tests.test_cli_create::test_cli_create_success_description", "tests.test_cli_create::...
[]
{ "key": "bsd-2-clause", "name": "BSD 2-Clause \"Simplified\" License", "spdx_id": "BSD-2-Clause", "url": "https://api.github.com/licenses/bsd-2-clause" }
sec-edgar__sec-edgar-244
sec-edgar/sec-edgar
6683107813654a139dfea9c7664236394f247119
diff --git a/docs/source/whatsnew/v0.4.0.rst b/docs/source/whatsnew/v0.4.0.rst index 27eacc0..fbd8c57 100644 --- a/docs/source/whatsnew/v0.4.0.rst +++ b/docs/source/whatsnew/v0.4.0.rst @@ -15,6 +15,7 @@ Many breaking changes, as this update does a lot of restructuring. - If no filings found for ``DailyFilings`` or ``M...
python
diff --git a/secedgar/tests/core/test_company.py b/secedgar/tests/core/test_company.py index d59cc2b..238cfe9 100644 --- a/secedgar/tests/core/test_company.py +++ b/secedgar/tests/core/test_company.py @@ -2,6 +2,7 @@ import datetime import pytest + from secedgar.cik_lookup import CIKLookup from secedgar.client im...
2021-11-28T20:19:52+00:00Z
13F-HR/A Files are downloaded with filing_type=FilingType.FILING_13FHR **Describe the bug** Using `filing_type=FilingType.FILING_13FHR` seems to include _both_ 13F-HR and 13F-HR/A files. Expectation would be that it _only_ downloads 13F-HR files, and not the amended filings. **To Reproduce** ``` from secedgar...
@MineSafety yes, this is a bug. We need to filter so that those results aren't considered when fetching data. Just reopened #154. Specifically, we need to change the code for `_get_urls_for_cik`. Look at this line: ```python links.extend([link.string for link in data.find_all("filinghref")]) ``` Once we get data it...
0.0.1-alpha
8031a9684f43e4c3f0391432d6b958c45507cb1f
["secedgar.tests.core.test_company.TestCompanyFilings::test__filter_filing_links"]
["secedgar.tests.core.test_combo.TestComboFilings::test_user_agent_client_none", "secedgar.tests.core.test_combo.TestComboFilings::test_client_passed_to_objects", "secedgar.tests.core.test_combo.TestComboFilings::test_combo_quarterly_only_one_year", "secedgar.tests.core.test_combo.TestComboFilings::test_combo_quarterly...
["secedgar.tests.core.test_company.TestCompanyFilings::test_filings_warning_lt_count[5-False]", "secedgar.tests.core.test_company.TestCompanyFilings::test_filings_warning_lt_count[10-False]", "secedgar.tests.test_cli.TestCLI::test_cli_filing_multiple_companies_input[filing -l aapl -l msft -l amzn -t FILING_10Q -n {}-10...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sissaschool__xmlschema-450
sissaschool/xmlschema
fa92d5a3f313542bb661317dcbe417cf3989826e
diff --git a/doc/conf.py b/doc/conf.py index 88fbed0..fa60f61 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,9 +99,9 @@ author = 'Davide Brunato' # built documents. # # The short X.Y version. -version = '4.0' +version = '4.1' # The full version, including alpha/beta/rc tags. -release = '4.0.1' +release = '4.1.0'...
python
diff --git a/tests/test_dataobjects.py b/tests/test_dataobjects.py index 0a9701d..acac2d9 100644 --- a/tests/test_dataobjects.py +++ b/tests/test_dataobjects.py @@ -414,15 +414,15 @@ class TestDataObjects(unittest.TestCase): col_data = self.col_schema.decode(self.col_xml_filename) self.assertTrue(col_...
2025-05-14T07:39:59+00:00Z
XsdUnion is not working in 4.0.1 When using an XsdUnion with multiple `memberTypes` as shown below, the `schema.encode` function fails. Example issue from our use case: [https://github.com/tier4/scenario_simulator_v2/issues/1573](https://github.com/tier4/scenario_simulator_v2/issues/1573) ```xml <xsd:simpleType name=...
Ok, I will take a look ASAP. Thank you On Thu, Apr 17, 2025 at 7:54 AM ぐるぐる ***@***.***> wrote: > When using an XsdUnion with multiple memberTypes as shown below, the > schema.encode function fails. > Example issue from our use case: tier4/scenario_simulator_v2#1573 > <https://github.com/tier4/scenario_simula...
0.0.1-alpha
8c01918fdc11e8b591caccdfab4e1504e8a91609
["tests.test_dataobjects.TestDataObjects::test_invalid_value_type", "tests.test_dataobjects.TestDataBindings::test_invalid_value_type", "tests.test_dataobjects.TestDataObjects11::test_invalid_value_type", "tests.test_dataobjects.TestDataBindings11::test_invalid_value_type", "tests.validators.test_builtins.TestXsd10Buil...
["tests.test_cli.TestConsoleScripts::test_get_converter", "tests.test_cli.TestConsoleScripts::test_get_loglevel", "tests.test_cli.TestConsoleScripts::test_json2xml_command_01", "tests.test_cli.TestConsoleScripts::test_json2xml_command_02", "tests.test_cli.TestConsoleScripts::test_json2xml_command_03", "tests.test_cli.T...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__mycoffee-126
sepandhaghighi/mycoffee
615acd1f3fcb0fa310123a57c1c54ce6dfe23bc7
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 3e55973..2aede7c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -85,6 +85,7 @@ body: label: MyCoffee version description: Which version of MyCoffee are you us...
python
diff --git a/test/functions_test.py b/test/functions_test.py index 6f2d99d..9d1e932 100644 --- a/test/functions_test.py +++ b/test/functions_test.py @@ -716,7 +716,7 @@ True >>> _ = parser.add_argument('--save-format', help='file format', type=str.lower, choices=FILE_FORMATS_LIST, default="text") >>> args = parser.pa...
2025-06-21T06:28:46+00:00Z
[Feature]: Clever Dripper ### Describe the feature you want to add Support **Clever Dripper** method ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context References: 1. https://cafely.com/blogs/coffee-brew-guide/clever-d...
0.0.1-alpha
cc8237be4348395d37e59fbb7dbcc52522a10122
["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" }
pytest-dev__pytest-bdd-689
pytest-dev/pytest-bdd
d517a80fd11370321431b0a699387d131dad5565
diff --git a/CHANGES.rst b/CHANGES.rst index ec01382..cddd070 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,7 @@ Changelog Unreleased ---------- +- Fix an issue when only the first Step would inject a fixture, while later steps would not be able to. 7.2.0 ---------- diff --git a/src/pytest_bdd/compat.py...
python
diff --git a/tests/steps/test_common.py b/tests/steps/test_common.py index 7108aaa..e3acb05 100644 --- a/tests/steps/test_common.py +++ b/tests/steps/test_common.py @@ -78,6 +78,48 @@ def test_step_function_multiple_target_fixtures(pytester): assert bar == "test bar" +def test_step_function_target_fixture_rede...
2024-09-21T09:42:39+00:00Z
Multiple step scenarios targeting the same fixture doesn't update the fixture Env: Pytest 8.1.1 Pytest-bdd 7.1.2 more details ``` ============================================================= test session starts ============================================================= platform linux -- Python 3.10.6, pyte...
We are seeing this too, combinations tested that failed to behave as expected: * pytest 8.1.2, pytest-bdd 7.1.2 * pytest 8.2.0, pytest-bdd 7.1.2 Downgrading to pytest 7.4.4 fixes it. I don't have time to open a pull request right now, will try to eventually but this seems to work (I modified the file locally in my...
0.0.1-alpha
9958dfd763672b360e238e27ba4da5e6e8696b21
["tests.steps.test_common::test_step_function_target_fixture_redefined"]
["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" }
simonw__sqlite-migrate-6
simonw/sqlite-migrate
0587a1a49872ad3323ccae70080806ad76a25ba8
diff --git a/sqlite_migrate/__init__.py b/sqlite_migrate/__init__.py index 13015b8..9cb5400 100644 --- a/sqlite_migrate/__init__.py +++ b/sqlite_migrate/__init__.py @@ -94,15 +94,20 @@ class Migrations: if not table.exists(): table.create( { + "id": int, ...
python
diff --git a/tests/test_sqlite_migrate.py b/tests/test_sqlite_migrate.py index 98bc1e7..53f58d4 100644 --- a/tests/test_sqlite_migrate.py +++ b/tests/test_sqlite_migrate.py @@ -81,18 +81,35 @@ def test_order_does_not_matter(migrations, migrations_not_ordered_alphabetically assert db1.schema == db2.schema -def ...
2024-03-13T20:18:34+00:00Z
It shouldn't be necessary to name the migrations alphabetically For LLM I got into a habit of doing this: ```python @migration() def m001_create_table(db): # db is a sqlite-utils Database instance db["creatures"].create( {"id": int, "name": str, "species": str}, pk="id" ) @migrat...
This will likely require a schema change. That means `sqlite_migrate` needs to start using migrations to manage its own `_sqlite_migrations` table. I'm really torn on this one. On the one hand, having `sqlite-migrate` manage its own migrations using itself is a really nice example of eating-own-dogfood, and a good demo...
0.0.1-alpha
5ed0d50924efbf6dd39c07d0aa017ef3e0f1cfec
["tests.test_sqlite_migrate::test_upgrades_sqlite_migrations[create_table0-name]", "tests.test_sqlite_migrate::test_upgrades_sqlite_migrations[create_table1-pk1]", "tests.test_sqlite_utils_migrate_command::test_verbose"]
["tests.test_sqlite_migrate::test_basic", "tests.test_sqlite_migrate::test_stop_before", "tests.test_sqlite_migrate::test_two_migration_sets", "tests.test_sqlite_migrate::test_order_does_not_matter", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPD...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
luolingchun__flask-openapi3-198
luolingchun/flask-openapi3
012d1f4bbb5b543ddedd81ba57bd8b2a9592da05
diff --git a/flask_openapi3/request.py b/flask_openapi3/request.py index 8c0e84a..5640473 100644 --- a/flask_openapi3/request.py +++ b/flask_openapi3/request.py @@ -42,8 +42,10 @@ def _get_value(model: Type[BaseModel], args: MultiDict, model_field_key: str, mo def _validate_header(header: Type[BaseModel], func_kwargs:...
python
diff --git a/tests/test_model_extra.py b/tests/test_model_extra.py new file mode 100644 index 0000000..f71a575 --- /dev/null +++ b/tests/test_model_extra.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# @Author : llc +# @Time : 2024/11/20 14:45 +from typing import Optional + +import pytest +from pydantic import Base...
2024-12-01T05:31:56+00:00Z
Query model extra='forbid' not honored We currently also use `flask_pydantic` since that was our first step into getting pydantic incorporated into flask. It's `validate` function uses the pydantic model for the query as-is to check the incoming query parameters. Via In our project we do the following: ```pyt...
> In my opinion, the _validate_query should simply let the pydantic model do the validation. This works until you need to do arrays, or complex parameters `style` defined in Openapi. It would be great if this type of parsing was moved elsewhere though (like in pydantic?) There should be a general library that...
0.0.1-alpha
79ed3feb4e56656e144cd961905e3fdee1005a4f
["tests.test_model_extra::test_query", "tests.test_model_extra::test_form", "tests.test_model_extra::test_header"]
["tests.test_api_blueprint::test_openapi", "tests.test_api_blueprint::test_post", "tests.test_api_blueprint::test_put", "tests.test_api_blueprint::test_patch", "tests.test_api_blueprint::test_delete", "tests.test_api_view::test_openapi", "tests.test_api_view::test_get_list", "tests.test_api_view::test_post", "tests.tes...
["tests.test_api_view_args::test_get_view_kwargs", "tests.test_async::test_get_openapi", "tests.test_async::test_post_openapi", "tests.test_async::test_get_list", "tests.test_async::test_post", "tests.test_command::test_openapi_command"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
nalepae__pandarallel-191
nalepae/pandarallel
435fd3337fce249c7aab196e63ad56956e772f6d
diff --git a/pandarallel/__init__.py b/pandarallel/__init__.py index 223f9ed..8d6d70b 100644 --- a/pandarallel/__init__.py +++ b/pandarallel/__init__.py @@ -1,3 +1,3 @@ from .core import pandarallel -__version__ = "1.6.2" +__version__ = "1.6.3" diff --git a/pandarallel/data_types/dataframe.py b/pandarallel/data_type...
python
2022-08-09T09:51:21+00:00Z
TypeError: 'generator' object is not subscriptable error in colab - works in VScode ## General - **Operating System**: OSX - **Python version**: 3.7.13 - **Pandas version**: 1.3.5 - **Pandarallel version**: 1.6.2 ## Acknowledgement - Issue happens on Colab only. When I use VScode, the problem does not happ...
I have same error occured in google colab. Hi all, I think I introduced this bug in a recent PR. I assume rolling back to pandarallel 1.6.1 (i.e. `!pip install pandarallel==1.6.1`) should work as a temporary fix while I have a look at the issue. Very sorry about the bug, I tested on regular jupyter notebooks but ...
0.0.1-alpha
90cf06bec41bd0a64eba3c58edfd6a3f993baea6
["tests.test_pandarallel::test_dataframe_apply_axis_0[named-1000-False-None]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1000-True-None]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1-False-None]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1-True-None]", "tests.test_pan...
["tests.test_pandarallel::test_dataframe_apply_axis_0[named-1000-False-False]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1000-True-False]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1-False-False]", "tests.test_pandarallel::test_dataframe_apply_axis_0[named-1-True-False]", "tests.test...
["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" }
ramonhagenaars__jsons-95
ramonhagenaars/jsons
e335fd5ebc465b523cf153675ad2eeafbc37b5fb
diff --git a/jsons/deserializers/default_tuple.py b/jsons/deserializers/default_tuple.py index c696171..176ab05 100644 --- a/jsons/deserializers/default_tuple.py +++ b/jsons/deserializers/default_tuple.py @@ -52,14 +52,19 @@ def default_namedtuple_deserializer( else: field = cls._field_defaults.ge...
python
2020-07-03T20:29:39+00:00Z
_field_types of typing.NamedTuple has been deprecated and will be removed in Python 3.9 https://github.com/ramonhagenaars/jsons/blob/e335fd5ebc465b523cf153675ad2eeafbc37b5fb/jsons/deserializers/default_tuple.py#L56 https://docs.python.org/3/whatsnew/3.8.html#deprecated ``` The typing.NamedTuple class has deprec...
Hi @tirkarthi. I see you also created a pull request for this: thank you! I'll address it soon.
0.0.1-alpha
15dce3def066a978ed410b36e2b1739adce73787
["tests.test_tuple.TestTuple::test_load_namedtuple_with_types"]
["tests.test_case_transformer.TestCaseTransformer::test_case_transformers", "tests.test_case_transformer.TestCaseTransformer::test_serialize_and_deserialize_with_case_transformer", "tests.test_chain_map.TestChainMap::test_dump_chain_map", "tests.test_chain_map.TestChainMap::test_load_chain_map", "tests.test_common_impl...
["tests.test_list.TestList::test_dump_list_strict_no_cls", "tests.test_specific_versions.TestSpecificVersions::test_dump_dataclass_with_optional", "tests.test_specific_versions.TestSpecificVersions::test_namedtuple_with_optional", "tests.test_union.TestUnion::test_dump_union", "tests.test_union.TestUnion::test_load_uni...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
xgcm__xhistogram-25
xgcm/xhistogram
3e7e1c10227e03c3a216d1b6882431312b3cf5d2
diff --git a/xhistogram/core.py b/xhistogram/core.py index e6bfcd4..04cef56 100644 --- a/xhistogram/core.py +++ b/xhistogram/core.py @@ -8,7 +8,7 @@ import numpy as np from functools import reduce from collections.abc import Iterable from numpy import ( - digitize, + searchsorted, bincount, reshape, ...
python
diff --git a/xhistogram/test/test_core.py b/xhistogram/test/test_core.py index 3a692c6..db0bf99 100644 --- a/xhistogram/test/test_core.py +++ b/xhistogram/test/test_core.py @@ -1,4 +1,5 @@ import numpy as np +import pandas as pd from itertools import combinations import dask.array as dsa @@ -328,3 +329,23 @@ def t...
2021-06-22T00:25:33+00:00Z
Support binning over datetime64 objects The method of adding a small increment to the bin (in [core.py](https://github.com/xgcm/xhistogram/blob/9992eba11eff9ee704e0f6755d521ab56cab9de3/xhistogram/core.py#L117)) leads to an error when trying to do time binning over a numpy datetime64-indexed coordinate, which are quite...
xhistogram uses the numpy/dask digitize functions, which do not currently support datetime objects. A workaround is to first view or cast your datetime data to a type that digitize can safely cast to floats, e.g. ```python import pandas as pd import numpy as np from xhistogram.core import histogram data = np.arr...
0.0.1-alpha
5c12e178cfeefa1c36c2b9ea45fe2101f35c9bd2
["xhistogram.test.test_core::test_histogram_results_datetime[False-None]", "xhistogram.test.test_core::test_histogram_results_datetime[False-1]", "xhistogram.test.test_core::test_histogram_results_datetime[False-2]"]
["xhistogram.test.test_core::test_histogram_results_1d[False-None-10-1-None-False]", "xhistogram.test.test_core::test_histogram_results_1d[False-None-10-1-None-True]", "xhistogram.test.test_core::test_histogram_results_1d[False-None-10-1-1-False]", "xhistogram.test.test_core::test_histogram_results_1d[False-None-10-1-1...
["xhistogram.test.test_core::test_histogram_results_3d_density[False]", "xhistogram.test.test_core::test_histogram_results_3d_density[True]", "xhistogram.test.test_core::test_histogram_results_datetime[True-None]", "xhistogram.test.test_core::test_histogram_results_datetime[True-1]", "xhistogram.test.test_core::test_hi...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__csv-diff-3
simonw/csv-diff
9574395c7c36970b6bacce6cbf0ba4235418c488
diff --git a/csv_diff/__init__.py b/csv_diff/__init__.py index e620f9e..7c018d0 100644 --- a/csv_diff/__init__.py +++ b/csv_diff/__init__.py @@ -20,7 +20,9 @@ def load_csv(fp, key=None, dialect=None): if key: keyfn = lambda r: r[key] else: - keyfn = lambda r: hashlib.sha1(json.dumps(r, sort_ke...
python
diff --git a/tests/test_csv_diff.py b/tests/test_csv_diff.py index b6fe5a4..0e3670f 100644 --- a/tests/test_csv_diff.py +++ b/tests/test_csv_diff.py @@ -43,6 +43,14 @@ EIGHT = """id,name,age,length 3,Bailee,1,100 4,Bob,7,422""" +NINE = """id,name,age +1,Cleo,5 +2,Pancakes,4""" + +TEN = """id,name,age +1,Cleo,5 +2,P...
2020-10-16T01:22:32+00:00Z
error when no key precised the tool works well when we have a id precised by user as the key. However I think when the user doesn't use the '--key' option, it's not working as expected. for example: ----1.csv---- """id,name,age 1,Cleo,5 2,Pancakes,2""" ----2.csv---- """id,name,age 1,Cleo,5 2,Pancakes,3...
Thanks - please do open a pull request for this! > Thanks - please do open a pull request for this! PR Done! :)
0.0.1-alpha
09409e320910a13e444a95879ff326b7ce4c1624
["tests.test_human_text::test_no_key"]
["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_sniff_format", "tests.test_cli::test_format_overrides_sniff", "tests.test_cli::test_column_containing_dot", "tests.test_csv_diff::test_row...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
serge-sans-paille__beniget-119
serge-sans-paille/beniget
ddfa5a8b4a19c9a618910e9324a4ff9cff68c467
diff --git a/beniget/beniget.py b/beniget/beniget.py index e7714d3..625b45b 100644 --- a/beniget/beniget.py +++ b/beniget/beniget.py @@ -202,6 +202,15 @@ Builtins = {k: v for k, v in BuiltinsSrc.items()} # this should probably be assigned to the filename give to DefUseChains instead. Builtins["__file__"] = __file__ ...
python
diff --git a/tests/test_chains.py b/tests/test_chains.py index 80a98e4..db423c2 100644 --- a/tests/test_chains.py +++ b/tests/test_chains.py @@ -1561,6 +1561,17 @@ print(x, y) 'x -> (<MatchClass> -> (), x -> (<Call> -> ()))', 'y -> (<MatchClass> -> (), y -> (<Call> -> ())...
2025-03-09T15:40:18+00:00Z
Some builtins are only available under Windows or newer Python version The [WindowsError](https://docs.python.org/3.14/library/exceptions.html#WindowsError) builtin name only exist under Windows, so if we are analyzing a module that uses it under Linux it will erroneously marked as unbound. A possible solution would...
The aiter and anext are only available under Python 3.10+. EncodingWarning as well, and PythonFinalizationError is for Python 3.13+. So the same kind of problem applies to Python version as well. Another idea: maybe the builtin dict can be passed as a parameter so this issue can be fixed in the client side ?
0.0.1-alpha
1131cc73d9820d053fe9ed9580d4e7b266b969a5
["tests.test_chains.TestDefUseChains::test_WindowsError_builtin_name", "tests.test_chains.TestDefUseChains::test_newer_Python_version_builtin_name", "tests.test_chains.TestDefUseChainsStdlib::test_WindowsError_builtin_name", "tests.test_chains.TestDefUseChainsStdlib::test_newer_Python_version_builtin_name", "tests.test...
["tests.test_attributes.TestAttributes::test_no_attribute", "tests.test_attributes.TestAttributes::test_non_standard_self", "tests.test_attributes.TestAttributes::test_self_redefinition", "tests.test_attributes.TestAttributes::test_self_redefinition_in_args", "tests.test_attributes.TestAttributes::test_self_redefinitio...
[]
{ "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" }