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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rasterio__affine-107 | rasterio/affine | b337a75f7f433bc961d27a477d92f9c78b555ef5 | diff --git a/CHANGES.txt b/CHANGES.txt
index 61e6d74..4157ae0 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -13,6 +13,7 @@ CHANGES
(#111).
- Source was moved to a single-module affine.py in the src directory (#112).
- Add numpy __array__ interface (#108).
+- Add support for ``@`` matrix multiplier methods (#122).
... | python | diff --git a/tests/test_numpy.py b/tests/test_numpy.py
index 200045d..74bc49f 100644
--- a/tests/test_numpy.py
+++ b/tests/test_numpy.py
@@ -2,7 +2,7 @@
import pytest
-from affine import Affine
+from affine import Affine, identity
try:
import numpy as np
@@ -66,3 +66,30 @@ def test_linalg():
)
te... | 2025-01-27T21:22:46+00:00Z | Expose `__matmul__` for matrix multiplication
Affine has a `__mul__` magic method for matrix multiplication with the `*` operator.
Python 3.5 added the `@` operator for matrix multiplication (matmul), with several magic methods added to the [object data model](https://docs.python.org/3/reference/datamodel.html). Pr... | I should mention that I have some work in progress for this one, which will be ready soon.
@mwtoews Yes, we should implement `__rmatmul__` for a tuple on the left-hand side. I mentioned this in #48.
In #48 we've agreed that `__rmatmul__` and `__rmul__` should raise in all cases.
This hasn't been done yet
```pycon
>>> ... | 0.0.1-alpha | c6eed350f322dc93763902cc4aec708e7f191dbd | ["tests.test_rotation::test_rotation_angle", "tests.test_rotation::test_rotation_matrix_pivot", "tests.test_transform::test_permutation_constructor", "tests.test_transform::test_matmul_by_identity", "tests.test_transform::test_matmul_transform", "tests.test_transform::test_itransform", "tests.test_transform::test_imul_... | ["tests.test_pickle::test_pickle", "tests.test_pickle::test_with_multiprocessing", "tests.test_rotation::test_rotation_matrix", "tests.test_serialize::test_issue79", "tests.test_transform::test_zero_args", "tests.test_transform::test_wrong_arg_type", "tests.test_transform::test_args_too_few", "tests.test_transform::tes... | [] | {
"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"
} | |
zheller__flake8-quotes-97 | zheller/flake8-quotes | fb50dd20e856c8aae955236f230945844d016f4d | diff --git a/flake8_quotes/docstring_detection.py b/flake8_quotes/docstring_detection.py
index 1934095..7495b63 100644
--- a/flake8_quotes/docstring_detection.py
+++ b/flake8_quotes/docstring_detection.py
@@ -63,8 +63,14 @@ def get_docstring_tokens(tokens):
# Count opening and closing brackets in bracket_count... | python | diff --git a/test/data/docstring_not_docstrings.py b/test/data/docstring_not_docstrings.py
index 31f16b4..4248918 100644
--- a/test/data/docstring_not_docstrings.py
+++ b/test/data/docstring_not_docstrings.py
@@ -33,4 +33,12 @@ if var0 < 10:
'''
not a multiline docstring
'''
- pass
\ No newline at... | 2020-05-12T23:45:37+00:00Z | Buggy behavior with empty dict literal and string:
Consider the following example:
```
def test():
{}["a"]
```
and this configuration:
```
[flake8]
max-line-length = 119
select = Q0
inline-quotes = double
```
this ends up with `Q002 Remove bad quotes from docstring` when there is no docstring h... | Oh wow, interesting edge case. I'll look into reproducing this either today
or tomorrow
On Mon, May 11, 2020, 5:37 AM Paweł Piotr Przeradowski <
notifications@github.com> wrote:
> Consider the following example:
>
> def test():
> {}["a"]
>
> and following confiburation:
>
> [flake8]
> max-line-length = 119
> sele... | 0.0.1-alpha | 4b9916f610d0f9615a0ba8364009e2371bbd1bd9 | ["test.test_docstring_detection.GetDocstringTokensTests::test_get_docstring_tokens_absent"] | ["test.test_checks.TestChecks::test_get_noqa_lines", "test.test_checks.SinglesAliasTestChecks::test_singles", "test.test_checks.DoublesAliasTestChecks::test_doubles", "test.test_checks.SinglesTestChecks::test_escapes", "test.test_checks.SinglesTestChecks::test_escapes_allowed", "test.test_checks.SinglesTestChecks::test... | ["test.test_checks.TestFlake8Stdin::test_stdin"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
python-distro__distro-241 | python-distro/distro | 91aa0df1fc397fc68c968090e22b9a96378d653a | diff --git a/src/distro/distro.py b/src/distro/distro.py
index ad7aedc..f6663e9 100755
--- a/src/distro/distro.py
+++ b/src/distro/distro.py
@@ -220,6 +220,7 @@ def id() -> str:
"freebsd" FreeBSD
"midnightbsd" MidnightBSD
"rocky" Rocky Linux
+ "aix" AIX
============== =... | python | diff --git a/tests/resources/distros/aix72/bin/oslevel b/tests/resources/distros/aix72/bin/oslevel
new file mode 100755
index 0000000..a8e9e38
--- /dev/null
+++ b/tests/resources/distros/aix72/bin/oslevel
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "7.2.0.0"
diff --git a/tests/resources/distros/aix72/bin/uname b/tests/resources... | 2022-02-13T17:58:21+00:00Z | Add support for AIX
Add support for AIX. Currently disto returns the following for a AIX 7.2:
```json
{
"codename": "",
"id": "aix",
"like": "",
"version": "2",
"version_parts": {
"build_number": "",
"major": "2",
"minor": ""
}
}
```
Source could be cmd `os... | Can you share the release file?
As far as I know there is no release file on AIX.
There must be something.. lsb.. something.. otherwise how would distro know that it's aix?
It seems that this information was gathered from `uname -rs`:
```shell
$ uname -rs
AIX 2
```
Hey @jokurz, would it be possible to read these ... | 0.0.1-alpha | 7733ba2f44777400126f1359bfbaafaba987c1eb | ["tests.test_distro.TestWithRootDir::test_arch_os_release", "tests.test_distro.TestWithRootDir::test_kali_os_release", "tests.test_distro.TestWithRootDir::test_centos7_os_release", "tests.test_distro.TestWithRootDir::test_coreos_os_release", "tests.test_distro.TestWithRootDir::test_debian8_os_release", "tests.test_dist... | ["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"
} | |
luolingchun__flask-openapi3-231 | luolingchun/flask-openapi3 | 6dada0e1226d19c3b1090aad99222e850a76a657 | diff --git a/flask_openapi3/models/validation_error.py b/flask_openapi3/models/validation_error.py
index d36f9b7..961788f 100644
--- a/flask_openapi3/models/validation_error.py
+++ b/flask_openapi3/models/validation_error.py
@@ -7,14 +7,16 @@ from pydantic import BaseModel, Field
class ValidationErrorModel(BaseMod... | python | diff --git a/tests/test_pydantic_validation_error.py b/tests/test_pydantic_validation_error.py
new file mode 100644
index 0000000..56aa89f
--- /dev/null
+++ b/tests/test_pydantic_validation_error.py
@@ -0,0 +1,101 @@
+import pytest
+from pydantic import BaseModel, Field
+
+from flask_openapi3 import OpenAPI
+
+app = Op... | 2025-08-09T03:29:55+00:00Z | ValidationError schema in OpenAPI docs doesn't match actual Pydantic responses
# Question: ValidationError schema in OpenAPI docs doesn't match actual Pydantic responses - is this expected?
Hi! I'm new to Flask-OpenAPI3 and Pydantic, and I'm confused about something I'm seeing with validation error responses. I'm not... | This is a legacy issue from migrating from pydantic V1 to V2, and you can replace `validation_error_model`.
Of course, I hope you take the time to submit a PR to fix this issue. | 0.0.1-alpha | b886fde852327fff399e1951fe4c08f86bc276e8 | ["tests.test_pydantic_validation_error::test_pydantic_validation_error_schema"] | ["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_blueprint::test_blueprint_path_and_prefix", "tests.test_api_view::test_openapi", "tests.test_api_view::... | ["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"
} | |
more-itertools__more-itertools-729 | more-itertools/more-itertools | 756e4c11ac69719921a706717152d5aa7683829d | diff --git a/README.rst b/README.rst
index 8c920b8..562ed13 100644
--- a/README.rst
+++ b/README.rst
@@ -120,6 +120,7 @@ Python iterables.
| | `permutation_index <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.permutation_index>`_, ... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 140b137..43d8e9a 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -2527,7 +2527,7 @@ class NumericRangeTests(TestCase):
actual = list(mi.numeric_range(*args))
self.assertEqual(expected, actual)
self.assertTrue(
... | 2023-07-31T13:50:47+00:00Z | Generalized outer product
### Description
Hello and thank you for creating `more-itertools`! It's great.
I'd like to propose adding a generalized outer product function. It's similar to the `itertools.product` function, except that it preserves the nested structure of the 2D matrix and allow you to apply a funct... | Thanks for the writeup. I'll be out for a bit (new baby at home!), and will look at your proposal in detail soon.
Congratulations on your new baby!!
Possible alternative implementation:
```
def outer_product(func, xs, ys):
ys = tuple(ys)
return batched(starmap(func, product(xs, ys)), n=len(ys))
```
Po... | 0.0.1-alpha | 6ce01e9a1eb3d55c1b031cec1e830e2f408c1894 | ["tests.test_more.OuterProductTests::test_basic"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tanghaibao__jcvi-208 | tanghaibao/jcvi | 20a01c70fd822a330e99599eca92e70b59f5e933 | diff --git a/jcvi/graphics/karyotype.py b/jcvi/graphics/karyotype.py
index db0ae08..6541eff 100644
--- a/jcvi/graphics/karyotype.py
+++ b/jcvi/graphics/karyotype.py
@@ -90,6 +90,31 @@ class Layout(AbstractLayout):
MaxSeqids = 16 # above which no labels are written
+def make_circle_name(sid, rev):
+ """Extract ... | python | diff --git a/tests/graphics/__init__.py b/tests/graphics/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/graphics/test_karyotype.py b/tests/graphics/test_karyotype.py
new file mode 100644
index 0000000..513d5b7
--- /dev/null
+++ b/tests/graphics/test_karyotype.py
@@ -0,0 +1,20 @@
+#!/usr/bin/... | 2020-02-18T01:33:19+00:00Z | ValueError in karyotype graph generation
Dear haibao:
I got an error in karyotype graph generation, showed below.
$ python -m jcvi.graphics.karyotype seqids layout
15:45:05 [blast] Fall back to Python implementation of BlastLine
15:45:05 [base] Load file `layout`
15:45:05 [base] Load file `octosporus.bed`
15:4... | I have solved this question when referring to one website [https://www.omicsclass.com/article/572](url).
Numbers need to be included in the name of chromosome. When I change “chrI, chrII, chrIII” to "chr1, chr2, chr3", the error disappeared.
@guosongjia
Yes you are right about the name of the chromosome. I'll see... | 0.0.1-alpha | 56f2893c93f44186bfd7d687d66f201656ff63df | ["tests.graphics.test_karyotype::test_make_circle_name[chr123abc456-rev0-123]", "tests.graphics.test_karyotype::test_make_circle_name[scaffold_55-rev1-55-]", "tests.graphics.test_karyotype::test_make_circle_name[PMOO-rev2-P]", "tests.graphics.test_karyotype::test_make_circle_name[contig_xvv-rev3-X-]", "tests.graphics.t... | ["tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array0-expected0]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array1-expected1]", "tests.algorithms.test_lis::test_longest_monotonic_subseq_length[input_array2-expected2]", "tests.algorithms.test_lis::test_longest_incre... | ["tests.formats.test_cblast.TestCblast::test_getters", "tests.formats.test_cblast.TestCblast::test_setters", "tests.formats.test_cblast.TestCblast::test_swap", "tests.formats.test_cblast_benchmark::test_cblast", "tests.formats.test_formats::test_script[bed_append_source_ftype-jcvi.formats.gff-bed---append_source --appe... | {
"key": "bsd-2-clause",
"name": "BSD 2-Clause \"Simplified\" License",
"spdx_id": "BSD-2-Clause",
"url": "https://api.github.com/licenses/bsd-2-clause"
} | |
opensearch-project__opensearch-benchmark-839 | opensearch-project/opensearch-benchmark | b9390fff8b88d15bc005705ac708f73a2220667c | diff --git a/osbenchmark/benchmark.py b/osbenchmark/benchmark.py
index 2a60c62..4bbcbe9 100644
--- a/osbenchmark/benchmark.py
+++ b/osbenchmark/benchmark.py
@@ -692,6 +692,24 @@ def create_arg_parser():
help="Maximum number of clients to allow during redline testing. If not set, will default to clients defined... | python | diff --git a/tests/worker_coordinator/worker_coordinator_test.py b/tests/worker_coordinator/worker_coordinator_test.py
index 364fe5a..939fef5 100644
--- a/tests/worker_coordinator/worker_coordinator_test.py
+++ b/tests/worker_coordinator/worker_coordinator_test.py
@@ -104,6 +104,7 @@ class WorkerCoordinatorTests(TestCa... | 2025-07-01T20:03:40+00:00Z | Add CPU-aware feedback to redline testing
### Is your feature request related to a problem? Please describe
Currently, the new FeedbackActor introduced for Redline testing is able to scale clients up/down based on whether requests to the cluster are failing or not.
While we already plan to add latency-aware feedbac... | 0.0.1-alpha | cab37f087755cb401f6b73006a97ece3fc6277e5 | ["tests.worker_coordinator.worker_coordinator_test.FeedbackActorTests::test_check_cpu_usage_adds_error_when_threshold_exceeded", "tests.worker_coordinator.worker_coordinator_test.FeedbackActorTests::test_check_cpu_usage_drops_error_when_queue_full", "tests.worker_coordinator.worker_coordinator_test.FeedbackActorTests::... | ["tests.aggregator_test::test_count_iterations_for_each_op", "tests.aggregator_test::test_accumulate_results", "tests.aggregator_test::test_test_execution_compatibility_check", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_weighted_average", "tests.aggregator_test::test_cal... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
prometheus__client_python-546 | prometheus/client_python | 18d937159e4e90a1e212976859e2dc53f99980eb | diff --git a/prometheus_client/exposition.py b/prometheus_client/exposition.py
index 634066f..191e745 100644
--- a/prometheus_client/exposition.py
+++ b/prometheus_client/exposition.py
@@ -362,7 +362,10 @@ def _use_gateway(method, gateway, job, registry, grouping_key, timeout, handler)
def _escape_grouping_key(k, ... | python | diff --git a/tests/test_exposition.py b/tests/test_exposition.py
index 21b3f59..25360b3 100644
--- a/tests/test_exposition.py
+++ b/tests/test_exposition.py
@@ -260,6 +260,13 @@ class TestPushGateway(unittest.TestCase):
self.assertEqual(self.requests[0][0].headers.get('content-type'), CONTENT_TYPE_LATEST)
... | 2020-05-15T11:29:23+00:00Z | Pushgateway exposition: properly handle empty label values in grouping key
See https://github.com/prometheus/pushgateway/pull/346 for a documentation update for the PGW about empty label values in the grouping key. (Note: It's really just documenting the current state of the PGW. No change of behavior of the PGW invol... | 0.0.1-alpha | 3be4faff2223c509b83cb5f2854a9e6d324aa3a7 | ["tests.test_exposition.TestPushGateway::test_push_with_groupingkey_empty_label"] | ["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"
} | ||
richardpenman__whois-218 | richardpenman/whois | 4078c8c4997b63ed6d2ccbba8a5905612d98f086 | diff --git a/whois/parser.py b/whois/parser.py
index f5fa248..a3ee7a6 100644
--- a/whois/parser.py
+++ b/whois/parser.py
@@ -97,6 +97,7 @@ class WhoisEntry(dict):
_regex = {
"domain_name": r"Domain Name: *(.+)",
"registrar": r"Registrar: *(.+)",
+ "registrar_url": r"Registrar URL: *(.+)",
... | python | diff --git a/test/samples/expected/nyan.cat b/test/samples/expected/nyan.cat
index 367f412..cea9594 100644
--- a/test/samples/expected/nyan.cat
+++ b/test/samples/expected/nyan.cat
@@ -1,1 +1,1 @@
-{"domain_name": "nyan.cat", "expiration_date": "2018-04-13 19:52:17.635000", "updated_date": "2017-07-07 17:24:23.746000",... | 2024-05-22T21:07:09+00:00Z | Default parser does not have Registrar URL
I've noticed that the default parser does not include the Registrar URL by default. Some suffix domains, like .com, provide this Registrar URL, but this library doesn't return it.
For example, take `whois.whois("google.com")`:
```
{
"domain_name": [
"GOOGLE.COM... | PR for this would be welcome! | 0.0.1-alpha | 9ccc34934b8f978771e436b0db9db522f661d8a3 | ["test.test_parser.TestParser::test_com_allsamples"] | ["test.test_parser.TestParser::test_ai_parse", "test.test_parser.TestParser::test_bw_parse", "test.test_parser.TestParser::test_ca_parse", "test.test_parser.TestParser::test_cast_date", "test.test_parser.TestParser::test_cn_parse", "test.test_parser.TestParser::test_com_expiration", "test.test_parser.TestParser::test_d... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pre-commit__identify-148 | pre-commit/identify | 9116a2f515bf65d42ef84dfc002a3a5359e4569b | diff --git a/identify/identify.py b/identify/identify.py
index 59bc6ba..4d1b555 100644
--- a/identify/identify.py
+++ b/identify/identify.py
@@ -193,7 +193,11 @@ def parse_shebang(bytesio: IO[bytes]) -> Tuple[str, ...]:
cmd = tuple(_shebang_split(first_line.strip()))
if cmd and cmd[0] == '/usr/bin/env':
- ... | python | diff --git a/tests/identify_test.py b/tests/identify_test.py
index ec40cdf..5a8bbcc 100644
--- a/tests/identify_test.py
+++ b/tests/identify_test.py
@@ -314,6 +314,8 @@ def test_file_is_text_does_not_exist(tmpdir):
(b'\xf9\x93\x01\x42\xcd', ()),
(b'#!\xf9\x93\x01\x42\xcd', ()),
(b'#!\x00\x00\... | 2021-10-02T00:00:34+00:00Z | handle `env -S`
`env -S` is a way to pass more arguments in shebangs -- identify already shlex-splits the shebang so this should be as easy as ignoring `/usr/bin/env -S` at the beginning
example:
```console
$ cat t
#!/usr/bin/env -S python3 -u
print('hi')
$ ./t
hi
$ ~/opt/venv/bin/identify-cli t # current... | 0.0.1-alpha | cc8d0c75817aebaae3c3fbeb67d8df22b41537af | ["tests.identify_test::test_parse_shebang[#!/usr/bin/env -S python -u-expected23]"] | ["tests.cli_test::test_identify_cli", "tests.cli_test::test_identify_cli_filename_only", "tests.cli_test::test_identify_cli_filename_only_unidentified", "tests.cli_test::test_file_not_found", "tests.extensions_test::test_extensions_have_binary_or_text[adoc]", "tests.extensions_test::test_extensions_have_binary_or_text[... | ["tests.identify_test::test_license_identification", "tests.identify_test::test_license_exact_identification", "tests.identify_test::test_license_not_identified"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
markkho__msdm-74 | markkho/msdm | 61ad4ac39aa81c0434c89cea29172e2e898c399d | diff --git a/msdm/algorithms/search.py b/msdm/algorithms/search.py
index e576fb5..f9b129c 100644
--- a/msdm/algorithms/search.py
+++ b/msdm/algorithms/search.py
@@ -57,7 +57,7 @@ class BreadthFirstSearch(Plans):
shuffled = make_shuffled(rnd)
else:
shuffled = lambda list: list
- ... | python | diff --git a/msdm/tests/test_search.py b/msdm/tests/test_search.py
index 41ffc2d..3126b6b 100644
--- a/msdm/tests/test_search.py
+++ b/msdm/tests/test_search.py
@@ -1,6 +1,6 @@
from msdm.algorithms import BreadthFirstSearch, AStarSearch
from msdm.core.mdp import MarkovDecisionProcess
-from msdm.domains import GridWor... | 2023-05-23T19:48:33+00:00Z | A* LIFO/FIFO options
I do wonder if we should swap out the `rnd.random()` here for a counter, to implement LIFO/FIFO dynamics? I think you can get LIFO with a counter that is decremented for every insertion (here's [one of my implementations](https://github.com/cgc/resource-rational-task-decomposition/blob/main/rrtd/s... | fixed in #76 | 0.0.1-alpha | 8e6d77b8af675bcf3d7d09173f7de0741035f9d8 | ["msdm.tests.test_search::test_astarsearch", "msdm.tests.test_search::test_astarsearch_tie_breaking"] | ["msdm.tests.test_assignment::test_AssignmentMap_encode", "msdm.tests.test_assignment::test_DefaultAssignmentMap", "msdm.tests.test_core_distributions::test_basics", "msdm.tests.test_core_distributions::test_DictDistribution_is_close", "msdm.tests.test_core_distributions::test_SoftmaxDistribution", "msdm.tests.test_cor... | ["msdm.tests.test_core_mdp::test_TabularMarkovDecisionProcess_from_matrices", "msdm.tests.test_core_table::test_TableIndex_numpy_array_TableIndex_conversion", "msdm.tests.test_entreg_pi::test_entreg_policy_iteration", "msdm.tests.test_fscboundedpolicyiteration::test_fsc_bpi_tiger_cvxpy", "msdm.tests.test_laostar::test_... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
simonw__git-history-37 | simonw/git-history | 8956e27bbb03157d4cdae988afaba682fa2eb7f0 | diff --git a/git_history/cli.py b/git_history/cli.py
index 0b46665..b119004 100644
--- a/git_history/cli.py
+++ b/git_history/cli.py
@@ -498,7 +498,6 @@ def create_views(db, namespace):
) as _changed_columns
from {namespace}_version
join commits on commits.id = {namespace}_versi... | python | diff --git a/tests/test_git_history.py b/tests/test_git_history.py
index 6c0d0cb..8c15fd9 100644
--- a/tests/test_git_history.py
+++ b/tests/test_git_history.py
@@ -189,8 +189,7 @@ def expected_create_view(namespace):
)
) as _changed_columns
from {namespace}_version
- join commit... | 2021-12-06T21:37:15+00:00Z | Better `item_version_detail` view
Including the list of columns is useful:
```sql
select
commits.commit_at as _commit_at,
commits.hash as _commit_hash,
item_version.*,
(
select json_group_array(name) from columns
where id in (
select column from item_changed
where item_version = i... | Bug in this: the unnecessary join against item_changed on the last line causes multiple rows to be returned for each item version. | 0.0.1-alpha | f08b59af6f1b08ef434514baab21cb91e040c138 | ["tests.test_git_history::test_file_with_id[None]", "tests.test_git_history::test_file_with_id[custom]", "tests.test_git_history::test_file_with_id_full_versions[None]", "tests.test_git_history::test_file_with_id_full_versions[custom]", "tests.test_git_history::test_file_with_reserved_columns", "tests.test_git_history:... | ["tests.test_docs::test_file_options_are_documented[--repo]", "tests.test_docs::test_file_options_are_documented[--namespace]", "tests.test_docs::test_file_options_are_documented[--branch]", "tests.test_docs::test_file_options_are_documented[--id]", "tests.test_docs::test_file_options_are_documented[--start-at]", "test... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
sgl-project__genai-bench-32 | sgl-project/genai-bench | 720709abdd45f47ebd5074a22e951928d0ea95ac | diff --git a/docs/user-guide/run-benchmark.md b/docs/user-guide/run-benchmark.md
index 488727a..1b40db2 100644
--- a/docs/user-guide/run-benchmark.md
+++ b/docs/user-guide/run-benchmark.md
@@ -12,8 +12,8 @@ Below is a sample command you can use to start a benchmark. The command will con
`http://localhost:8082`, using ... | python | diff --git a/tests/cli/test_validation.py b/tests/cli/test_validation.py
index 945c36c..57b7bbf 100644
--- a/tests/cli/test_validation.py
+++ b/tests/cli/test_validation.py
@@ -150,13 +150,44 @@ def test_validate_tokenizer_with_hf_api(monkeypatch):
def test_validate_tokenizer_no_hf_token(monkeypatch):
+ """Test... | 2025-07-10T17:50:27+00:00Z | [Enhancement] Make HF_TOKEN optional when loading public tokenizers from Hugging Face
Currently, the CLI says HF_TOKEN is required when using `--model-tokenizer <model-id>`, even for public models.
However, most public models on Hugging Face can be downloaded without a token. Forcing users to always set HF_TOKEN is u... | `Error: Invalid value: The HUGGINGFACE_API_KEY environment variable is not set. It is a required parameter to download tokenizer from HuggingFace.`
An even funnier thing happened—the huggingface_hub library now uses the variable name HUGGINGFACE_API_KEY instead of HF_TOKEN, forcing me to export both variable names... | 0.0.1-alpha | 978f11e396a072002882c3694fa2ffefb7f920b6 | ["tests.cli.test_validation::test_validate_tokenizer_no_hf_token", "tests.cli.test_validation::test_validate_tokenizer_access_errors"] | ["tests.analysis.test_experiment_loader::test_load_metrics_from_experiments", "tests.analysis.test_experiment_loader::test_load_one_experiment", "tests.analysis.test_experiment_loader::test_load_one_experiment_with_missing_concurrency_levels", "tests.analysis.test_experiment_loader::test_load_experiment_metadata", "tes... | ["tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_init", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_authenticate_with_credentials", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_authenticate_with_profile", "tests.storage.test_aws_s3_storage.TestAWSS3Storage::test_upload_file", "tests... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tastyware__tastytrade-116 | tastyware/tastytrade | 8d5cc78234cf81daec7e9ec42528cd2d7eea1b42 | diff --git a/docs/conf.py b/docs/conf.py
index de2a460..4f14967 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -9,7 +9,7 @@
project = 'tastytrade'
copyright = '2023, Graeme Holliday'
author = 'Graeme Holliday'
-release = '6.4'
+release = '6.5'
# -- General configuration ------------------------------------------... | python | diff --git a/tests/test_instruments.py b/tests/test_instruments.py
index 8f32a98..71f48d5 100644
--- a/tests/test_instruments.py
+++ b/tests/test_instruments.py
@@ -80,3 +80,9 @@ def test_get_future_option_chain(session):
FutureOption.get_future_option(session, options[0].symbol)
FutureOption.get_futu... | 2024-01-29T22:46:50+00:00Z | Missing Account Information Leads to API Crash
**Describe the Bug**
Unexpected crash due to missing account information returned from API.
**To Reproduce**
Hard to achieve because some accounts deliver a full set of information, some do not.
**HOT-Fix:**
In the file account.py, line 298, change this:
`is_por... | 0.0.1-alpha | a2d6ad01d24db7f10817b6ba11154fcf530ee90e | ["tests.test_instruments::test_streamer_symbol_to_occ"] | ["tests.test_account::test_place_otoco_order", "tests.test_session::test_destroy"] | ["tests.test_account::test_get_account", "tests.test_account::test_get_trading_status", "tests.test_account::test_get_balances", "tests.test_account::test_get_balance_snapshots", "tests.test_account::test_get_positions", "tests.test_account::test_get_history", "tests.test_account::test_get_total_fees", "tests.test_acco... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
serge-sans-paille__beniget-98 | serge-sans-paille/beniget | e296fec07590692d02e1fb6d7e17f7910e6d97db | diff --git a/beniget/beniget.py b/beniget/beniget.py
index ebd8e72..1cf9550 100644
--- a/beniget/beniget.py
+++ b/beniget/beniget.py
@@ -115,6 +115,8 @@ class Def(object):
elif isinstance(self.node, ast.MatchMapping):
if self.node.rest:
return self.node.rest
+ elif isinstan... | python | diff --git a/tests/test_chains.py b/tests/test_chains.py
index e03cd6d..8032d6a 100644
--- a/tests/test_chains.py
+++ b/tests/test_chains.py
@@ -392,7 +392,7 @@ while done:
def test_attr(self):
code = "import numpy as bar\ndef foo():\n return bar.zeros(2)"
self.checkChains(
- code, ["b... | 2024-05-13T21:04:13+00:00Z | Discussing semantics of Def.name()
``Def`` is confusing on several points:
- There is no way of knowing if a `Def` actually has a name or the string returned by `name()` is a node type name, which can be confusing when there are definitions named like ast classes. I think if the name is the class name it should be re... | I agree! I've submitted ~99 for the attribute part, would you handle the type name part? I agree with your naming scheme for types.
> would you handle the type name part?
Yes I'll do that | 0.0.1-alpha | 6fcf4855675a7ed04265effb72d18e79567da900 | ["tests.test_chains.TestDefUseChains::test_attr", "tests.test_chains.TestDefUseChains::test_attribute_assignment", "tests.test_chains.TestDefUseChains::test_import_dotted_name_binds_first_name", "tests.test_chains.TestDefUseChains::test_match_dict", "tests.test_chains.TestDefUseChains::test_match_list", "tests.test_cha... | ["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"
} | |
rfsbraz__deleterr-106 | rfsbraz/deleterr | 86332d5cd3830220aa8834aa50bb23586e1e9b6f | diff --git a/app/modules/tautulli.py b/app/modules/tautulli.py
index 3529ef9..5cf83d3 100644
--- a/app/modules/tautulli.py
+++ b/app/modules/tautulli.py
@@ -45,6 +45,11 @@ class Tautulli:
min_date = self._calculate_min_date(library_config)
logger.debug("Fetching last activity since %s", min_date)
... | python | diff --git a/tests/modules/test_tautulli.py b/tests/modules/test_tautulli.py
index 5d54a53..6fba819 100644
--- a/tests/modules/test_tautulli.py
+++ b/tests/modules/test_tautulli.py
@@ -109,11 +109,9 @@ def test_fetch_history_data(mock_api):
"_fetch_history_data",
return_value=[{"rating_key": "123", "stopped":... | 2024-05-17T20:40:31+00:00Z | IndexError
Hi
First time user here, hope someone can help. I have been scratching my head with this error. It works fine if I just run it with sonarr. As soon as I enable radarr in the config I get this error. Thanks
2024-05-08 16:39:30 - INFO :: media_cleaner.py :: deleterr : Processing library 'Films'
Tracebac... | This is fixed! Check either `latest` or `0.0.17`.
Thanks for you report! | 0.0.1-alpha | aaa43c98696eb4457e555b066fa17c5c710801d8 | ["tests.modules.test_tautulli::test_get_activity_without_tautulli_items"] | ["tests.modules.test_tautulli::test_filter_by_most_recent[data0-id-stopped-expected0]", "tests.modules.test_tautulli::test_calculate_min_date[library_config0-30]", "tests.modules.test_tautulli::test_calculate_min_date[library_config1-20]", "tests.modules.test_tautulli::test_calculate_min_date[library_config2-11]", "tes... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
matthewwithanm__python-markdownify-99 | matthewwithanm/python-markdownify | 2bd07726854e184a0f2ed0a79871901b16206fcb | diff --git a/README.rst b/README.rst
index 51888ea..a0cd678 100644
--- a/README.rst
+++ b/README.rst
@@ -123,6 +123,11 @@ escape_underscores
If set to ``False``, do not escape ``_`` to ``\_`` in text.
Defaults to ``True``.
+escape_misc
+ If set to ``False``, do not escape miscellaneous punctuation characters
+... | python | diff --git a/tests/test_escaping.py b/tests/test_escaping.py
index 2f3a83e..eaef77d 100644
--- a/tests/test_escaping.py
+++ b/tests/test_escaping.py
@@ -12,7 +12,7 @@ def test_underscore():
def test_xml_entities():
- assert md('&') == '&'
+ assert md('&') == r'\&'
def test_named_entities():
@@ -... | 2024-04-04T19:42:58+00:00Z | Angle brackets <> aren't escaped.
```py
>>> markdownify('text<text>')
'text<text>'
```
In at least some flavours of Markdown, this would need to be `text\<text\>` instead. As an example, GitHub-flavoured Markdown gives
text<text>
and
text\<text\>
without and with bac... | @AnyOldName3 - I am not familiar with the various Markdown variants available. Are you aware of any Markdown variants where angle brackets _aren't_ escaped? The only rule I am aware of is to escape them everywhere except in preformatted text spans and blocks. | 0.0.1-alpha | 46af45bb3c392180c254a3f97f6bcb8bfecb8116 | ["tests.test_escaping::test_xml_entities", "tests.test_escaping::test_single_escaping_entities"] | ["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"
} | |
python-validators__validators-316 | python-validators/validators | 8f1159718f36cef59f4e647b03c43df52b50c2d1 | diff --git a/src/validators/url.py b/src/validators/url.py
index 613121d..bcb2cf4 100644
--- a/src/validators/url.py
+++ b/src/validators/url.py
@@ -112,7 +112,7 @@ def _validate_optionals(path: str, query: str, fragment: str, strict_query: bool
optional_segments &= True
if fragment:
# See RFC398... | python | diff --git a/tests/test_url.py b/tests/test_url.py
index 89ae678..23baf8f 100644
--- a/tests/test_url.py
+++ b/tests/test_url.py
@@ -87,6 +87,7 @@ from validators import ValidationError, url
"https://www.foo.com/bar#/baz/test",
"https://matrix.to/#/!BSqRHgvCtIsGittkBG:talk.puri.sm/$1551464398"
... | 2023-11-07T14:03:23+00:00Z | allow ptc-encoded entities in fragment
In #305 the fragment matching was improved. However, the current regex does not allow `pct-encoded` entities (see https://datatracker.ietf.org/doc/html/rfc3986#section-3.5) to be present.
The RFC states that:
- `fragment = *( pchar / "/" / "?" )`
- `pchar = unrese... | 0.0.1-alpha | 54484c4d69dc7482018eee6ae4123a8c11c0fcb4 | ["tests.test_url::test_returns_true_on_valid_url[https://example.org/path#2022%201040%20(Cornelius%20Morgan%20G).pdf]"] | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
pappasam__toml-sort-90 | pappasam/toml-sort | 4ec24891e200ae663aa2a7cecd19516080777133 | diff --git a/toml_sort/tomlsort.py b/toml_sort/tomlsort.py
index 25a0339..b1ec86b 100644
--- a/toml_sort/tomlsort.py
+++ b/toml_sort/tomlsort.py
@@ -472,9 +472,11 @@ class TomlSort:
"""Format a key, removing any extra whitespace.
Make sure that it will be formatted like: key = value with one space o... | python | diff --git a/tests/examples/gradle-version-catalog.toml b/tests/examples/gradle-version-catalog.toml
new file mode 100644
index 0000000..36c8783
--- /dev/null
+++ b/tests/examples/gradle-version-catalog.toml
@@ -0,0 +1,7 @@
+[versions]
+fooVersion = "1.0.0"
+barVersion = "2.0.0"
+
+[libraries]
+fooLib = { module = "com... | 2025-09-10T02:27:20+00:00Z | Keep dotted keys in inlined table
I'd like to keep our Gradle version catalog file nicely sorted using this as a `pre-commit` hook. It looks something like this:
```toml
[versions]
fooVersion = "1.2.3"
[libraries]
lib-name = { group = "foo", name = "bar", version.ref = "fooVersion" }
```
Sorting this with `toml-sor... | 0.0.1-alpha | f71ad48d81a8cf87f87b9e3ba700ab5f0aa4fa4a | ["tests.test_toml_sort::test_tomlsort[gradle-version-catalog-gradle-version-catalog-args0]"] | ["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"
} | ||
tableau__server-client-python-776 | tableau/server-client-python | a5b925222ae437bcbf38788c79aa72abce79d6e8 | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
new file mode 100644
index 0000000..e12d613
--- /dev/null
+++ b/.github/workflows/run-tests.yml
@@ -0,0 +1,33 @@
+name: Python package
+
+on: [push]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ ... | python | diff --git a/test/assets/group_update.xml b/test/assets/group_update.xml
index 828e3f2..3c54524 100644
--- a/test/assets/group_update.xml
+++ b/test/assets/group_update.xml
@@ -2,7 +2,7 @@
<tsResponse xmlns="http://tableau.com/api"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:sch... | 2021-02-17T20:18:33+00:00Z | Add site properties to site model and site functions
I recently had to write a script to create and configure several new sites on tableau server. There are several options for the create and update site api endpoints that are not in the site_model or the site functions.
I was able to work around this by just scrip... | I see that this was labeled in-progress last week. Are there any comments/questions/feedback about the issue or pull request? | 0.0.1-alpha | ce37a2063eddf317aaf2703aa3ebccf8053e1c8a | ["test.test_group_model.GroupModelTests::test_invalid_license_mode", "test.test_project_model.ProjectModelTests::test_owner_id"] | ["test.test_regression_tests.FileSysHelpers::test_make_download_path", "test.test_regression_tests.FileSysHelpers::test_to_filename", "test.test_group_model.GroupModelTests::test_invalid_minimum_site_role", "test.test_group_model.GroupModelTests::test_invalid_name", "test.test_filesys_helpers.FilesysTests::test_get_fil... | ["unittest.loader._FailedTest.test::test_auth", "unittest.loader._FailedTest.test::test_data_acceleration_report", "unittest.loader._FailedTest.test::test_dataalert", "unittest.loader._FailedTest.test::test_database", "unittest.loader._FailedTest.test::test_datasource", "unittest.loader._FailedTest.test::test_favorites... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pysal__spopt-282 | pysal/spopt | db313a0facbe4baf622ef76806535d5449df0a4c | diff --git a/notebooks/facloc-lscpb-real-world.ipynb b/notebooks/facloc-lscpb-real-world.ipynb
index 9110367..d0fd9c0 100644
--- a/notebooks/facloc-lscpb-real-world.ipynb
+++ b/notebooks/facloc-lscpb-real-world.ipynb
@@ -17,8 +17,8 @@
"execution_count": 1,
"metadata": {
"ExecuteTime": {
- "end_time": "... | python | diff --git a/spopt/tests/test_lscpb.py b/spopt/tests/test_lscpb.py
index ec684e5..65a16de 100644
--- a/spopt/tests/test_lscpb.py
+++ b/spopt/tests/test_lscpb.py
@@ -62,7 +62,7 @@ class TestSyntheticLocate:
lscpb = LSCPB.from_cost_matrix(
self.cost_matrix, 10, pulp.PULP_CBC_CMD(msg=False)
... | 2022-10-31T18:00:57+00:00Z | maybe set solver as attribute in LSCPB?
[`LSCPB.from_cost_matrix()`](https://github.com/pysal/spopt/blob/main/spopt/locate/coverage.py#L365) and [`LSCPB.from_geodataframe()`](https://github.com/pysal/spopt/blob/main/spopt/locate/coverage.py#L474) take `solver` as a positional argument in order to solve the LSCP intern... | 0.0.1-alpha | 87fc84d05979fc1b2413b80191643ba38ea853c9 | ["spopt.tests.test_lscpb.TestSyntheticLocate::test_lscpb_from_cost_matrix", "spopt.tests.test_lscpb.TestSyntheticLocate::test_lscpb_from_cost_matrix_no_results", "spopt.tests.test_lscpb.TestSyntheticLocate::test_lscpb_facility_client_array_from_cost_matrix", "spopt.tests.test_lscpb.TestSyntheticLocate::test_lscpb_clien... | ["spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_from_cost_matrix_no_results", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_facility_client_array_from_cost_matrix", "spopt.tests.test_locate.TestSyntheticLocate::test_lscp_clien... | ["spopt.tests.test_azp.TestAZP::test_azp_basic_from_w", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_heuristic_complex", "spopt.tests.test_maxp.TestMaxPHeuristic::test_maxp_one_var", "spopt.tests.test_maxp.TestMaxPHeuristic::test_plot_components"] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | ||
yuma-m__pychord-66 | yuma-m/pychord | e234703346e70ac84e83dcaef33b089f9dd8672f | diff --git a/pychord/chord.py b/pychord/chord.py
index 90becc0..468923e 100644
--- a/pychord/chord.py
+++ b/pychord/chord.py
@@ -2,6 +2,7 @@
from .constants import NOTE_VAL_DICT, VAL_NOTE_DICT
from .constants.scales import RELATIVE_KEY_DICT
from .parser import parse
+from .quality import QualityManager
from .utils ... | python | diff --git a/test/test_chord.py b/test/test_chord.py
index 16c3075..0c2b52c 100644
--- a/test/test_chord.py
+++ b/test/test_chord.py
@@ -123,6 +123,26 @@ class TestChordFromNoteIndex(unittest.TestCase):
with self.assertRaises(ValueError):
Chord.from_note_index(note=9, quality="", scale="Fmaj")
+... | 2021-09-14T12:57:05+00:00Z | Create chord qualities diatonically (from_note_index)
Currently chords can be created with `.from_note_index`, with chord quality manually specified.
```
>>> [Chord.from_note_index(note=i, quality="", scale="Cmaj") for i in range(1,8)]
[<Chord: C>, <Chord: D>, <Chord: E>, <Chord: F>, <Chord: G>, <Chord: A>, <Chor... | 0.0.1-alpha | 43ced8f934aaf2c1cfba92ca90bd78555c187669 | ["test.test_chord.TestChordFromNoteIndex::test_diatonic_note_1", "test.test_chord.TestChordFromNoteIndex::test_diatonic_note_2_mode", "test.test_chord.TestChordFromNoteIndex::test_diatonic_note_3_mode", "test.test_chord.TestChordFromNoteIndex::test_diatonic_note_4_mode", "test.test_chord.TestChordFromNoteIndex::test_di... | ["test.test_analyzer.TestNoteToChord::test_add4", "test.test_analyzer.TestNoteToChord::test_add9", "test.test_analyzer.TestNoteToChord::test_aug", "test.test_analyzer.TestNoteToChord::test_call_repeatedly", "test.test_analyzer.TestNoteToChord::test_dim", "test.test_analyzer.TestNoteToChord::test_dim6", "test.test_analy... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
microsoft__vscode-mypy-35 | microsoft/vscode-mypy | d8d062f9bcdce8ec78350bdc8c4f7ddcb9f0d48d | diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py
index 4bfde5b..fe5023f 100644
--- a/bundled/tool/lsp_server.py
+++ b/bundled/tool/lsp_server.py
@@ -276,7 +276,7 @@ def _linting_helper(document: workspace.Document) -> None:
DIAGNOSTIC_RE = re.compile(
- r"^(?P<location>(?P<filepath>..[^:]*):... | python | diff --git a/src/test/python_tests/test_data/sample2/sample.py b/src/test/python_tests/test_data/sample2/sample.py
new file mode 100644
index 0000000..7ac1ff1
--- /dev/null
+++ b/src/test/python_tests/test_data/sample2/sample.py
@@ -0,0 +1,1 @@
+1 # type:ignore[misc]
diff --git a/src/test/python_tests/test_linting.py ... | 2023-12-13T16:08:29+00:00Z | `warn-unused-ignores` doesn't work

# settings
```json
{
"mypy-type-checker.importStrategy": "useBundled",
"mypy-type-checker.args": [
"--show-column-numbers",
"--no-pretty",
"--hide-e... | @DetachHead In the log do you see the argument being passed to mypy?
yes
```
2023-06-16 10:09:29.417 [info] c:\Users\user\AppData\Local\pypoetry\Cache\virtualenvs\project-zbC6VfKB-py3.11\Scripts\python.exe -m mypy.dmypy --status-file C:\Users\user\AppData\Local\Temp\.vscode.dmypy_status\status-f9223072-9f9c-486d-aa66... | 0.0.1-alpha | 4c3793a6f77b8326ca6e130ee74ff3576ef3284e | ["src.test.python_tests.test_linting::test_diagnostics_missing_column"] | ["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"
} | |
thesimj__envyaml-31 | thesimj/envyaml | 2480cf1a76efbf850a565dd6b16ea0a3cb0752d6 | diff --git a/envyaml/envyaml.py b/envyaml/envyaml.py
index 71088d6..d888ea9 100644
--- a/envyaml/envyaml.py
+++ b/envyaml/envyaml.py
@@ -217,6 +217,8 @@ class EnvYAML:
# changes dictionary
replaces = dict()
+ shifting = 0
+
# iterate over findings
for entry in RE_PATTERN.fin... | python | diff --git a/tests/env.default.yaml b/tests/env.default.yaml
index b58eb92..2cb3aa7 100644
--- a/tests/env.default.yaml
+++ b/tests/env.default.yaml
@@ -26,6 +26,11 @@ test_escape:
one: $$.foo
two: $$meet
three: $${bracket}
+ four: SomePa$$$$$$word
+ five: SomePa$$$$$${word}
+ six: $$$PASSWORD
+ seven: $$$... | 2021-12-31T16:25:39+00:00Z | Escaping multiple dollar signs
We are using this package for managing environment yaml files and we are facing a scenario where we need to have multiple dollar signs and all of them should be escaped:
```yaml
user_one:
username: some_user
password: SomePa$$$word
```
Currently, the package is failing to p... | @thesimj Sorry if this is not the way to ask for this but I don't have clear how the process to ask for a new release is. You recently merged my PR to the master branch so want to know when that release could be available.
Thanks
hi, @mgiamberardino I will do an update as soon as posible. I will inform you here when... | 0.0.1-alpha | a50e411f4be072a1b113cdf253f74d05a333af24 | ["tests.test_envyaml::test_it_should_pass_escaped_variable"] | ["tests.test_envyaml::test_it_should_return_default_value", "tests.test_envyaml::test_it_should_read_env_file", "tests.test_envyaml::test_it_should_read_custom_file", "tests.test_envyaml::test_it_should_access_environment_variables", "tests.test_envyaml::test_it_should_fail_when_access_environment_variables", "tests.te... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
thesimj__envyaml-11 | thesimj/envyaml | dfb8e56f4e70af74684c1b15b5bb5730e5b39895 | diff --git a/envyaml/envyaml.py b/envyaml/envyaml.py
index 7b525ac..eb2308f 100644
--- a/envyaml/envyaml.py
+++ b/envyaml/envyaml.py
@@ -33,15 +33,11 @@ RE_COMMENTS = re.compile(r"(^#.*\n)", re.MULTILINE | re.UNICODE)
RE_DOT_ENV = re.compile(r"^((?!\d)[\w\- ]+=.*)$", re.MULTILINE | re.UNICODE)
RE_ENV = [
- (re.c... | python | diff --git a/tests/env.test.yaml b/tests/env.test.yaml
index 7f97a5c..5e85a73 100644
--- a/tests/env.test.yaml
+++ b/tests/env.test.yaml
@@ -80,6 +80,9 @@ empty:
var_in_array:
to: [ $USERNAME ]
+var_in_dict:
+ extra: { user: $USERNAME, password: $PASSWORD }
+
#
# Comments
#
diff --git a/tests/test_envyaml.py ... | 2020-12-24T12:23:04+00:00Z | Dependency issue
I'm not sure if this is a problem within this project or something I need to fix in mine. So please excuse me if it's on my behalf.
setup.py
```python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
set... | EnvYaml requires **PyYAML** as dependencies.
Found issue and ready to fixit it in new version soon.
Thanks
latest code you could try from develop branch
Resolve this issue in new version
https://github.com/thesimj/envyaml/tree/1.3.201225
Please validate. | 0.0.1-alpha | 179ab92565256b2f2bece2f20d8e08fdf3d6649c | ["tests.test_envyaml::test_it_should_read_env_file", "tests.test_envyaml::test_it_should_read_custom_file", "tests.test_envyaml::test_it_should_get_default_values", "tests.test_envyaml::test_it_should_raise_key_error_when_no_values", "tests.test_envyaml::test_it_should_populate_env_variable", "tests.test_envyaml::test_... | ["tests.test_envyaml::test_it_should_return_default_value", "tests.test_envyaml::test_it_should_access_environment_variables", "tests.test_envyaml::test_it_should_fail_when_access_environment_variables", "tests.test_envyaml::test_it_should_access_environ", "tests.test_envyaml::test_it_should_read_default_file", "tests.... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pyprojectx__pyprojectx-23 | pyprojectx/pyprojectx | 0c302bea200bd36acde95fd93e4250c7d36aaa88 | diff --git a/pw.lock b/pw.lock
index f59a92a..66d91b7 100644
--- a/pw.lock
+++ b/pw.lock
@@ -1,4 +1,4 @@
[main]
-requirements = ["Babel==2.14.0", "CacheControl==0.13.1", "Jinja2==3.1.3", "Markdown==3.5.2", "MarkupSafe==2.1.3", "PyYAML==6.0.1", "Pygments==2.17.2", "blinker==1.7.0", "certifi==2023.11.17", "cfgv==3.4.0",... | python | diff --git a/tests/integration/test_pw.py b/tests/integration/test_pw.py
index 1192b78..6862463 100644
--- a/tests/integration/test_pw.py
+++ b/tests/integration/test_pw.py
@@ -9,6 +9,7 @@ import pytest
import tomlkit
SCRIPT_PREFIX = ".\\" if sys.platform.startswith("win") else "./"
+SCRIPT_SUFFIX = ".exe" if sys.p... | 2024-03-04T15:30:42+00:00Z | (🎁) Make projects "activatable" so that all tools are available
Having to go `px poetry install` is a little boilerplate-y, and configuring aliases for every Poetry(or whatever) subcommand is highly tedious.
Similar to how one activates a venv, what if you could do something like:
```
> px --activate
Activating... | with an alias and _px_ installed, you can just type `px i` (this is exactly what I do while developing)
@houbie I understand that `px i` is really useful and shorthand for `px poetry install`. But I still think it would be nice to be able to surface all tools (although, probably not aliases) to the top level.
this woul... | 0.0.1-alpha | ea057e7fbfa84ff11fcb125989668f2c753efe67 | ["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.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"
} | |
ofek__hatch-vcs-67 | ofek/hatch-vcs | e186a8b5d97dd9c9f93ae6015139b55411d9011b | diff --git a/hatch.toml b/hatch.toml
index b1c3fe9..e30762a 100644
--- a/hatch.toml
+++ b/hatch.toml
@@ -16,7 +16,7 @@ cov = [
]
[[envs.all.matrix]]
-python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
+python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[envs.lint]
detached = true
@@ -28,7 +28,7 @@ dependencies = [
[e... | python | diff --git a/tests/conftest.py b/tests/conftest.py
index 9179244..93d7a50 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -86,7 +86,8 @@ def create_project(directory, metadata, *, setup_vcs=True, nested=False):
git('config', '--local', 'user.email', 'foo@bar.baz')
git('add', '.')
... | 2024-07-02T18:21:16+00:00Z | setuptools-scm warning raised when `tag-pattern` is not defined
This package defaults to an empty string when `tag-pattern` is not defined by the user:
https://github.com/ofek/hatch-vcs/blob/e186a8b5d97dd9c9f93ae6015139b55411d9011b/hatch_vcs/version_source.py#L17-L26
This is causing `setuptools-scm` to raise a d... | Could we import the default value? I'm definitely open to PRs!
The PyPI version does not include with the fix for this issue. Could we please have a new release? | 0.0.1-alpha | 48e8aba0f11d27a5b37f9e301ff8f902199269ef | ["tests.test_version_config.TestTagPattern::test_no_tag_pattern"] | ["tests.test_build::test_basic", "tests.test_build::test_write", "tests.test_build::test_fallback", "tests.test_build::test_root", "tests.test_build::test_metadata", "tests.test_build_config.TestVersionFile::test_correct", "tests.test_build_config.TestVersionFile::test_not_string", "tests.test_build_config.TestVersionF... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-735 | more-itertools/more-itertools | 5d130e559cbaef45013e7176ade91eb5d9c4d823 | diff --git a/docs/api.rst b/docs/api.rst
index ac6249e..307a080 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -191,6 +191,7 @@ These tools yield certain items from an iterable.
.. autofunction:: rstrip
.. autofunction:: filter_except
.. autofunction:: map_except
+.. autofunction:: iter_suppress
.. autofunction:: ... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 64a9dd9..0faac4d 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -5471,3 +5471,47 @@ class OuterProductTests(TestCase):
('Goodbye, Alice!', 'Goodbye, Bob!', 'Goodbye, Carol!'),
]
self.assertEqual(result, expected)
+
+
... | 2023-09-06T13:49:31+00:00Z | Trap exceptions in an existing iterable
### Description
Consider the case where one has an iterable but wishes to handle an Exception that occurs during iteration, but to declare that trapping when the iterator is created, such as when invoking `pathlib.Path.iterdir()`. A common example is where a user wishes to tr... | An alternate approach could be to supply a tool called `check()`. It would act like `peek`, except it would return just the iterable. Then someone could write:
```
try:
children = check(path_that_doesnt_exist.iterdir())
except FileNotFoundError:
print("directory doesn't exist")
for path in children:
... | 0.0.1-alpha | 468755cbb6e40cce1d015d57129ae6137ae1f19e | ["tests.test_more.IterSuppressTests::test_early_suppression", "tests.test_more.IterSuppressTests::test_no_error", "tests.test_more.IterSuppressTests::test_raises_error", "tests.test_more.IterSuppressTests::test_suppression"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sunset1995__py360convert-46 | sunset1995/py360convert | 2e4fa09258450733a798c66ef4952c812d2328ba | diff --git a/py360convert/utils.py b/py360convert/utils.py
index 84b1960..e8451fb 100644
--- a/py360convert/utils.py
+++ b/py360convert/utils.py
@@ -347,7 +347,8 @@ class EquirecSampler:
coor_y: NDArray,
order: int,
):
- # Add 1 to the coordinates to compensate for the 1 pixel upper paddin... | python | diff --git a/tests/test_main.py b/tests/test_main.py
index 39fa3a4..0dbfef1 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -2,6 +2,7 @@ import numpy as np
import pytest
import py360convert
+from py360convert import e2p
AVG_DIFF_THRESH = 1.2
@@ -126,6 +127,16 @@ def test_e2c_list_mono(equirec_image... | 2025-04-21T03:58:25+00:00Z | Vertical Black Line In Output Image
When using the "e2p" function, a black line will appear in the output image if the camera is looking at the edge of the panorama:

To fix, the padded array needs its width to be padded in addi... | can you post a minimal example? Instead of supplying the input image, you could do something like:
```python
e_img = np.full((480, 480), 100, dtype=np.uint8)
```
Post the exact `e2p` code that results in this image with the black column. Thanks!
```
import numpy as np
import py360convert
pano = np.full((480, 480)... | 0.0.1-alpha | 8dcc423e2951a55ea04ad0bf3eee9831701f8294 | ["tests.test_main::test_e2p_wrap"] | ["tests.test_main::test_c2e_dice", "tests.test_main::test_c2e_dice_2d", "tests.test_main::test_c2e_horizon", "tests.test_main::test_c2e_horizon_2d", "tests.test_main::test_c2e_dict", "tests.test_main::test_c2e_list", "tests.test_main::test_c2e_list_mono", "tests.test_main::test_e2c_dice", "tests.test_main::test_e2c_dic... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
tinytag__tinytag-206 | tinytag/tinytag | 5b966007cbb51845b5cbfbe708ab61dd17199c40 | diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py
index 48a2939..1977e6f 100644
--- a/tinytag/tinytag.py
+++ b/tinytag/tinytag.py
@@ -99,7 +99,7 @@ class TinyTag:
self.genre: str | None = None
self.year: str | None = None
self.comment: str | None = None
- self.extra: dict[str, str |... | python | diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py
index e16cf3f..94ae7f3 100644
--- a/tinytag/tests/test_all.py
+++ b/tinytag/tests/test_all.py
@@ -24,7 +24,8 @@ from tinytag.tinytag import TinyTag, TinyTagException, _ID3, _Ogg, _Wave, _Flac,
testfiles = dict([
# MP3
('samples/vbri.mp3',
- ... | 2024-05-28T21:46:56+00:00Z | [BUG] ID3: Only first WOAR frame is kept
**Describe the bug**
According to the ID3 spec, the `WOAR` frame may appear multiple times
**To Reproduce**
1. tinytag open an MP3 with multiple `WOAR` frame
2. see that `extra["url"]` only has the first entry and not the second
**Expected behavior**
`extra["url"]` ... | Looks like most of the website tags have the same problem.
This will require special handling similar to artists and genres. Which types of URLs are you interested in?
I'm particularly interested in the artist websites (e.g., equivalent of WOAR under ID3). Since 2.0 is going to be incompatible, maybe this would be a g... | 0.0.1-alpha | c52b01b4faf229c824716f710307ce0f07d332e6 | ["tinytag.tests.test_all::test_file_reading_tags_duration[samples/vbr_xing_header_2channel.mp3-expected3]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/id3v22-test.mp3-expected4]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/UTF16.mp3-expected7]", "tinytag.tests.test_all::test_... | ["tinytag.tests.test_all::test_file_reading_tags_duration[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading_tags_duration[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading_tags_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sissaschool__xmlschema-334 | sissaschool/xmlschema | 581058cc0c7dc4c789cdd91f4c6e3255bc23c248 | diff --git a/doc/conf.py b/doc/conf.py
index f2590e5..fc7c47f 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -81,7 +81,7 @@ author = 'Davide Brunato'
# The short X.Y version.
version = '2.2'
# The full version, including alpha/beta/rc tags.
-release = '2.2.0'
+release = '2.2.1'
# The language for content autogener... | python | diff --git a/tests/validators/test_complex_types.py b/tests/validators/test_complex_types.py
index ecc957a..8bb2c35 100644
--- a/tests/validators/test_complex_types.py
+++ b/tests/validators/test_complex_types.py
@@ -481,6 +481,33 @@ class TestXsdComplexType(XsdValidatorTestCase):
self.assertIsNone(schema.buil... | 2023-02-08T21:58:01+00:00Z | Separating Content of Multiple Elements with the Same Name
When processing an XML document, xmlschema concatenates the contents of multiple elements with the same name into a single value of a dictionary with the key of the elements name. Is there a way to force unique key values when multiple elements of the same nam... | Hi,
sorry for a late response but i was involved on closing other things.
Analyzed the schema the related data is bound with a complex mixed content, and this is the reason of (maybe unwanted) string concatenation. Before that I've also to resolve a validation issue of `cwec_v4.10.xml` data:
```
>>> import xmls... | 0.0.1-alpha | f4e36bdb17d923f9031b05ee6dc345ce895de901 | ["tests.validators.test_complex_types.TestXsdComplexType::test_mixed_content_extension__issue_334", "tests.validators.test_complex_types.TestXsd11ComplexType::test_mixed_content_extension__issue_334"] | ["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"
} | |
python-validators__validators-107 | python-validators/validators | 29df0817d840263c371c32bd704706c6a8a36a85 | diff --git a/validators/ip_address.py b/validators/ip_address.py
index ba36cdc..f8b138d 100644
--- a/validators/ip_address.py
+++ b/validators/ip_address.py
@@ -4,7 +4,7 @@ from .utils import validator
@validator
def ipv4(value):
"""
- Return whether or not given value is a valid IP version 4 address.
+ Re... | python | diff --git a/tests/test_ipv6.py b/tests/test_ipv6.py
index 3f32140..286f1fb 100644
--- a/tests/test_ipv6.py
+++ b/tests/test_ipv6.py
@@ -5,11 +5,15 @@ from validators import ipv4, ipv6, ValidationFailure
@pytest.mark.parametrize(('address',), [
+ ('::',),
('::1',),
- ('dead:beef:0:0:0:0:42:1',),
+ ('... | 2022-05-04T13:58:28+00:00Z | Handling colons in ipv6
Invalid address `1111:` is flagged as valid by the ipv6 validator | Cases with leading colons are also not handled for cases as below:
":8888"
":1.2.3.4"
These are invalid ipv6 addresses but the validator on ipv6 returns True
PRs welcome
"18:05" returns also True | 0.0.1-alpha | f816ce13d14565e50fcfa6f558f65a4f00232925 | ["tests.test_ipv6::test_returns_true_on_valid_ipv6_address[::]", "tests.test_ipv6::test_returns_true_on_valid_ipv6_address[1::]", "tests.test_ipv6::test_returns_true_on_valid_ipv6_address[0000:0000:0000:0000:0000::]", "tests.test_ipv6::test_returns_true_on_valid_ipv6_address[0:a:b:c:d:e:f::]", "tests.test_ipv6::test_re... | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
open-feature__python-sdk-403 | open-feature/python-sdk | 8f2cabaa32f595304ecd6964b6ae21909672ef4a | diff --git a/openfeature/client.py b/openfeature/client.py
index fc6e65a..cd82694 100644
--- a/openfeature/client.py
+++ b/openfeature/client.py
@@ -366,13 +366,14 @@ class OpenFeatureClient:
except OpenFeatureError as err:
error_hooks(flag_type, hook_context, err, reversed_merged_hooks, hook_hint... | python | diff --git a/tests/features/steps/hooks_steps.py b/tests/features/steps/hooks_steps.py
new file mode 100644
index 0000000..bc7e156
--- /dev/null
+++ b/tests/features/steps/hooks_steps.py
@@ -0,0 +1,72 @@
+from unittest.mock import MagicMock
+
+from behave import then, when
+
+from openfeature.exception import ErrorCode... | 2025-01-30T18:51:19+00:00Z | Add `evaluation details` to `finally` hook stage
Add `evaluation details` to `finally` hook stage.
### Notes
This breaks the signature of the `finally` stages based on [this spec enhancement](https://github.com/open-feature/spec/pull/280). It is **not** considered a breaking change to the SDK because hooks are marke... | I would like to take this over | 0.0.1-alpha | 9e9bb5c6269cfa5d9c9ffc7141c6dc63e399cdca | ["tests.hook.test_hook_support::test_finally_after_hooks_run_finally_after_method"] | ["tests.evaluation_context.test_evaluation_context::test_empty_evaluation_context_can_be_merged_with_non_empty_context", "tests.evaluation_context.test_evaluation_context::test_non_empty_context_can_be_merged_with_empty_evaluation_context", "tests.evaluation_context.test_evaluation_context::test_second_targeting_key_ov... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
redimp__otterwiki-200 | redimp/otterwiki | f618471f0ba32db60f0f76f79e16aab30f1bade5 | diff --git a/otterwiki/wiki.py b/otterwiki/wiki.py
index 32bdc43..854b18e 100644
--- a/otterwiki/wiki.py
+++ b/otterwiki/wiki.py
@@ -739,8 +739,11 @@ class Page:
oddeven = "odd"
# use highlighted lines
for row in data:
- line = markup_lines[int(row[3]) - 1]
- # line = ro... | python | diff --git a/tests/test_otterwiki.py b/tests/test_otterwiki.py
index 6b5d44c..2bad27f 100644
--- a/tests/test_otterwiki.py
+++ b/tests/test_otterwiki.py
@@ -583,3 +583,18 @@ def test_nested_files(test_client):
assert nest_file_location.exists() == False
rv = test_client.get("/{}".format(pagename))
assert... | 2025-02-12T21:29:46+00:00Z | Imported trailing newlines cause IndexError
Suppose you have the following test file with **at least two trailing newlines**:
```md
# Blame
Test
```
Import that into the repository by commiting it on the CLI or pulling it from somewhere.
You can view the resulting page, but when trying to show its blame, you get... | Released fix in [v2.9.3](https://github.com/redimp/otterwiki/releases/tag/v2.9.3). | 0.0.1-alpha | ffefcadadb199e979d5d4f06355dbc3526821eb6 | ["tests.test_otterwiki::test_blame_issue200_empty_trailing_lines"] | ["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"
} | |
wemake-services__dotenv-linter-12 | wemake-services/dotenv-linter | 0fee69a92de385014e6e1ba5f78aa03f3fb11f5b | diff --git a/dotenv_linter/violations/assigns.py b/dotenv_linter/violations/assigns.py
index 939f159..097b655 100644
--- a/dotenv_linter/violations/assigns.py
+++ b/dotenv_linter/violations/assigns.py
@@ -7,7 +7,7 @@ Rules that define how assigns should be made.
"""
-from typing import final
+from typing_extension... | python | diff --git a/tests/conftest.py b/tests/conftest.py
index 54b5a33..d80733e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,8 +1,12 @@
import inspect
+from collections.abc import Callable
from operator import itemgetter
from pathlib import PurePath
+from types import ModuleType
+from typing import Dict, L... | 2024-10-12T13:50:54+00:00Z | Test violations codes and docs
We need to tests that all violations
1. have unique codes
2. correctly sorted inside the code
3. have docs in the module docstrings
You can have a look at the example (this code can be even copy-pasted): https://github.com/wemake-services/wemake-python-styleguide/tree/master/tes... | Awesome! I'll get a look at it this week (super busy with a new contract).
Awesome! Thanks.
I've got the violations testing in order but noticed that we don't have a config.py for this project, unlike the example. In the example, the Configuration object is needed in the final function in test_docs.py to ensure that al... | 0.0.1-alpha | cb170aa847eb7db8e935267f2a094d075c8b9c50 | ["tests.test_violations.test_codes::test_all_violations_are_final"] | ["tests.test_violations.test_docs::test_violation_name", "tests.test_violations.test_docs::test_violation_template_ending", "tests.test_violations.test_docs::test_previous_codes_versionchanged", "tests.test_violations.test_docs::test_all_violations_are_documented", "tests.test_violations.test_docs::test_all_violations_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
matthewwithanm__python-markdownify-46 | matthewwithanm/python-markdownify | 62e9f0de0258088412dc41f251d07c10bab0d0b8 | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index ffde006..5bd492e 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -240,6 +240,12 @@ class MarkdownConverter(object):
convert_em = abstract_inline_conversion(lambda self: self.options['strong_em_symbol'])
+ def convert_... | python | diff --git a/tests/test_conversions.py b/tests/test_conversions.py
index 86d8b5d..8afd589 100644
--- a/tests/test_conversions.py
+++ b/tests/test_conversions.py
@@ -39,6 +39,10 @@ def test_a_no_autolinks():
assert md('<a href="https://google.com">https://google.com</a>', autolinks=False) == '[https://google.com](h... | 2021-06-30T11:02:42+00:00Z | Newlines after images
When converting articles containing images with markdownify:
```python3
md('<img src="https://example.com/test.jpg><p>Next paragraph</p>')
```
I get the following result:
```markdown
Next paragraph\n\n
```
But what I normally expect is:
```markdown
) > 1e7
+ def test_layer_legend(self, xy)... | 2023-08-31T12:54:00+00:00Z | Support "layer labels" with legend
It should be possible to represent a a _layer_ in the legend, in addition to a _mapping_. An example usecase would be
```python
(
so.Plot(data, "x", "y")
.add(so.Line(color="r"), so.PolyFit(1), label="1st degree")
.add(so.Line(color="b"), so.Polyfit(2), label="2nd ... | As discussed in #3101, I would really love this feature!
I'd love this feature.
One possible way (related to [3107](https://github.com/mwaskom/seaborn/issues/3107)) to achieve this could be enabling to specify custom string as a 'mapping'.
Example:
```{python}
data = pd.DataFrame({"x": ..., "y": ...})
(
... | 0.0.1-alpha | 082486d8505cee37416a855da65ff6349c7259e2 | ["tests._core.test_plot.TestLegend::test_layer_legend", "tests._core.test_plot.TestLegend::test_layer_legend_with_scale_legend", "tests._core.test_plot.TestLegend::test_layer_legend_title"] | ["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",... | [] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
more-itertools__more-itertools-409 | more-itertools/more-itertools | c0465331cbc0d882cd7dce5c0bd19aaf46dfb968 | diff --git a/more_itertools/more.py b/more_itertools/more.py
index f8361ab..fd9e4af 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -932,7 +932,7 @@ def spy(iterable, n=1):
it = iter(iterable)
head = take(n, it)
- return head, chain(head, it)
+ return head.copy(), chain(head, it)
... | python | diff --git a/tests/test_more.py b/tests/test_more.py
index 2e62388..6ba02a7 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -933,6 +933,15 @@ class SpyTests(TestCase):
self.assertEqual(head, [])
self.assertEqual(list(new_iterable), ['a', 'b', 'c'])
+ def test_immutable(self):
+ ... | 2020-03-29T21:05:42+00:00Z | spy: changing the result list changes the returned iterable
Changing the result list of `spy` also alters the iterable.
```python
In [1]: from more_itertools import spy
In [2]: it = range(10)
In [3]: head, it = spy(it, 3)
In [4]: head[1] = 'bad'
In [5]: list(it)
Out[5]: [0, 'bad', 2, 3, 4, 5, 6, 7, 8,... | > I think it is a case of implementation details leaking out.
I think you're right - would you rather see this called out in docs, or return `head.copy()` [here](https://github.com/more-itertools/more-itertools/blob/d6e773411087fa494991d7a8ad81e6a9ad5ddd56/more_itertools/more.py#L932)?
As it is a simple fix, I think... | 0.0.1-alpha | 62411c1618493f94b16901746c34e72ad415061e | ["tests.test_more.SpyTests::test_immutable"] | ["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"
} | |
prometheus__client_python-995 | prometheus/client_python | b9edc43221101cad593c64d3fe9853760bef135e | diff --git a/prometheus_client/metrics.py b/prometheus_client/metrics.py
index 34305a1..91cd9ec 100644
--- a/prometheus_client/metrics.py
+++ b/prometheus_client/metrics.py
@@ -292,6 +292,12 @@ class Counter(MetricWrapperBase):
# Count only one type of exception
with c.count_exceptions(ValueError):
... | python | diff --git a/tests/test_core.py b/tests/test_core.py
index 6f7c9d1..30f9e0a 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -43,6 +43,16 @@ class TestCounter(unittest.TestCase):
self.counter.inc(7)
self.assertEqual(8, self.registry.get_sample_value('c_total'))
+ def test_reset(self):
... | 2024-02-13T16:33:13+00:00Z | Provide a way to reset a Counter metric
Hi. My program performs some lengthy process of many iterations, and I use a Counter to track current iteration. However, it is normal for the process to finish at some point, and then the user can start it again, without restarting the app.
> A counter is a cumulative metri... | This is an interesting one. The docs do specifically say that the reset to zero is on restart, but I can also understand the use case. Since https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#counter also specifies that a counter's total may reset I am ok accepting this feature. Are... | 0.0.1-alpha | 1f8ceb79f0c96c8983df4fea2bafbf54a859a11b | ["tests.test_core.TestCounter::test_reset"] | ["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"
} | |
python-validators__validators-299 | python-validators/validators | b313f1530e18fdcf0466258e92adc649decd6bab | diff --git a/src/validators/url.py b/src/validators/url.py
index 00df3d6..613121d 100644
--- a/src/validators/url.py
+++ b/src/validators/url.py
@@ -111,8 +111,8 @@ def _validate_optionals(path: str, query: str, fragment: str, strict_query: bool
if query and parse_qs(query, strict_parsing=strict_query):
o... | python | diff --git a/tests/test_url.py b/tests/test_url.py
index 558d50c..89ae678 100644
--- a/tests/test_url.py
+++ b/tests/test_url.py
@@ -85,6 +85,8 @@ from validators import ValidationError, url
"http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
"https://exchange.jetswap.finance/#/swap",
"http... | 2023-10-05T01:07:51+00:00Z | url raising validation error on a valid url
not sure what the problem is. but this url is not being validated:
'https://iphonechi.com/iphone-11-used/9115-11860-apple-iphone-11-128gb-purple-dual-sim.html#/61-part_number-za_a/130-body_condition-%D8%AE%D8%B1%D8%A7%D8%B4%DB%8C_%D9%86%D8%AF%D8%A7%D8%B1%D8%AF/136-overall_c... | Hi!
This was brought up in Issue #296 and fixed in PR #297. I assume it should be patched when a new release comes out. Until then I recommend using version 0.20.0.
This has been fixed in the latest commit (960b48b8a548fa5b104f1999ef0c18923a232c52). Test it out:
```console
$ mkdir test-validators
$ cd test-vali... | 0.0.1-alpha | 15984e89a96ee8e8ceb9c2148cac6896a85cd71e | ["tests.test_url::test_returns_true_on_valid_url[https://matrix.to/#/!BSqRHgvCtIsGittkBG:talk.puri.sm/$1551464398853539kMJNP:matrix.org?via=talk.puri.sm&via=matrix.org&via=disroot.org]"] | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-902 | more-itertools/more-itertools | 4f4217c164eb99df5c09a3882b8c7222d7c74d6c | diff --git a/more_itertools/recipes.py b/more_itertools/recipes.py
index f7db03b..67f76fa 100644
--- a/more_itertools/recipes.py
+++ b/more_itertools/recipes.py
@@ -222,6 +222,7 @@ def all_equal(iterable, key=None):
for first in iterator:
for second in iterator:
return False
+ return T... | python | diff --git a/tests/test_recipes.py b/tests/test_recipes.py
index d3762d4..684a6fc 100644
--- a/tests/test_recipes.py
+++ b/tests/test_recipes.py
@@ -2,11 +2,12 @@ from decimal import Decimal
from doctest import DocTestSuite
from fractions import Fraction
from functools import reduce
-from itertools import combinatio... | 2024-08-21T16:37:06+00:00Z | One more nit on all_equal()
I missed something during the code review. There is an extra unnecessary `next` call in the first for-loop. This is easily solved by adding another `return True`.
```
def all_equal(iterable, key=None):
iterator = groupby(iterable, key)
for first in iterator:
for sec... | Yeah that's my `for_for_False_True_True`. I preferred `for_for_False_True`, given how small the speed difference was. (I'll get back to the other topics, just been busy.) | 0.0.1-alpha | 35f8e41dc6cad3310d8fbe9a618c121a2b8d379c | ["tests.test_recipes.AllEqualTests::test_groupby_calls"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sepandhaghighi__mycoffee-69 | sepandhaghighi/mycoffee | 0d06fd7f2e81b40fc0f834d23273fe7dfe781050 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 79c5e71..f096fff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,10 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
-- 3 new water units
+- 4 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 0d752d8..cc3b9e3 100644
--- a/test/functions_test.py
+++ b/test/functions_test.py
@@ -157,23 +157,24 @@ Coffee units list:
>>> show_water_units_list()
Water units list:
<BLANKLINE>
-1. `ct` - carat
-2. `cup` - cup
-3. `dsp` - dessertspoon
-4. `fl oz`... | 2024-12-28T18:50:22+00:00Z | [Feature]: Cubic Centimeters
### Describe the feature you want to add
Cubic Centimeters(`cc`) 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/volu... | 0.0.1-alpha | ca716930e2ab9b6e31370d0ff06c47281c3f0560 | ["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"
} | ||
prometheus__client_python-1011 | prometheus/client_python | 7a80f001237fe881d3607861947292abc85bf205 | diff --git a/prometheus_client/metrics.py b/prometheus_client/metrics.py
index 91cd9ec..af51211 100644
--- a/prometheus_client/metrics.py
+++ b/prometheus_client/metrics.py
@@ -705,6 +705,8 @@ class Info(MetricWrapperBase):
if self._labelname_set.intersection(val.keys()):
raise ValueError('Overlap... | python | diff --git a/tests/test_core.py b/tests/test_core.py
index 30f9e0a..8a54a02 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -534,6 +534,7 @@ class TestInfo(unittest.TestCase):
def test_labels(self):
self.assertRaises(ValueError, self.labels.labels('a').info, {'l': ''})
+ self.assertRa... | 2024-03-09T02:12:24+00:00Z | Using None as a label value breaks exposure of all metrics
If a metric is added and provided a label value of `None`, the response generated for scraping raises an AttributeError, preventing any attribute from being scraped, not just the misconfigured one.
Sample code:
```
from prometheus_client import Info, ge... | 0.0.1-alpha | 4535ce0f43097aa48e44a65747d82064f2aadaf5 | ["tests.test_core.TestInfo::test_labels"] | ["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"
} | ||
microsoft__vscode-black-formatter-425 | microsoft/vscode-black-formatter | 785aba109f5064f8efcbb341fd16994a8e1e0f0d | diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py
index b25509c..9b2ad57 100644
--- a/bundled/tool/lsp_server.py
+++ b/bundled/tool/lsp_server.py
@@ -297,7 +297,7 @@ def _update_workspace_settings_with_version_info(
try:
from packaging.version import parse as parse_version
- ... | python | diff --git a/src/test/python_tests/test_path_specialization.py b/src/test/python_tests/test_path_specialization.py
index d6a2814..cb0d7e8 100644
--- a/src/test/python_tests/test_path_specialization.py
+++ b/src/test/python_tests/test_path_specialization.py
@@ -3,6 +3,9 @@ Test for path and interpreter settings.
"""
... | 2024-01-29T19:19:58+00:00Z | When I provide path to black, the extension adds --version arg that cannot be removed
I wanted to use the newest black already, so I installed it to my venv and set the path for the formatter extension in settings.json:
```
"black-formatter.path": [
"~/path/to/.venv/bin/black"
]
```
After I run... | @janvorac-solargis Can you share your entire logs and your settings?
We do a `--version` check once at the beginning to get version but actual formatting run does not include that. We automatically add `--stdin-filename` to actually perform formatting, this is needed to do formatting with VS Code.
This is how f... | 0.0.1-alpha | b643333c9b673accc380890917ca7b072e54de0c | ["src.test.python_tests.test_path_specialization::test_path"] | ["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... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
more-itertools__more-itertools-912 | more-itertools/more-itertools | 6546a55dff1693d2cfc711d985b7d4d75608af04 | diff --git a/more_itertools/recipes.py b/more_itertools/recipes.py
index 67f76fa..f566849 100644
--- a/more_itertools/recipes.py
+++ b/more_itertools/recipes.py
@@ -13,7 +13,7 @@ import operator
from collections import deque
from collections.abc import Sized
-from functools import partial, reduce
+from functools im... | python | 2024-09-20T16:24:06+00:00Z | Make polynomial_from_roots() non-recursive
This edit breaks up the chain of recursive calls by fully consuming the convolution on each iteration.
```
def polynomial_from_roots(roots):
poly = [1]
for factor in zip(repeat(1), map(operator.neg, roots)):
poly = list(convolve(poly, factor))
retu... | Do you then still prefer building the factors like that? Instead of:
```py
def polynomial_from_roots(roots):
poly = [1]
for root in roots:
poly = list(convolve(poly, (1, -root)))
return poly
```
Yes, let's get rid of the zip/repeat/map/neg approach which was mainly there to demonstrate what... | 0.0.1-alpha | 00c7acd8a7020e1eaf4896e5ee5cec3e7931e05f | ["tests.test_recipes.PolynomialFromRootsTests::test_large"] | ["tests.test_more.ChunkedTests::test_even", "tests.test_more.ChunkedTests::test_none", "tests.test_more.ChunkedTests::test_odd", "tests.test_more.ChunkedTests::test_strict_being_true", "tests.test_more.ChunkedTests::test_strict_being_true_with_size_none", "tests.test_more.ChunkedTests::test_strict_false", "tests.test_m... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
matthewwithanm__python-markdownify-143 | matthewwithanm/python-markdownify | fe8a821a20629594668288cdfcfe74dd07b62bbf | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index cc3d153..c34e57e 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -315,6 +315,9 @@ class MarkdownConverter(object):
if convert_as_inline:
return text
+ # prevent MemoryErrors in case of very large n
... | python | diff --git a/tests/test_conversions.py b/tests/test_conversions.py
index 0be1d0c..1c5f9c2 100644
--- a/tests/test_conversions.py
+++ b/tests/test_conversions.py
@@ -133,6 +133,7 @@ def test_hn():
assert md('<h4>Hello</h4>') == '\n#### Hello\n\n'
assert md('<h5>Hello</h5>') == '\n##### Hello\n\n'
assert m... | 2024-11-24T20:11:42+00:00Z | The incorrect h tag could cause the machine freeze due to excessive memory use
markdownify in ./.venv/lib/python3.8/site-packages (0.13.1)
The issue is found with atheris library
The code to reproduce the issue:
`markdownify("<html><body><h5555555555>My First Heading</h5555555555><p>My first paragraph.</p></b... | Good catch, thank you! | 0.0.1-alpha | 959561879693bf4a576f99c6733b50b01186aa08 | ["tests.test_conversions::test_hn"] | ["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"
} | |
wjohnson__pyapacheatlas-59 | wjohnson/pyapacheatlas | c74c627e2c29b9a110523a6c14595860b4285a65 | diff --git a/pyapacheatlas/core/client.py b/pyapacheatlas/core/client.py
index 1f96b6d..4664569 100644
--- a/pyapacheatlas/core/client.py
+++ b/pyapacheatlas/core/client.py
@@ -697,17 +697,70 @@ class AtlasClient():
"guid": guid,
}
return results
+
+ @staticmethod... | python | diff --git a/tests/integration/TypesREST/test_upload.py b/tests/integration/TypesREST/test_upload.py
new file mode 100644
index 0000000..c36acf8
--- /dev/null
+++ b/tests/integration/TypesREST/test_upload.py
@@ -0,0 +1,33 @@
+import os
+
+from pyapacheatlas.auth import ServicePrincipalAuthentication
+from pyapacheatlas... | 2021-01-10T04:24:00+00:00Z | AtlasClient.upload_typedefs should accept wider variety of def parameters
upload_typedefs currently accepts a typedef parameter that can take in different values.
I think it would be better if it had arguments for the required keys: "classificationDefs", "entityDefs","enumDefs", "relationshipDefs", "structDefs". Th... | 0.0.1-alpha | 6b293d88be4d97137e239928b52ed3e6d4bd7143 | ["tests.unit.client.test_prep_validate::test_prepare_type_def"] | ["tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_list", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_dict", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_atlas_entity", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_mixed_atlas_en... | ["tests.integration.TypesREST.test_upload::test_upload_typedef_with_mixed_classes", "tests.integration.test_purview::test_purview_client_integration"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
sepandhaghighi__mycoffee-83 | sepandhaghighi/mycoffee | ee79c2833859f1c267e6d09826cc774b6e874adc | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 98cadf9..0ee7027 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Adde... | python | diff --git a/test/functions_test.py b/test/functions_test.py
index b5df38d..5bb21b8 100644
--- a/test/functions_test.py
+++ b/test/functions_test.py
@@ -15,6 +15,8 @@
0.001
>>> convert_water(1, "kg", True)
1000.0
+>>> get_grind_type(100)
+'Extra-Fine'
>>> test_params = {"method":"v60", "cups":2, "coffee":60, "water... | 2025-01-21T17:59:27+00:00Z | [Feature]: Grind type
### Describe the feature you want to add
Add grind type
1. Extra-fine **0-200 microns**
2. Fine **200-400 microns**
3. Medium-fine **400-600 microns**
4. Medium **600-800 microns**
5. Medium-coarse **800-1000 microns**
6. Coarse **1000-1200**
7. Extra-coarse **1200-1400 microns**
### D... | 0.0.1-alpha | 68a11ae0d50a2909efc410379ae754f6adf4f4f2 | ["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"
} | ||
netbox-community__pynetbox-242 | netbox-community/pynetbox | 064b72e7a10f7ead5550235e2c3e594e8f4fefc5 | diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py
index 5285685..29e124d 100644
--- a/pynetbox/core/response.py
+++ b/pynetbox/core/response.py
@@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and... | python | diff --git a/tests/test_dcim.py b/tests/test_dcim.py
index 47119ea..3403f93 100644
--- a/tests/test_dcim.py
+++ b/tests/test_dcim.py
@@ -111,7 +111,7 @@ class Generic(object):
headers=HEADERS,
)
- def test_compare(self):
+ def test_diff(self):
with patc... | 2020-07-08T15:28:14+00:00Z | Problem with update local_config_context on an existing device
Hello, i have problem with update local_config_context on an existing device.
My environment
Python version: 3.8
NetBox version: 2.8.4
Steps to Reproduce
Upload device with local_context_data field. For example my field:
{
"bgp_neighbors": [
{
"... | I don't know the exact reason, but I have a workaround. This line:
`local_context = device.local_context_data`
Replace it with:
```
import copy
local_context = copy.deepcopy(device.local_context_data)
```
and then you can modify `local_context` as you wish and `device.update()` works as expected.
Let us... | 0.0.1-alpha | bb93c8e686792743574de8c4065f8aef10701720 | ["tests.unit.test_response.RecordTestCase::test_diff"] | ["tests.test_dcim.ConsolePortsTestCase::test_delete", "tests.test_dcim.ConsolePortsTestCase::test_diff", "tests.test_dcim.ConsolePortsTestCase::test_filter", "tests.test_dcim.ConsolePortsTestCase::test_get", "tests.test_dcim.ConsolePortsTestCase::test_get_all", "tests.test_dcim.ConsolePortsTestCase::test_serialize", "t... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
microsoftgraph__msgraph-sdk-python-core-834 | microsoftgraph/msgraph-sdk-python-core | c6c089e70410bc5b4d19de32fce7cea9cfd37f70 | diff --git a/src/msgraph_core/requests/batch_request_builder.py b/src/msgraph_core/requests/batch_request_builder.py
index ab544c7..5bf647c 100644
--- a/src/msgraph_core/requests/batch_request_builder.py
+++ b/src/msgraph_core/requests/batch_request_builder.py
@@ -31,7 +31,7 @@ class BatchRequestBuilder:
if re... | python | diff --git a/tests/requests/test_batch_request_content.py b/tests/requests/test_batch_request_content.py
index 81cac04..2155464 100644
--- a/tests/requests/test_batch_request_content.py
+++ b/tests/requests/test_batch_request_content.py
@@ -88,9 +88,9 @@ def test_add_urllib_request(batch_request_content):
def test... | 2025-02-25T17:09:55+00:00Z | BatchRequestBuilder url template includes extra forward slash
### Describe the bug
Whenever batch requests are made, I receive the following:
```
APIError
Code: 400
message: The server returned an unexpected status code and no error class is registered for this code 400
```
### Expected beha... | Thanks for raising this @GeorgeOG
Any chance you're willing to submit a PR to address this by following the contribution guideline below? https://github.com/microsoftgraph/msgraph-sdk-python-core/blob/main/CONTRIBUTING.md
Happily @andrueastman - could you give me permission to push to origin, doesn't look like I can ... | 0.0.1-alpha | a0dd3c18d39f9cadbba25109345ee7be8a810a99 | ["tests.requests.test_batch_request_content::test_finalize"] | ["tests.authentication.test_azure_identity_authentication_provider::test_subclassing", "tests.middleware.options.test_graph_telemetry_handler_options::test_graph_telemetry_handler_options_default", "tests.middleware.options.test_graph_telemetry_handler_options::test_graph_telemetry_handler_options_custom", "tests.middl... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
scipy__oldest-supported-numpy-72 | scipy/oldest-supported-numpy | 66810804478e971dd08c8ea3936bca2757a1fbcb | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b5e001c..153f0e1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -42,4 +42,4 @@ jobs:
run: pip install -r tests/requirements.txt
- name: Test valid numpy installed
- run: pytest -k test_valid_... | python | diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 0000000..2b90bb6
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,21 @@
+import configparser
+from pathlib import Path
+from typing import List
+
+import pytest
+from packaging.requirements import Requirement
+
+SETUP_CFG_FILE = Path(__file__... | 2023-08-03T16:06:59+00:00Z | Drop support for EOL pythons?
I think we should drop the markers for 3.5 and probably 3.6, and just raise `python_requires` appropriately. Those on old python versions will still get functioning `oldest-supported-numpy` packages, and almost by definition, those old language versions will not receive any new architectu... | Python 3.5 has also already been dropped from `test_dependencies.py`...
That sounds okay to me indeed. We should keep 3.7 for a little while longer. | 0.0.1-alpha | 13bed2ba9c68e8bc07ae0072eee2d6a0a21ee186 | ["tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-Linux-loongarch64]", "tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-Windows-arm64]", "tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-AIX-aarch64]", "tests.test_dependencies::test_has_... | ["tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-Linux-x86]", "tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-Linux-x86_64]", "tests.test_dependencies::test_has_at_most_one_pinned_dependency[CPython-3.7-Linux-aarch64]", "tests.test_dependencies::test_has_at_most... | ["tests.test_installation::test_valid_numpy_is_installed"] | {
"key": "bsd-2-clause",
"name": "BSD 2-Clause \"Simplified\" License",
"spdx_id": "BSD-2-Clause",
"url": "https://api.github.com/licenses/bsd-2-clause"
} | |
lucidrains__x-transformers-305 | lucidrains/x-transformers | cdf51f7127d2af478030b81c44d7a1ddb35716a8 | diff --git a/setup.py b/setup.py
index f808858..07e66c5 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'x-transformers',
packages = find_packages(exclude=['examples']),
- version = '1.43.1',
+ version = '1.43.2',
license='MIT',
description =... | python | diff --git a/tests/test_x_transformers.py b/tests/test_x_transformers.py
index 3ed2bb3..739b261 100644
--- a/tests/test_x_transformers.py
+++ b/tests/test_x_transformers.py
@@ -409,7 +409,8 @@ def test_custom_alibi(flash: bool):
logits = model(x, pos = pos)
-def test_custom_rotary_pos_emb():
+@pytest.mark.para... | 2024-12-23T00:22:57+00:00Z | [BUG] Rotary xpos shape breaking
Hi Phil! I found that the hack I added for custom rotary embedding accidentally broke rotary xpos, and would have the following trace when rotary_xpos is turned on:
```
File "/opt/anaconda3/envs/neuro/lib/python3.12/site-packages/x_transformers/x_transformers.py", line 669, in fo... | @Aceticia oh, no biggie
should work now! (although i personally don't like xpos that much)
Speedy! I'm just trying out different things for length generalization. There are a bunch of papers and I can't possibly try them all - so I'm curious what you find the most reliable in practice? | 0.0.1-alpha | 003275c607ca60b850bacd6b24d7d43e8b54dda9 | ["tests.test_x_transformers::test_custom_rotary_pos_emb[True]"] | ["tests.test_x_transformers::test_readme", "tests.test_x_transformers::test_kv_cache", "tests.test_x_transformers::test_cope", "tests.test_x_transformers::test_adaptive_layernorm", "tests.test_x_transformers::test_adaptive_rmsnorm", "tests.test_x_transformers::test_attn_softclamp_logits", "tests.test_x_transformers::te... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
timoniq__telegrinder-152 | timoniq/telegrinder | 10609b5937678521c85bb43d5b68c3093ca5a9a0 | diff --git a/telegrinder/bot/cute_types/callback_query.py b/telegrinder/bot/cute_types/callback_query.py
index d62e022..e52bcf6 100755
--- a/telegrinder/bot/cute_types/callback_query.py
+++ b/telegrinder/bot/cute_types/callback_query.py
@@ -69,7 +69,7 @@ class CallbackQueryCute(BaseCute[CallbackQuery], CallbackQuery, k... | python | diff --git a/tests/test_rules.py b/tests/test_rules.py
index 0d918cb..58f9c91 100644
--- a/tests/test_rules.py
+++ b/tests/test_rules.py
@@ -49,35 +49,32 @@ class Text(MessageRule):
def __init__(self, text: str) -> None:
self.text = text
- async def check(self, message: MessageCute) -> bool:
+ def... | 2024-09-16T16:43:11+00:00Z | Support sync `ABCRule.check()`
for example:
```python
class Rule(ABCRule):
def check(self, text: Text) -> bool:
return "some text" == text
```
sync will be better in such cases | 0.0.1-alpha | 2695ddff7dc5a51d6187603d88c0f0249d451951 | ["tests.test_rules::test_rule_callback_data_eq", "tests.test_rules::test_rule_callback_data_json_eq"] | ["tests.test_adapters::test_event_adapter_with_event_message_cute", "tests.test_adapters::test_event_adapter_with_event_callback_query_cute", "tests.test_adapters::test_raw_update_adapter_with_message_update", "tests.test_adapters::test_raw_update_adapter_with_callback_query_update", "tests.test_adapters::test_node_ada... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
redimp__otterwiki-212 | redimp/otterwiki | 2316bc9f560104beeb1392c82b973b2d72718598 | diff --git a/otterwiki/renderer.py b/otterwiki/renderer.py
index 3e4fe25..751b682 100644
--- a/otterwiki/renderer.py
+++ b/otterwiki/renderer.py
@@ -272,6 +272,23 @@ class OtterwikiMdRenderer(mistune.HTMLRenderer):
return rv
+class OtterwikiBlockParser(mistune.BlockParser):
+ INDENT_CODE = re.compile(r'... | python | diff --git a/tests/test_renderer.py b/tests/test_renderer.py
index ed9ee90..e7327d2 100644
--- a/tests/test_renderer.py
+++ b/tests/test_renderer.py
@@ -577,7 +577,7 @@ def test_indent_preformatted_issue206():
assert pre
assert (
""" Hello :) This is at 5 spaces.
- 5 spaces here as well.\n"""
+ 5 spa... | 2025-03-06T22:49:48+00:00Z | Minor templating issues
Hey, I was wondering why my preformatted blocks look weird, so I looked at the HTML source code and found three issues. I'll squash them into one issue.
## Issue 1: Preformatted blocks have a trailing newline
```markdown
# Example page
This is preformatted.
This is regular.
```
Expecte... | Hey @rhartmann thanks for reporting these issues!
subissue 2 and subissue 3 have been fixed. Will look into the preformatted blocks next.
Fixes released in [v2.10.0](https://github.com/redimp/otterwiki/releases/tag/v2.10.0). | 0.0.1-alpha | 518d9f0be889cde90c0a88f6a7307fde3c4b7ae9 | ["tests.test_renderer::test_indent_preformatted_issue206", "tests.test_renderer::test_indent_preformatted_issue212"] | ["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"
} | |
scientific-python__lazy-loader-13 | scientific-python/lazy-loader | bf82b682de6d1d99d883dfc57deccf043f3e0635 | diff --git a/README.md b/README.md
index 946797c..6600c8c 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,29 @@ discouraged._
You can ask `lazy.load` to raise import errors as soon as it is called:
-```
+```python
linalg = lazy.load('scipy.linalg', error_on_import=True)
```
+
+#### Optional requirements
+
... | python | diff --git a/lazy_loader/tests/test_lazy_loader.py b/lazy_loader/tests/test_lazy_loader.py
index 83fb9ed..a7c166c 100644
--- a/lazy_loader/tests/test_lazy_loader.py
+++ b/lazy_loader/tests/test_lazy_loader.py
@@ -1,6 +1,7 @@
import importlib
import sys
import types
+from unittest import mock
import pytest
@@ -1... | 2024-01-30T18:48:42+00:00Z | Optional package features
I want to run a couple ideas past this group, which is mostly targeted at deciding whether it makes more sense to help implement features here versus update our similar feature to use lazy loading under the hood. The use case in mind is [optional (extra) dependencies](https://packaging.python... | I'm wondering if this is the right place to check for dependencies. These requirements are usually handled by pip, conda, etc. Do you know of packages that check, at runtime, whether their installation requirements are met? My gut feel is that it is out of scope for the lazy loader, but then I also haven't thought abou... | 0.0.1-alpha | 0d4fb38d864899eb6b03560083e4569d7e6eb665 | ["lazy_loader.tests.test_lazy_loader::test_require_kwarg"] | ["lazy_loader.tests.test_lazy_loader::test_lazy_import_basics", "lazy_loader.tests.test_lazy_loader::test_lazy_import_subpackages", "lazy_loader.tests.test_lazy_loader::test_lazy_import_nonbuiltins", "lazy_loader.tests.test_lazy_loader::test_lazy_attach", "lazy_loader.tests.test_lazy_loader::test_attach_same_module_and... | [] | {
"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"
} | |
mkdocs__mkdocs-redirects-23 | mkdocs/mkdocs-redirects | 5a913e468ab94adf8cf16f649d29ad4186f9bd36 | diff --git a/mkdocs_redirects/plugin.py b/mkdocs_redirects/plugin.py
index 44e4dbc..397aed9 100644
--- a/mkdocs_redirects/plugin.py
+++ b/mkdocs_redirects/plugin.py
@@ -71,14 +71,14 @@ def get_relative_html_path(old_page, new_page, use_directory_urls):
def get_html_path(path, use_directory_urls):
""" Return the H... | python | diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index dd33b54..eab785e 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -8,7 +8,10 @@ from mkdocs_redirects.plugin import get_relative_html_path
@pytest.mark.parametrize(["old_page", "new_page", "expected"], [
("old.md", "index.md", "../"),... | 2022-03-29T18:10:20+00:00Z | Redirects to README.md (as index.html) are broken since v1.0.2
```bash
cat >mkdocs.yml
```
```yaml
site_name: test
use_directory_urls: false
theme:
name: material
plugins:
- redirects:
redirect_maps:
foo.md: foo/README.md
```
```bash
mkdir -p docs/foo
touch docs/foo/README.md
... | This is still a really big issue.
~~@plannigan~~ @burkestar Do you have any plans to continue maintenance of this package (i.e. merging the pending fixes and releasing them)? If not, would you be open to handing over maintenance?
I'm the current maintainer of MkDocs itself, and I offer to maintain this package, i... | 0.0.1-alpha | d983418602ed80694982942898459553075f9f50 | ["tests.test_plugin::test_relative_redirect_no_directory_urls[old.md-README.md-index.html]", "tests.test_plugin::test_relative_redirect_no_directory_urls[old.md-new/README.md-new/index.html]", "tests.test_plugin::test_relative_redirect_no_directory_urls[foo.md-foo/README.md-foo/index.html]"] | ["tests.test_plugin::test_relative_redirect_directory_urls[old.md-index.md-../]", "tests.test_plugin::test_relative_redirect_directory_urls[old.md-README.md-../]", "tests.test_plugin::test_relative_redirect_directory_urls[old.md-new.md-../new/]", "tests.test_plugin::test_relative_redirect_directory_urls[old.md-new/inde... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
sepandhaghighi__mycoffee-11 | sepandhaghighi/mycoffee | a9ee20b6cc9df47a18571563f1d7dc984d88fe4c | diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 1e5b681..f2db81e 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -84,6 +84,7 @@ body:
label: MyCoffee version
description: Which version of MyCoffee are you us... | python | diff --git a/test/functions_test.py b/test/functions_test.py
index 5f2f237..4e65b3d 100644
--- a/test/functions_test.py
+++ b/test/functions_test.py
@@ -147,7 +147,7 @@ True
>>> _ = parser.add_argument('--version', help='version', nargs="?", const=1)
>>> args = parser.parse_args({"--version":True})
>>> run(args)
-0.... | 2024-10-07T15:50:13+00:00Z | [Feature]: ratio range
### Describe the feature you want to add
Each method should have a specific range for the ratio.
### Describe your proposed solution
_No response_
### Describe alternatives you've considered, if relevant
_No response_
### Additional context
_No response_ | 0.0.1-alpha | fab17ef14933a07a1d4177859d7dcd36750de677 | ["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"
} | ||
pygfx__pygfx-33 | pygfx/pygfx | 7105e7d6f4b34648c665d271fc1367b52edfbd2c | diff --git a/examples/colormap_channels.py b/examples/colormap_channels.py
index 8900052..2782f38 100644
--- a/examples/colormap_channels.py
+++ b/examples/colormap_channels.py
@@ -16,7 +16,7 @@ renderer = gfx.renderers.WgpuRenderer(canvas)
scene = gfx.Scene()
geometry = gfx.TorusKnotGeometry(1, 0.3, 128, 32)
-geom... | python | diff --git a/tests/renderers/test_shader_composer.py b/tests/renderers/test_shader_composer.py
index 481cf74..980466e 100644
--- a/tests/renderers/test_shader_composer.py
+++ b/tests/renderers/test_shader_composer.py
@@ -53,7 +53,7 @@ def test_uniform_definitions():
shader.define_uniform(0, 0, "zz", np.array([... | 2021-10-07T08:13:37+00:00Z | Progress on architecture and API
Listing some things we need to look at regarding the architecture and API. Will add more as things come to mind.
### API
* [x] Do we favor property setters or `set_xx()` functions? #154
* [x] Be consistent in function arguments w.r.t. x, y (z) vs tuple vs Vector3.
* [x] Some pa... | > Be consistent in function arguments w.r.t. x, y (z) vs tuple vs Vector3
My take:
* For width/height viewport-related stuff, use separate args, not a size arg.
* For colors use a single arg.
* For points/positions I'm also leaning towards a single arg (but there seems to be no function that accepts a points a... | 0.0.1-alpha | 744649364c1a6174280848d4e04b45563b81f8dd | ["tests.renderers.test_shader_composer::test_uniform_definitions"] | ["tests.cameras.test_cameras::test_otho_camera_near_far", "tests.cameras.test_cameras::test_perspective_camera_near_far", "tests.linalg.test_euler::test_instancing", "tests.linalg.test_euler::test_x", "tests.linalg.test_euler::test_y", "tests.linalg.test_euler::test_z", "tests.linalg.test_euler::test_order", "tests.lin... | ["tests.geometry.test_boxgeometry::test_compare_to_three"] | {
"key": "bsd-2-clause",
"name": "BSD 2-Clause \"Simplified\" License",
"spdx_id": "BSD-2-Clause",
"url": "https://api.github.com/licenses/bsd-2-clause"
} | |
titipata__pubmed_parser-135 | titipata/pubmed_parser | 15c477a579bda06642a436e56c149fbf89546ba6 | diff --git a/pubmed_parser/pubmed_web_parser.py b/pubmed_parser/pubmed_web_parser.py
index 2825681..ec4ed49 100644
--- a/pubmed_parser/pubmed_web_parser.py
+++ b/pubmed_parser/pubmed_web_parser.py
@@ -133,10 +133,10 @@ def parse_pubmed_web_tree(tree):
keywords = ""
doi = ""
- article_ids = tree.xpath... | python | diff --git a/tests/test_pubmed_web_parser.py b/tests/test_pubmed_web_parser.py
index 2062240..5b47e9a 100644
--- a/tests/test_pubmed_web_parser.py
+++ b/tests/test_pubmed_web_parser.py
@@ -65,3 +65,8 @@ def test_pubmed_web_parser_save_xml():
pubmed_dict = pp.parse_xml_web(random_id, save_xml=True)
asser... | 2024-04-21T15:32:45+00:00Z | Inconsistent PMID and DOI when using parse_xml_web for an XML file.
**Describe the bug**
```
{'title': 'Discovery of PROTAC BCL-X',
'abstract': 'Anti-apoptotic protein BCL-XL plays a key role in tumorigenesis and cancer chemotherapy resistance, rendering it an attractive target for cancer treatment. However, BCL-X... | The problem is this loop in `parse_pubmed_web_tree()`:
https://github.com/titipata/pubmed_parser/blob/15c477a579bda06642a436e56c149fbf89546ba6/pubmed_parser/pubmed_web_parser.py#L135-L140
The loop traverses all references (!) and returns the last DOI.
Instead, the attribute DOI should directly extract the `<ELoca... | 0.0.1-alpha | 9b2e3f7fc11f08fa80bc3ba8f78cb79cd18aba49 | ["tests.test_pubmed_web_parser::test_doi"] | ["tests.test_medline_parser::test_abstract", "tests.test_medline_parser::test_affiliations", "tests.test_medline_parser::test_authors", "tests.test_medline_parser::test_chemical_list", "tests.test_medline_parser::test_country", "tests.test_medline_parser::test_delete", "tests.test_medline_parser::test_doi", "tests.test... | ["tests.test_medline_parser::test_publication_types"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
timvink__mkdocs-git-authors-plugin-90 | timvink/mkdocs-git-authors-plugin | 3c10d6a3c94b0219e3fc00ffff92648a1875e208 | diff --git a/src/mkdocs_git_authors_plugin/git/page.py b/src/mkdocs_git_authors_plugin/git/page.py
index 3ffacaf..e67837b 100644
--- a/src/mkdocs_git_authors_plugin/git/page.py
+++ b/src/mkdocs_git_authors_plugin/git/page.py
@@ -1,7 +1,7 @@
import logging
import re
from pathlib import Path
-from typing import List
+... | python | diff --git a/tests/test_util.py b/tests/test_util.py
index a73f638..6acbbd4 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -31,12 +31,19 @@ DEFAULT_CONFIG = {
"show_contribution": False,
"show_line_count": False,
"show_email_address": True,
+ "href": "mailto:{email}",
"count_empty_li... | 2025-04-22T10:24:48+00:00Z | Sort Authors By Contribution Config Not Sorting Correctly
This `sort_authors_by: contribution` config is not sorting authors by contribution.
mkdocs-git-authors-plugin==0.9.0
mkdocs-material==9.5.27
mkdocs-material-extensions==1.3.1
:
objects = self.objects.filter(pk=pk_val)
if objects.exists():
- attrs... | python | diff --git a/tests/test_mocks.py b/tests/test_mocks.py
index ce78b4b..5505c85 100644
--- a/tests/test_mocks.py
+++ b/tests/test_mocks.py
@@ -435,6 +435,16 @@ class TestMockers(TestCase):
obj = Car.objects.create(speed=10)
self.assertEqual(Car.objects.get(pk=obj.id), obj)
+ def test_model_... | 2024-04-19T13:32:04+00:00Z | Saving an already created instance with FKs (mocked with ModelMocker) produces an error
When mocking a Model, the mocked do_update of the ModelMocker produces an error since it's trying to edit the direct attribute instead of the pk:
```python
def _do_update(self, *args, **_):
_, _, pk_val, values, _, _... | 0.0.1-alpha | ef3bbc33c3087448a82e29c5468b9cfb4adff1b3 | ["tests.test_mocks.TestMockers::test_model_mocker_update_fk_from_instance"] | ["tests.test_asserts.TestQuery::test_assert_serializer_func_returns_assert_instance_with_cls", "tests.test_asserts.TestQuery::test_serializer_assert_instance_sets_obj_returns_self", "tests.test_asserts.TestQuery::test_serializer_assert_mocks_sets_fields_returns_self", "tests.test_asserts.TestQuery::test_serializer_asse... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
quakkels__rssdiscoveryengine-21 | quakkels/rssdiscoveryengine | 64a56aae932753dfefd81952ac76c95ac2dcabbe | diff --git a/rssfinderasync/rssfinderhelpers.py b/rssfinderasync/rssfinderhelpers.py
index d225a33..f1f19c9 100644
--- a/rssfinderasync/rssfinderhelpers.py
+++ b/rssfinderasync/rssfinderhelpers.py
@@ -1,4 +1,4 @@
-from urllib.parse import urlparse
+from urllib.parse import urljoin, urlparse
import feedparser
import... | python | diff --git a/tests/test_helpers.py b/tests/test_helpers.py
index ef74b86..df6bf82 100644
--- a/tests/test_helpers.py
+++ b/tests/test_helpers.py
@@ -10,7 +10,17 @@ def test_build_possible_rss_url():
assert helpers.build_possible_rss_url('https://example.invalid/?q=5') == 'https://example.invalid/feed'
assert ... | 2021-10-25T22:15:06+00:00Z | Handle relative RSS URLs correctly
Blogs that have a relative URL for their RSS/Atom feeds are not being followed correctly. Take, for example, a blog with the url `https://blog.example.com`. Then if that blog's RSS feed is relative, such as `feed/rss` then RSS Discovery Engine does not look for the feed at `https://b... | Fixed by #22 | 0.0.1-alpha | 39fccbe0c7995227c10ed5d69b78b6f50f24eb9e | ["tests.test_helpers::test_add_protocol_urlprefix"] | ["tests.test_helpers::test_build_possible_rss_url", "tests.test_helpers::test_is_feed_content_type[application/rss-True]", "tests.test_helpers::test_is_feed_content_type[application/rss; charset=UTF-8-True]", "tests.test_helpers::test_is_feed_content_type[application/atom-True]", "tests.test_helpers::test_is_feed_conte... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
vzhd1701__evernote-backup-129 | vzhd1701/evernote-backup | 6e0f9835bf7c3ba1ed871b3e52b55cfede9c8f81 | diff --git a/evernote_backup/cli.py b/evernote_backup/cli.py
index aaa3f19..8176196 100644
--- a/evernote_backup/cli.py
+++ b/evernote_backup/cli.py
@@ -62,7 +62,7 @@ opt_token_one_off = click.option(
"-t",
help=(
"Manually provide authentication token to use with Evernote API."
- " (Used only... | python | diff --git a/tests/conftest.py b/tests/conftest.py
index 2f0ba2c..ea9852c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -70,6 +70,9 @@ class FakeEvernoteValues:
self.fake_auth_twofactor_unexpected_error = False
self.fake_auth_linked_notebook_error = False
+ self.fake_auth_used_api... | 2025-04-17T13:51:22+00:00Z | [Feature request]: 🔑 Accept custom Evernote API keys
### Suggestion
Some users would like to use their own Evernote API key ("Consumer key" and "Consumer secret") to run `evernote-backup`. The current API_DATA_OAUTH is hard-coded, but can be manually replaced in `config.py`. Possible alternatives could be checking f... | Awesome! 😄 Thank you! | 0.0.1-alpha | 4edd04ea707c6401b6fb857ce980c6623ce08f1e | ["tests.test_cli_app_util::test_unscrambler"] | ["tests.test_cli_app::test_cli_log_file", "tests.test_cli_app::test_cli_main_import", "tests.test_cli_app_util::test_natural_order_group", "tests.test_cli_app_util::test_cli_test_tty[10-0:10]", "tests.test_cli_app_util::test_cli_test_tty[65-01:05]", "tests.test_cli_app_util::test_cli_test_tty[3605-01:00:05]", "tests.te... | ["tests.test_cli_app::test_cli_quiet[True-50]", "tests.test_cli_app::test_cli_quiet[False-20]", "tests.test_cli_app::test_cli_verbose[True-10]", "tests.test_cli_app::test_cli_verbose[False-20]", "tests.test_cli_app::test_cli_test_tty[False-%(asctime)s | %(levelname)s | %(message)s-CRITICAL | test error]", "tests.test_c... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
microsoft__lsprotocol-270 | microsoft/lsprotocol | d9cd5f26eb438c6324031110536698813fe6f081 | diff --git a/packages/python/lsprotocol/_hooks.py b/packages/python/lsprotocol/_hooks.py
index 2a6a44d..dbd51f9 100644
--- a/packages/python/lsprotocol/_hooks.py
+++ b/packages/python/lsprotocol/_hooks.py
@@ -146,6 +146,11 @@ def _register_capabilities_hooks(converter: cattrs.Converter) -> cattrs.Converte
... | python | diff --git a/tests/python/test_cattrs_special_cases.py b/tests/python/test_cattrs_special_cases.py
index ac52650..c5e0e9c 100644
--- a/tests/python/test_cattrs_special_cases.py
+++ b/tests/python/test_cattrs_special_cases.py
@@ -1,6 +1,9 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... | 2023-09-15T03:22:34+00:00Z | `PositionEncodingKind` hook
Does this `cattrs` hook need to be added?
```python
converter.register_structure_hook(
Union[PositionEncodingKind, str, None], lambda obj, _: obj
)
```
I'm adding support for LSP 3.17's position encoding negotiation in Pygls and I was getting errors during server initialisation.... | Yes, this likely needs a hook. It should go in this file:
https://github.com/microsoft/lsprotocol/blob/main/packages/python/lsprotocol/_hooks.py
Example hook here:
Hook def: https://github.com/microsoft/lsprotocol/blob/main/packages/python/lsprotocol/_hooks.py#L194-L201
Add it here: https://github.com/microsoft/l... | 0.0.1-alpha | 7ef85230e6c4a48a2e3ebfee65ac3f92eda8a185 | ["tests.python.test_cattrs_special_cases::test_position_encoding_kind[None]", "tests.python.test_cattrs_special_cases::test_position_encoding_kind[utf-8]", "tests.python.test_cattrs_special_cases::test_position_encoding_kind[utf-16]", "tests.python.test_cattrs_special_cases::test_position_encoding_kind[utf-32]", "tests... | ["tests.generator.test_model::test_model_loading", "tests.generator.test_model::test_model_loading_failure", "tests.generator.test_schema::test_validate_with_schema", "tests.python.test_cattrs_special_cases::test_simple", "tests.python.test_cattrs_special_cases::test_numeric_validation", "tests.python.test_cattrs_speci... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mwaskom__seaborn-3171 | mwaskom/seaborn | feb59d250ea92ef143f5aef50ff6e18869affa7f | diff --git a/doc/whatsnew/v0.12.2.rst b/doc/whatsnew/v0.12.2.rst
index 18c7083..da1d8b8 100644
--- a/doc/whatsnew/v0.12.2.rst
+++ b/doc/whatsnew/v0.12.2.rst
@@ -7,3 +7,5 @@ v0.12.2 (Unreleased)
- |Enhancement| Automatic mark widths are now calculated separately for unshared facet axes (:pr:`3119`).
- |Fix| Fixed a ... | python | diff --git a/tests/test_distributions.py b/tests/test_distributions.py
index f881969..78cd5fe 100644
--- a/tests/test_distributions.py
+++ b/tests/test_distributions.py
@@ -1757,6 +1757,14 @@ class TestHistPlotUnivariate(SharedAxesLevelTests):
x_max = np.log([b.get_x() + b.get_width() for b in ax.patches])
... | 2022-12-04T17:05:19+00:00Z | `histplot` does not work well when using both `kde` and `log_scale`
In seaborn v 12.1, when using both kde and log_scale options with `histplot`, the kde plot values do not scale correctly. See the result of example here:
sns.histplot(np.random.normal(loc=10, scale=1, size=1000), kde=True, log_scale=True
!... | 0.0.1-alpha | ba786bc14eb255f6b4fb7619c8210c5a8016a26f | ["tests.test_distributions.TestHistPlotUnivariate::test_log_scale_kde"] | ["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"
} | ||
okta__okta-sdk-python-218 | okta/okta-sdk-python | 1e42f9a01980208ce90c4c80238ccd0c22c42bd7 | diff --git a/okta/api_response.py b/okta/api_response.py
index 555f6cb..13321f8 100644
--- a/okta/api_response.py
+++ b/okta/api_response.py
@@ -14,6 +14,7 @@ class OktaAPIResponse():
data_type=None):
self._url = res_details.url
self._headers = req["headers"]
+ self._resp_head... | python | diff --git a/tests/unit/test_api_response.py b/tests/unit/test_api_response.py
index 9c6fff4..07d12a2 100644
--- a/tests/unit/test_api_response.py
+++ b/tests/unit/test_api_response.py
@@ -63,3 +63,24 @@ async def test_response_pagination_with_no_next(monkeypatch):
assert not result.has_next()
with pytest.rai... | 2021-07-23T06:24:26+00:00Z | Missing X-Rate-Limit-* headers in response
Hey,
I was trying to check the **X-Rate-Limit-*** rates during requests (because we have 2 APIs using the same Okta account and we want to be aware of it) but I saw that you replace the response headers with the request.
`OktaAPIResponse::__init__
self._headers = req["h... | @nimrodeli Thanks for posting this issue. Those headers are used for pagination, i.e. for the next request. But, I agree, this looks a bit weird and response headers aren't available. I'm thinking about adding attribute `_resp_headers` to `OktaAPIResponse` object. Will it work for you?
Yes, sounds good.
it will solve ... | 0.0.1-alpha | 42f56eef3c27057937d19030560c6aa5c1d35abd | ["tests.unit.test_api_response::test_response_headers"] | ["tests.integration.test_applications_it.TestApplicationsResource::test_create_bookmark_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_basic_auth_app", "tests.integration.test_applications_it.TestApplicationsResource::test_create_SWA_app", "tests.integration.test_applications_it.Tes... | ["tests.unit.test_client::test_constructor_custom_http_client_impl", "tests.unit.test_client::test_constructor_client_logging", "tests.unit.test_http_client::test_client_invalid_url", "tests.unit.test_sign_on_modes::test_known_sign_on_mode", "tests.unit.test_sign_on_modes::test_unknown_sign_on_mode", "tests.unit.test_s... | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
weaviate__weaviate-python-client-122 | weaviate/weaviate-python-client | 9b87b38dad5bac4b75934b12bee77930c97b304d | diff --git a/docs/changelog.rst b/docs/changelog.rst
index b2c9c69..2ed8981 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -9,6 +9,8 @@ This patch version fixes:
- | the bug when using double quotes(`"`) in `question` field in :meth:`~weaviate.gql.get.GetBuilder.with_ask`.
+- | the bug where `nearText... | python | diff --git a/test/gql/test_filter.py b/test/gql/test_filter.py
index 4d9d9c5..632fa60 100644
--- a/test/gql/test_filter.py
+++ b/test/gql/test_filter.py
@@ -289,7 +289,53 @@ class TestNearText(unittest.TestCase):
}
}
)
- self.assertEqual(str(near_text), 'nearText: {concepts... | 2022-05-18T09:43:03+00:00Z | BUG: `nearText` filter checks for `objects` in `moveXXX` clause, but never sets it | 0.0.1-alpha | c95c4a3544e93d2ac49981dd580dcf11f8883bec | ["test.gql.test_get.TestGetBuilder::test_build", "test.gql.test_get.TestGetBuilder::test_build_with_near_text", "test.gql.test_filter.TestNearText::test___str__"] | ["test.batch.test_crud_batch.TestBatch::test_add_data_object", "test.batch.test_crud_batch.TestBatch::test_add_reference", "test.batch.test_crud_batch.TestBatch::test_auto_create", "test.batch.test_crud_batch.TestBatch::test_batch_size", "test.batch.test_crud_batch.TestBatch::test_configure_call", "test.batch.test_crud... | ["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"
} | ||
python-lsp__python-lsp-ruff-55 | python-lsp/python-lsp-ruff | 9ba6e5117afec1913e2b39278554fcef5749d595 | diff --git a/README.md b/README.md
index 71f02ea..ec7a5bc 100644
--- a/README.md
+++ b/README.md
@@ -50,6 +50,12 @@ lspconfig.pylsp.setup {
}
```
+## Code actions
+
+`python-lsp-ruff` supports code actions as given by possible fixes by `ruff`. `python-lsp-ruff` also supports [unsafe fixes](https://docs.astral.sh/ru... | python | diff --git a/tests/test_code_actions.py b/tests/test_code_actions.py
index 063b536..acfb160 100644
--- a/tests/test_code_actions.py
+++ b/tests/test_code_actions.py
@@ -45,7 +45,7 @@ import_str = dedent(
codeactions = [
"Ruff (F401): Remove unused import: `os`",
"Ruff (F401): Disable for this line",
- "Ru... | 2023-11-25T12:14:51+00:00Z | Suggestion on code actions for unsafe rules
With the introduction of the `unsafe` auto-fixes in ruff, I feel having a single toggle in pylsp for enabling/disabling them are quite too inefficient or "too safe", as either make all unsafe fixes disappear, or making the `Fix all`-code action quite unsafe in nature
My i... | I was also fiddling with the idea of adding `(unsafe)` to any unsafe code action.
I don't like the idea however of `Fix all` not actually performing *all* possible fixes.
Consider also this example:
```python
def f():
a = t # F821: Undefined name `t`
a = 2 # F841: Local variable `a` is assigned but neve... | 0.0.1-alpha | eff74e17eeb63104eceecdf11119c99d48dca1e6 | ["tests.test_code_actions::test_ruff_code_actions"] | ["tests.test_code_actions::test_import_action", "tests.test_code_actions::test_fix_all", "tests.test_code_actions::test_format_document_default_settings", "tests.test_code_actions::test_format_document_settings", "tests.test_ruff_lint::test_ruff_unsaved", "tests.test_ruff_lint::test_ruff_lint", "tests.test_ruff_lint::t... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
zy7y__dfs-generate-68 | zy7y/dfs-generate | 3b884c2c823933068e17a004797f7389e8fcd1d0 | diff --git a/dfs_generate/server.py b/dfs_generate/server.py
index 91f6c3f..36705fc 100644
--- a/dfs_generate/server.py
+++ b/dfs_generate/server.py
@@ -1,16 +1,15 @@
import os
-from typing import Dict
import bottle
import isort
from yapf.yapflib.yapf_api import FormatCode
from dfs_generate.conversion import S... | python | diff --git a/tests/test_tools.py b/tests/test_tools.py
index 045bfc5..e5ed129 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -49,7 +49,7 @@ def test_mysqlconf_get_db_uri():
host="localhost", user="test_user", password="secure_pwd", db="test_db"
)
assert (
- conf.get_db_uri()
+ ... | 2024-06-01T01:58:03+00:00Z | 每次打开软件都会弹出数据库配置,但是不会记住上次配置,每次都要输入 | > _No description provided._
#62
将随v0.2.6发布;
* linux下会在`~/.cache/dfs-generate` 目录下存储
* windows下会在`%LOCALAPPDATA%/dfs-generate`目录下存储
* 从未配置连接时将弹窗,后续默认使用最新(上次)连接
> 将随v0.2.6发布;
>
> * linux下会在`~/.cache/dfs-generate` 目录下存储
> * windows下会在`%LOCALAPPDATA%/dfs-generate`目录下存储
> * 从未配置连接时将弹窗,后续默认使用最新(上次)连接
已发布 ht... | 0.0.1-alpha | 6dd205c2c5ac1c61c755db4a53f36a3d06f596ec | ["tests.test_tools::test_mysqlconf_get_db_uri"] | ["tests.test_conversion::test_conversion_initialization", "tests.test_conversion::test_sqlmodel_conversion_model", "tests.test_conversion::test_tortoise_conversion_model", "tests.test_conversion::test_pydantic_field", "tests.test_conversion::test_sqlmodel_field_repr", "tests.test_conversion::test_tortoise_field_repr", ... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
scottstanie__sentineleof-6 | scottstanie/sentineleof | 59aba730a2f07bba25351abe51017bdaa4085c10 | diff --git a/eof/cli.py b/eof/cli.py
index e5a2432..948c96c 100644
--- a/eof/cli.py
+++ b/eof/cli.py
@@ -35,7 +35,13 @@ from eof import log
type=click.Choice(["S1A", "S1B"]),
help="Optionally specify Sentinel satellite to download (default: gets both S1A and S1B)",
)
-def cli(search_path, save_dir, sentinel_... | python | diff --git a/eof/tests/test_eof.py b/eof/tests/test_eof.py
index e89c9be..6ac9b68 100644
--- a/eof/tests/test_eof.py
+++ b/eof/tests/test_eof.py
@@ -159,4 +159,5 @@ class TestEOF(unittest.TestCase):
orbit_dts=["20200101"],
sentinel_file=None,
save_dir=",",
+ use_scihub=... | 2021-05-25T19:14:47+00:00Z | https://qc.sentinel1.eo.esa.int discontinued
The old S1-QC site has been discontinued.
The alternative service https://qc.sentinel1.copernicus.eu should have the same API but it seems that currently it does not provided orbit files.
The recommended alternative is https://scihub.copernicus.eu/gnss which has a diff... | oof, thanks for pointing this out, hadn't seen that it was down.
The QC website you linked seems to also have a link to http://aux.sentinel1.eo.esa.int, which does have recent orbit files (e.g. http://aux.sentinel1.eo.esa.int/POEORB/2021/03/04/ )
Do you know of any reason not to use this one? I looked at the PyroS... | 0.0.1-alpha | e2ea0609ed032d729c7da54c5af95c94442bd2fb | ["eof.tests.test_eof.TestEOF::test_mission"] | ["eof.tests.test_eof.TestEOF::test_download_eofs_errors", "eof.tests.test_eof.TestEOF::test_find_scenes_to_download", "eof.tests.test_eof.TestEOF::test_main_error_args", "eof.tests.test_eof.TestEOF::test_main_nothing_found"] | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mwaskom__seaborn-1027 | mwaskom/seaborn | 242a3312b6742f5b255c7ad6bccb7228839c9419 | diff --git a/doc/_docstrings/countplot.ipynb b/doc/_docstrings/countplot.ipynb
index 38b122b..5eabcf0 100644
--- a/doc/_docstrings/countplot.ipynb
+++ b/doc/_docstrings/countplot.ipynb
@@ -4,19 +4,24 @@
"cell_type": "code",
"execution_count": null,
"id": "2fdf0f63-d515-4cb8-b3e0-62cac7852b12",
- "metadata... | python | diff --git a/tests/test_categorical.py b/tests/test_categorical.py
index b65f030..22d932f 100644
--- a/tests/test_categorical.py
+++ b/tests/test_categorical.py
@@ -26,10 +26,11 @@ from seaborn.categorical import (
_CategoricalPlotterNew,
Beeswarm,
catplot,
- stripplot,
- swarmplot,
barplot,
+... | 2023-02-18T23:31:22+00:00Z | Add percentages instead of counts to countplot
Hello,
I would like to make a proposal - could we add an option to a countplot which would allow to instead displaying counts display percentages/frequencies? Thanks
| As of v0.13, normalization is built directly into `countplot`:
```python
sns.countplot(diamonds, x="cut", stat="percent") # or "proportion"
```
<img width=400 src=https://user-images.githubusercontent.com/315810/219878755-b605447a-48fa-457a-bc1a-7859c6b9ac45.png />
The recommendation is otherwise to use [`his... | 0.0.1-alpha | 3a778baab571e11aebcca82ef4d2c3ba41798e5b | ["tests.test_categorical.TestCountPlot::test_empty", "tests.test_categorical.TestCountPlot::test_labels_long", "tests.test_categorical.TestCountPlot::test_flat_series", "tests.test_categorical.TestCountPlot::test_hue_redundant", "tests.test_categorical.TestCountPlot::test_stat[percent]", "tests.test_categorical.TestCou... | ["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"
} | |
nteract__testbook-143 | nteract/testbook | 88fe2289f16047c37008e2efbf42b6a7421c284f | diff --git a/testbook/testbook.py b/testbook/testbook.py
index 904a745..e9d5fd2 100644
--- a/testbook/testbook.py
+++ b/testbook/testbook.py
@@ -60,7 +60,7 @@ class testbook:
def wrapper(*args, **kwargs): # pragma: no cover
with self.client.setup_kernel():
self._prepare()
- ... | python | diff --git a/testbook/tests/test_testbook.py b/testbook/tests/test_testbook.py
index a05ec67..8247b09 100644
--- a/testbook/tests/test_testbook.py
+++ b/testbook/tests/test_testbook.py
@@ -68,3 +68,11 @@ def test_testbook_with_notebook_node():
with testbook(nb) as tb:
assert tb.code_cells_executed == 0
... | 2022-08-12T17:58:32+00:00Z | Return value as None from testbook function
I am writing a code for auto-grading my notebook based on the **test_stdout()** example. It successfully checks the conditions as defined by `tb.cell_output_text()` but when I perform some basic operations the return value is None is what I get, instead of the variable that ... | Hi @ranjiGT! Thanks for raising this bug! This was a simple fix, and I'll be raising a PR soon. :)
Meanwhile, you could consider using the `with testbook(..) as tb` pattern instead of the decorator pattern.
```python
from testbook import testbook
def test_stdout(tb):
cells = [7, 13, 17, 21]
score = ... | 0.0.1-alpha | e2ae899930c30756e4b7db285d150dde1eacc9a1 | ["testbook.tests.test_testbook::test_function_with_testbook_decorator_returns_value"] | ["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"
} | |
spilchen__yahoo_fantasy_api-55 | spilchen/yahoo_fantasy_api | 4060127a9761ce01323c68c31b325b4cc5dd42e1 | diff --git a/setup.py b/setup.py
index 5b591ce..8ea83a5 100755
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ def readme():
setup(name='yahoo_fantasy_api',
- version='2.10.0',
+ version='2.10.1',
description='Python bindings to access the Yahoo! Fantasy APIs',
long_description=readme(),
... | python | diff --git a/yahoo_fantasy_api/tests/conftest.py b/yahoo_fantasy_api/tests/conftest.py
index 465ae64..5e3db46 100644
--- a/yahoo_fantasy_api/tests/conftest.py
+++ b/yahoo_fantasy_api/tests/conftest.py
@@ -14,22 +14,19 @@ def sc():
@pytest.fixture()
def mock_mlb_league(sc):
- lg = yfa.League(sc, '370.l.56877')
- ... | 2025-02-02T11:42:09+00:00Z | Stat ID Map Not Populated in League Resource
It seems like it would make sense for a `League` to have its `stats_id_map` property populated upon initialization. That is, after a call to `yahoo_fantasy_api.League(oauth, '{{league_id}}')`. This is not currently the case, and instead, a call to `League.stats_id_map` retu... | @spilchen I would agree here. We should be populating everything possible with the initial call. I can get a PR going for this if you like.
Yeah, I agree. This makes sense to do. | 0.0.1-alpha | 72be91e964e343917e04f9809e21e523cc3607ba | ["yahoo_fantasy_api.tests.test_league::test_standings", "yahoo_fantasy_api.tests.test_league::test_settings", "yahoo_fantasy_api.tests.test_league::test_stat_categories", "yahoo_fantasy_api.tests.test_league::test_to_team", "yahoo_fantasy_api.tests.test_league::test_team_key", "yahoo_fantasy_api.tests.test_league::test... | ["yahoo_fantasy_api.tests.test_game::test_ids", "yahoo_fantasy_api.tests.test_game::test_ids_for_year", "yahoo_fantasy_api.tests.test_game::test_to_league", "yahoo_fantasy_api.tests.test_game::test_game_id", "yahoo_fantasy_api.tests.test_team::test_matchup", "yahoo_fantasy_api.tests.test_team::test_roster", "yahoo_fant... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
microsoft__fabric-cicd-477 | microsoft/fabric-cicd | 02ee40dbe82ed3b03a6bca8030f61cae0b493078 | diff --git a/docs/config/pre-build/update_item_types.py b/docs/config/pre-build/update_item_types.py
index f8b0c5b..1cb7435 100644
--- a/docs/config/pre-build/update_item_types.py
+++ b/docs/config/pre-build/update_item_types.py
@@ -12,7 +12,7 @@ def on_page_markdown(markdown, **kwargs):
start_index = markdown... | python | diff --git a/tests/test_fabric_workspace.py b/tests/test_fabric_workspace.py
index df84201..dd57cc9 100644
--- a/tests/test_fabric_workspace.py
+++ b/tests/test_fabric_workspace.py
@@ -850,7 +850,7 @@ def test_fabric_workspace_with_none_item_types_defaults_to_all(
# Verify that item_type_in_scope was expanded to a... | 2025-08-13T20:18:36+00:00Z | Eliminate ACCEPTED_ITEM_TYPES_NON_UPN
### What is the problem?
Currently there are two constants, ACCEPTED_ITEM_TYPES_UPN and ACCEPTED_ITEM_TYPES_NON_UPN whereas we don't actually need both since once equals the other.
### Is there an ideal solution?
Eliminate both and create a new constant called ACCEPTED_ITEM_T... | 0.0.1-alpha | 99abc216450239d916e4faab9166b12c4999be4c | ["tests.test_fabric_workspace::test_fabric_workspace_with_none_item_types_defaults_to_all", "tests.test_publish::test_default_none_item_type_in_scope_includes_all_types"] | ["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"
} | ||
pappasam__jedi-language-server-336 | pappasam/jedi-language-server | d5bb10f861cacd1a0af4f9ecc616f8b058187445 | diff --git a/README.md b/README.md
index c32ca90..97683de 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,9 @@ See: <https://github.com/pappasam/jedi-language-server/issues/50#issuecomment-78
"ignoreFolders": [".nox", ".tox", ".venv", "__pycache__", "venv"],
"maxSymbols": 20
}
+ },
+ ... | python | diff --git a/tests/lsp_test_client/session.py b/tests/lsp_test_client/session.py
index 9db18e4..962509d 100644
--- a/tests/lsp_test_client/session.py
+++ b/tests/lsp_test_client/session.py
@@ -191,6 +191,21 @@ class LspSession(MethodDispatcher):
)
return fut.result()
+ def text_doc_semantic_token... | 2025-04-18T19:28:48+00:00Z | Semantic highlighting support
I am trying to use `jedi-language-server` in vscode. With default `pylance` I get semantic highlight but not with `jedi`. Is it possible to add semantic highlighting please? | This was attempted in the past. I'm open to PR's!
https://github.com/pappasam/jedi-language-server/pull/231
Initial support for this has been merged, and released!
Excellent! For vscode users, does this need a new release of vscode before it will percolate through?
edit: I have set `"python.languageServer": "Jedi"` a... | 0.0.1-alpha | bc121950813a3647c02c8f50f46384a1cb82dac8 | ["tests.lsp_tests.test_semantic_tokens::test_semantic_tokens_full_import", "tests.lsp_tests.test_semantic_tokens::test_semantic_tokens_full_import_from", "tests.lsp_tests.test_semantic_tokens::test_semantic_tokens_range_import_from"] | ["tests.lsp_tests.test_completion::test_lsp_completion", "tests.lsp_tests.test_completion::test_eager_lsp_completion", "tests.lsp_tests.test_completion::test_lsp_completion_class_method", "tests.lsp_tests.test_completion::test_lsp_completion_class_noargs", "tests.lsp_tests.test_completion::test_lsp_completion_notebook"... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
radam9__bookmarks-converter-211 | radam9/bookmarks-converter | 88fc8f9ba0d252c6d0617dc06632054c6b0373fb | diff --git a/src/bookmarks_converter/converters/firefox.py b/src/bookmarks_converter/converters/firefox.py
index e3e54f0..3ce60fb 100644
--- a/src/bookmarks_converter/converters/firefox.py
+++ b/src/bookmarks_converter/converters/firefox.py
@@ -24,6 +24,7 @@ from bookmarks_converter.util import format_html, indent_html... | python | diff --git a/tests/conftest.py b/tests/conftest.py
index d947287..d5c939f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -11,6 +11,7 @@ TEST_ROOT_DIR = Path(__file__).resolve().parent
DATA_DIR = TEST_ROOT_DIR.joinpath("resources")
TEST_FILE_FIREFOX_JSON = DATA_DIR.joinpath("bookmarks_firefox.json")
+TEST... | 2025-08-19T16:48:51+00:00Z | Improvement: Allow firefox separators, json with them and the json read fails
Trying to convert from filefox json to a html format.
If the json input from firefox contains separators, it fails on read.
Those blocks are similiar to this snippet:
```JSON
{
"guid": "xR43PyxpcwiZ",
"title": "",
"index": 17,
... | Hey @FieldOfRice
Thanks for the info.
I have just fixed it and released a new version.
If i feed the *.html i got from the new version into a python "print()", that result was successfully imported into chrome.
The saved *.html starts like this: "<!DOCTYPE...\"...\n,..."
Because i had to use save_html instead of save... | 0.0.1-alpha | 6ef582462287193115ffece04aa228ef0cb242e9 | ["tests.test_firefox.TestFirefox::test_from_json[file_path1]", "tests.test_firefox.TestFirefox::test_json_to_object_folder[normal_folder]", "tests.test_firefox.TestFirefox::test_json_to_object_folder[root_folder]", "tests.test_firefox.TestFirefox::test_json_to_object_folder[menu_folder]", "tests.test_firefox.TestFirefo... | ["tests.test_bookmarkie.TestBookmarkie::test_as_db", "tests.test_bookmarkie.TestBookmarkie::test_folder_as_dbfolder[normal_folder]", "tests.test_bookmarkie.TestBookmarkie::test_folder_as_dbfolder[root_folder]", "tests.test_bookmarkie.TestBookmarkie::test_folder_as_dbfolder[menu_folder]", "tests.test_bookmarkie.TestBook... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
python-lsp__python-lsp-ruff-53 | python-lsp/python-lsp-ruff | eff74e17eeb63104eceecdf11119c99d48dca1e6 | diff --git a/README.md b/README.md
index ec7a5bc..80cd40a 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ the valid configuration keys:
- `pylsp.plugins.ruff.perFileIgnores`: File-specific error codes to be ignored.
- `pylsp.plugins.ruff.select`: List of error codes to enable.
- `pylsp.plugins.ruff.exten... | python | diff --git a/tests/test_code_actions.py b/tests/test_code_actions.py
index acfb160..f304e7a 100644
--- a/tests/test_code_actions.py
+++ b/tests/test_code_actions.py
@@ -150,37 +150,3 @@ def test_fix_all(workspace):
settings = ruff_lint.load_settings(workspace, doc.path)
fixed_str = ruff_lint.run_ruff_fix(doc,... | 2023-11-25T12:43:56+00:00Z | Support `ruff format`
Hi, as far as I can see, the new ruff formatter comparable to black is not yet supported by this plugin. If I understand it correctly, the term "format" in the code of this repo relates to fixing errors. Would it be possible to add formatting (in the sense of black) as a new code action? | Hi, are you talking about this? https://github.com/astral-sh/ruff/blob/main/crates/ruff_python_formatter/README.md
I was not aware of this feature, but since it is in the `Alpha` state I would avoid adding this feature for now
Yes, that's exactly what I mean. As this will probably come up again sooner or later, one c... | 0.0.1-alpha | 9ff905cbd2f3b2670e65df3d18ee940948223bb9 | ["tests.test_ruff_format::test_ruff_format_only", "tests.test_ruff_format::test_ruff_format_and_sort_imports", "tests.test_ruff_lint::test_ruff_settings"] | ["tests.test_code_actions::test_ruff_code_actions", "tests.test_code_actions::test_import_action", "tests.test_code_actions::test_fix_all", "tests.test_ruff_lint::test_ruff_unsaved", "tests.test_ruff_lint::test_ruff_lint", "tests.test_ruff_lint::test_ruff_config_param", "tests.test_ruff_lint::test_ruff_executable_param... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
pyswmm__swmmio-172 | pyswmm/swmmio | 28f7ac2cce39547ce69a192a9ddcc15e81d0699d | diff --git a/swmmio/graphics/profiler.py b/swmmio/graphics/profiler.py
index 63ccdd0..319b05a 100644
--- a/swmmio/graphics/profiler.py
+++ b/swmmio/graphics/profiler.py
@@ -66,7 +66,10 @@ def build_profile_plot(ax, model, path_selection):
link_mid_x, link_mid_y = sum(ret['x'])/2.0, sum(ret['bottom'])/2.0
... | python | diff --git a/swmmio/tests/data/SWMMExtCntrlModel.inp b/swmmio/tests/data/SWMMExtCntrlModel.inp
new file mode 100644
index 0000000..9da247e
--- /dev/null
+++ b/swmmio/tests/data/SWMMExtCntrlModel.inp
@@ -0,0 +1,347 @@
+[TITLE]
+
+
+[OPTIONS]
+;;Options Value
+;;------------------ ------------
+FLOW_UNITS ... | 2023-01-04T20:29:15+00:00Z | add Profile Plot feature
## Simple

## Orifice

## Weir
 and re.match(
+
+ service_record = r"_" if rfc... | python | diff --git a/tests/test_domain.py b/tests/test_domain.py
index 21aadf9..6d8e867 100644
--- a/tests/test_domain.py
+++ b/tests/test_domain.py
@@ -20,6 +20,7 @@ from validators import ValidationError, domain
("3.cn.", True, False),
("_example.com", False, True),
("example_.com", False, True),
+... | 2024-04-19T01:28:48+00:00Z | Domain validator allows invalid characters in some cases
It appears that, currently, any character is valid for the final character in the gTLD if `rfc1034` is `True`, for example:
```
>>> domain('example.com?', rfc_1034=True, rfc_2782=False)
True
>>> domain('example.com!', rfc_1034=True, rfc_2782=False)
True
``... | Hey @hagenrd thanks! Do you mind reviewing: #367, before it's merged?
Thanks for the quick turnaround! Any chance you have some time to provide a patch that includes those changes?
https://patch-diff.githubusercontent.com/raw/python-validators/validators/pull/367.patch ?
Sorry, I meant patch in terms of a semantic ver... | 0.0.1-alpha | faed95127031aa49a172fe64dce79aafaf50823a | ["tests.test_domain::test_returns_failed_validation_on_invalid_domain[example.com!-True-False]", "tests.test_domain::test_returns_failed_validation_on_invalid_domain[__exa__mple__.com-False-True]"] | ["tests.i18n.test_es::test_returns_true_on_valid_cif[B25162520]", "tests.i18n.test_es::test_returns_true_on_valid_cif[U4839822F]", "tests.i18n.test_es::test_returns_true_on_valid_cif[B96817697]", "tests.i18n.test_es::test_returns_true_on_valid_cif[P7067074J]", "tests.i18n.test_es::test_returns_true_on_valid_cif[Q789970... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
netbox-community__pynetbox-240 | netbox-community/pynetbox | 33dccaa613def78595734f3498a56ae050a1553e | diff --git a/pynetbox/api.py b/pynetbox/api.py
index 5390ead..5ea5a43 100644
--- a/pynetbox/api.py
+++ b/pynetbox/api.py
@@ -141,3 +141,27 @@ class Api(object):
http_session=self.http_session,
).get_version()
return version
+
+ def openapi(self):
+ """ Returns the OpenAPI spec.
... | python | diff --git a/tests/unit/test_request.py b/tests/unit/test_request.py
new file mode 100644
index 0000000..5197586
--- /dev/null
+++ b/tests/unit/test_request.py
@@ -0,0 +1,22 @@
+import unittest
+
+import six
+
+from pynetbox.core.query import Request
+
+if six.PY3:
+ from unittest.mock import Mock
+else:
+ from m... | 2020-06-24T15:18:54+00:00Z | Query Parameters
Are we able to add a method to the `Request` object to fetch the available query_params from the Open API spec of NetBox?
URL: http://netbox/api/docs/?format=openapi" returns something along these lines:
```
openapi["paths"]["/dcim/devices/"]["get"]["parameters"]
```
This will help out in one... | Yeah that makes sense, long term goal is to eventually have a toggle to do validation against the openapi spec. So we'd need something in `Request` to build on anyways. | 0.0.1-alpha | c35aaf4e585bde8f0da51baab87c5831ca24317c | ["tests.unit.test_request.RequestTestCase::test_get_openapi"] | ["tests.test_dcim.ManufacturersTestCase::test_compare", "tests.test_dcim.ManufacturersTestCase::test_delete", "tests.test_dcim.ManufacturersTestCase::test_filter", "tests.test_dcim.ManufacturersTestCase::test_get", "tests.test_dcim.ManufacturersTestCase::test_get_all", "tests.test_dcim.ManufacturersTestCase::test_seria... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
wjohnson__pyapacheatlas-71 | wjohnson/pyapacheatlas | 84dcf26ea717cac10192c0bb1d8d84f8d6ff4961 | diff --git a/pyapacheatlas/readers/util.py b/pyapacheatlas/readers/util.py
index 2643bd1..d890ebc 100644
--- a/pyapacheatlas/readers/util.py
+++ b/pyapacheatlas/readers/util.py
@@ -11,7 +11,10 @@ def string_to_classification(string, sep=";"):
if string is None:
return []
# TODO: How do we bring in at... | python | diff --git a/tests/unit/readers/test_reader.py b/tests/unit/readers/test_reader.py
index fa8ccfa..6425816 100644
--- a/tests/unit/readers/test_reader.py
+++ b/tests/unit/readers/test_reader.py
@@ -39,6 +39,9 @@ def test_parse_bulk_entities():
assert(len(ghi["classifications"]) == 2)
assert(len(jkl["classifica... | 2021-01-29T14:46:51+00:00Z | Disable classification propagation when uploading entities
Currently, pyapacheatlas uploads entity classifications with the propagation attribute activated.
This is not convenient for all use cases. For instance, one would like to add a classification such as "manual_import" to differentiate, when browsing the catalo... | @fBedecarrats would you be able to share the excel template you were using? Or at least a few sample rows?
Hello and thanks for the quick feedback! The specifics of the data I'm using is a bit cryptic and somewhat confidential/sensitive, so I created a generic content with something simpler: [Example_lineage_01.xlsx](... | 0.0.1-alpha | 9283d74aff347183b9772d6a9c999d8c58957aac | ["tests.unit.readers.test_reader::test_parse_bulk_entities", "tests.unit.readers.test_table_column::test_column_lineage_entities_with_classifications"] | ["tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_list", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_dict", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_atlas_entity", "tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_mixed_atlas_en... | ["tests.integration.EntityREST.test_classify_entities::test_classify_entities", "tests.integration.EntityREST.test_entity_upload::test_set_relationship_different_ways", "tests.integration.TypesREST.test_upload::test_upload_typedef_with_mixed_classes", "tests.integration.test_purview::test_purview_client_integration", "... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
oceanbase__sql-lifecycle-management-59 | oceanbase/sql-lifecycle-management | 43fabb6ef6e99f99d1e5eba97f0d48529c2ba13b | diff --git a/src/common/db_decrypt_pswd.py b/src/common/db_decrypt_pswd.py
deleted file mode 100644
index 8fbc6d6..0000000
--- a/src/common/db_decrypt_pswd.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# coding=utf-8
-"""
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compl... | python | diff --git a/test/common/test_db_decrype_pswd.py b/test/common/test_db_decrype_pswd.py
deleted file mode 100644
index aa83981..0000000
--- a/test/common/test_db_decrype_pswd.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/python3
-# -*- coding: utf-8 -*-
-
-import unittest
-
-from src.common.db_decrypt_pswd import decryp... | 2023-06-29T06:54:35+00:00Z | [Bug]: parser_error
``` sql
select t2.biz_date as biz_date, f1.calculate_field / t2.calculate_field1 as 1d_remain_rate from ( select t1.biz_date as biz_date , count(DISTINCT if(t1.biz_date_is_visit = '1', t1.user_id, null)) as calculate_field1 from ( select * from pets_user_miaowa_galileo_visit_user_di ) t1 where t1.... | 0.0.1-alpha | 35f87e578724c284ba9184263ad5c4690237e83a | ["test.parser.test_parser_dml.MyTestCase::test_as", "test.parser.test_parser_dml.MyTestCase::test_date_add"] | ["test.consume.test_mysql_slowlog_parse.MyTestCase::test_antgroup_56", "test.consume.test_mysql_slowlog_parse.MyTestCase::test_community_57", "test.parser.test_parser_dml.MyTestCase::test_boolean_expression", "test.parser.test_parser_dml.MyTestCase::test_chinese_character", "test.parser.test_parser_dml.MyTestCase::test... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
redcanaryco__surveyor-112 | redcanaryco/surveyor | 1c353b500e8937c95ae33c98fa0d34b0f18bdb3e | diff --git a/README.md b/README.md
index 296b21c..0f1c4be 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Surveyor is a Python utility that queries Endpoint Detection and Response (EDR)
products and summarizes the results. Security and IT teams can use Surveyor to
baseline their environments and identify abnor... | python | diff --git a/tests/data/cortex_surveyor_testing.json b/tests/data/cortex_surveyor_testing.json
new file mode 100644
index 0000000..04aea81
--- /dev/null
+++ b/tests/data/cortex_surveyor_testing.json
@@ -0,0 +1,25 @@
+{
+ "field_translation":{
+ "process_name":["cmd.exe"],
+ "ipaddr":["8.8.8.8"],
+ "cmdline":[... | 2023-07-11T13:42:10+00:00Z | [FR] Unit Tests for Cortex XDR
## Which category is the feature part of?
- [ ] Definition File
- [ ] Code/Logic Feature
- [x] Other (please explain) - Unit Test
## Which product is the feature part of?
- [ ] All Products
- [ ] Carbon Black Response
- [ ] Carbon Black Threat Hunter
- [ ] Defender for Endpoin... | 0.0.1-alpha | 812314df4020cb88e564f241b07cf11c71976e04 | ["tests.test_cortex_xdr::test_build_query_with_supported_field", "tests.test_cortex_xdr::test_process_search", "tests.test_cortex_xdr::test_nested_process_search", "tests.test_cortex_xdr::test_nested_process_search_unsupported_field"] | ["tests.test_cortex_xdr::test_build_query_with_days", "tests.test_cortex_xdr::test_build_query_with_min", "tests.test_cortex_xdr::test_build_query_with_unsupported_field", "tests.test_microsoft_defender_for_endpoints::test_build_query_with_supported_fields", "tests.test_sentinel_one::test_build_query_with_supported_fie... | ["tests.test_cortex_xdr::test_init_lower_limit_option", "tests.test_cortex_xdr::test_init_upper_limit_option", "tests.test_cortex_xdr::test_init_limit_option", "tests.test_cortex_xdr::test_process_queries_full_query", "tests.test_cortex_xdr::test_process_queries_query_parameter", "tests.test_microsoft_defender_for_endp... | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
simonw__sqlite-migrate-9 | simonw/sqlite-migrate | f47bcd048d1986a51118c030d56225a15cc16d0f | diff --git a/README.md b/README.md
index 2257702..3d90f0f 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,11 @@ You can also pass the path to a directory, in which case all `migrations.py` fil
```bash
sqlite-utils migrate creatures.db path/to/parent/
```
+When applying a single migrations file you can use the `-... | python | diff --git a/tests/test_sqlite_migrate.py b/tests/test_sqlite_migrate.py
index 63e4924..84ef100 100644
--- a/tests/test_sqlite_migrate.py
+++ b/tests/test_sqlite_migrate.py
@@ -1,10 +1,10 @@
from sqlite_migrate import Migrations
import sqlite_utils
+import pytest
-def test_basic():
- db = sqlite_utils.Database... | 2023-09-03T17:26:17+00:00Z | Ability to apply migrations up to a point
In writing a test for a migration for this issue:
- https://github.com/simonw/llm/issues/217
I realized I wanted to apply migrations up to a specific point, then run some test code, then apply the rest.
I think `.apply()` should take an optional second argument, `stop_b... | 0.0.1-alpha | 0c4fbd80dc5302bd83703c112267f51ca9577438 | ["tests.test_sqlite_migrate::test_stop_before", "tests.test_sqlite_utils_migrate_command::test_stop_before", "tests.test_sqlite_utils_migrate_command::test_stop_before_error"] | ["tests.test_sqlite_migrate::test_basic", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR/foo/migrations.py]", "tests.test_sqlite_utils_migrate_command::test_basic[TMPDIR/foo/]", "tests.test_sqlite_utils_migrate_command::test_verbose"] | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | ||
mwaskom__seaborn-3024 | mwaskom/seaborn | f033f5da0631726fba7bb598dfcaf18e40e70c04 | diff --git a/doc/_docstrings/objects.Band.ipynb b/doc/_docstrings/objects.Band.ipynb
index 5419a19..bcd1975 100644
--- a/doc/_docstrings/objects.Band.ipynb
+++ b/doc/_docstrings/objects.Band.ipynb
@@ -13,7 +13,7 @@
"source": [
"import seaborn.objects as so\n",
"from seaborn import load_dataset\n",
- "f... | python | diff --git a/tests/_marks/test_area.py b/tests/_marks/test_area.py
index d55a6c7..d725e15 100644
--- a/tests/_marks/test_area.py
+++ b/tests/_marks/test_area.py
@@ -8,7 +8,7 @@ from seaborn._core.plot import Plot
from seaborn._marks.area import Area, Band
-class TestAreaMarks:
+class TestArea:
def test_sing... | 2022-10-08T14:41:11+00:00Z | Consider having range mark derive min/max from data when not given
Marks that are based on min/max (i.e. Range or Band) assume that `{var}min`/`{var}max` variables are present. (Currently they fail with a pretty unhelpful error if not present, which we should generally fix). If those variables are not present, should ... | 0.0.1-alpha | 6d6f8d3b520317deba21cab0ed1f44f1cac36bcb | ["tests._marks.test_area.TestBand::test_auto_range", "tests._marks.test_line.TestRange::test_auto_range"] | ["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"
} | ||
mapping-commons__sssom-py-566 | mapping-commons/sssom-py | 02d60054d4fe2dfe416e728937397dd861486734 | diff --git a/src/sssom/parsers.py b/src/sssom/parsers.py
index 81a5b37..52cc1e9 100644
--- a/src/sssom/parsers.py
+++ b/src/sssom/parsers.py
@@ -121,7 +121,11 @@ def _separate_metadata_and_table_from_stream(s: io.StringIO):
if header_section:
header_section = False
elif header_sec... | python | diff --git a/tests/data/trailing-tabs.sssom.tsv b/tests/data/trailing-tabs.sssom.tsv
new file mode 100644
index 0000000..b8f6de8
--- /dev/null
+++ b/tests/data/trailing-tabs.sssom.tsv
@@ -0,0 +1,21 @@
+#curie_map:
+# COMENT: https://example.com/entities/
+# COMPID: https://example.com/people/
+# OR... | 2024-12-13T17:19:48+00:00Z | SSSOM/TSV parser could ignore trailing tabs in embedded YAML header
When a SSSOM/TSV file containing an embedded YAML metadata header is modified in a standard spreadsheet editor (e.g. LibreOffice Calc, Microsoft Excel, or Apple Numbers), the editor, obviously unaware that lines starting with a `#` are comments, may t... | This is great, thank you!! | 0.0.1-alpha | 97b0039cd5e7fc50320a961209fe280a0e8a9363 | ["tests.test_parsers.TestParse::test_parse_trailing_tabs_in_metadata_header"] | ["tests.test_annotate.TestSort::test_annotate", "tests.test_annotate.TestSort::test_annotate_fail", "tests.test_annotate.TestSort::test_annotate_multivalued", "tests.test_cli.SSSOMCLITestSuite::test_cli_multiple_input", "tests.test_cli.SSSOMCLITestSuite::test_cli_single_input", "tests.test_collapse.TestCollapse::test_c... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
mwaskom__seaborn-2967 | mwaskom/seaborn | 85c8ed632a5e9ec45b7d69d89518bb784a6e05a5 | diff --git a/doc/whatsnew/v0.12.1.rst b/doc/whatsnew/v0.12.1.rst
index f1ed1bb..acf10d1 100644
--- a/doc/whatsnew/v0.12.1.rst
+++ b/doc/whatsnew/v0.12.1.rst
@@ -6,11 +6,13 @@ v0.12.1 (Unreleased)
- |Feature| Added the :class:`objects.Perc` stat (:pr:`3063`).
-- |Feature| The :class:`Band` and :class:`Range` marks ... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index 03a6491..e855aef 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -645,6 +645,28 @@ class TestScaling:
with pytest.raises(RuntimeError, match=err):
p.plot()
+ def test_nominal_x_axis_tweaks(self):
+
... | 2022-10-12T00:41:33+00:00Z | Nominal scale should be drawn the same way as categorical scales
Three distinctive things happen on the categorical axis in seaborn's categorical plots:
1. The scale is drawn to +/- 0.5 from the first and last tick, rather than using the normal margin logic
2. A grid is not shown, even when it otherwise would be w... | 0.0.1-alpha | a767d666d45a6f105177e4720669b85c92ee2432 | ["tests._core.test_plot.TestScaling::test_nominal_x_axis_tweaks", "tests._core.test_plot.TestScaling::test_nominal_y_axis_tweaks"] | ["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"
} | ||
tikitu__jsmin-35 | tikitu/jsmin | bb5410eff01296e067d5ab242b66f01ef300b018 | diff --git a/jsmin/test.py b/jsmin/test.py
index 74fbaad..173ac65 100644
--- a/jsmin/test.py
+++ b/jsmin/test.py
@@ -592,15 +592,7 @@ console.log('hello!');}/*! Copyright blah blah
class RegexTests(unittest.TestCase):
def regex_recognise(self, js):
- if not jsmin.is_3:
- if jsmin.cStringIO and... | python | 2021-09-20T19:11:30+00:00Z | Tests broken by 'is_3' removal
The tests are broken in the 3.0.0 release:
```
$ PYTHONPATH=. python jsmin/test.py
.....................................................................EEEEEEE
======================================================================
ERROR: test_character_class (__main__.RegexTests)... | can you do a patch release? seems weird to apply an a patch for a fix that was made 4 months ago
I've made a patch release, sorry for the inconvenience. | 0.0.1-alpha | ec5e3da27634a150faf5c0456bc84ec9c428120d | ["jsmin.test.RegexTests::test_character_class", "jsmin.test.RegexTests::test_character_class_with_slash", "jsmin.test.RegexTests::test_empty_character_class", "jsmin.test.RegexTests::test_escaped_back_slash", "jsmin.test.RegexTests::test_escaped_forward_slash", "jsmin.test.RegexTests::test_precedence_of_parens", "jsmin... | ["jsmin.test.JsTests::testBackticks", "jsmin.test.JsTests::testBackticksExpressions", "jsmin.test.JsTests::testBackticksTagged", "jsmin.test.JsTests::testBlockCommentEndingWithSlash", "jsmin.test.JsTests::testBlockCommentMultipleOpen", "jsmin.test.JsTests::testBlockCommentStartingWithSlash", "jsmin.test.JsTests::testCo... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
tmbo__questionary-442 | tmbo/questionary | 584f9ae0e10869179e179b02a83d5383c5779ad0 | diff --git a/questionary/prompts/checkbox.py b/questionary/prompts/checkbox.py
index 465892b..c49930e 100644
--- a/questionary/prompts/checkbox.py
+++ b/questionary/prompts/checkbox.py
@@ -41,6 +41,7 @@ def checkbox(
use_search_filter: Union[str, bool, None] = False,
instruction: Optional[str] = None,
sh... | python | diff --git a/tests/prompts/test_checkbox.py b/tests/prompts/test_checkbox.py
index 50da9bd..0c231e7 100644
--- a/tests/prompts/test_checkbox.py
+++ b/tests/prompts/test_checkbox.py
@@ -389,3 +389,21 @@ def test_select_filter_multiple_after_search():
**kwargs,
)
assert result == ["foo", "buzz"]
+
+def... | 2025-05-16T08:01:54+00:00Z | Add option to disable wrap-around navigation in checkbox prompt
### Describe the problem
Currently, the checkbox prompt in questionary allows navigation to wrap from the last item back to the first and vice versa. This behavior can be disorienting for users navigating long lists. In applications where a linear naviga... | I am working on this, will be implementing the solution, with cycle_list.
PR is merged 🎉 | 0.0.1-alpha | f6914425ed6abffb944af2842dc37ff1b6347e45 | ["tests.prompts.test_checkbox::test_does_not_wrap_down_when_cycle_list_false", "tests.prompts.test_checkbox::test_does_not_wrap_up_when_cycle_list_false"] | ["tests.prompts.test_autocomplete::test_autocomplete", "tests.prompts.test_autocomplete::test_no_choices_autocomplete", "tests.prompts.test_autocomplete::test_validate_autocomplete", "tests.prompts.test_autocomplete::test_use_tab_autocomplete", "tests.prompts.test_autocomplete::test_use_key_tab_autocomplete", "tests.pr... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
opensearch-project__opensearch-benchmark-543 | opensearch-project/opensearch-benchmark | 83040a95bfd79e23830db18bb503b582702f5bfa | diff --git a/osbenchmark/resources/workload-schema.json b/osbenchmark/resources/workload-schema.json
index 788fbf9..7d2102e 100644
--- a/osbenchmark/resources/workload-schema.json
+++ b/osbenchmark/resources/workload-schema.json
@@ -406,10 +406,34 @@
"format": "uri",
"description":... | python | diff --git a/tests/workload/loader_test.py b/tests/workload/loader_test.py
index 285e527..bff592b 100644
--- a/tests/workload/loader_test.py
+++ b/tests/workload/loader_test.py
@@ -863,6 +863,50 @@ class WorkloadPreparationTests(TestCase):
self.assertEqual(0, prepare_file_offset_table.call_count)
+class Wo... | 2024-10-05T00:59:19+00:00Z | Permit large data corpora to be downloaded from the workloads repository
### Description
CloudFront limits restrict the size of data corpus files that can be downloaded to 50 GB. Thus, in the case of the `big5` workload, for example, a corpus with an uncompressed size of 1 TB is currently not feasible, since the cor... | @gkamat can we share the approach for this?
This focuses on enabling OSB to download large compressed data corpora as separate chunks. Currently an index is associated with a single data corpus file and is restricted to the 50 GiB limit imposed by CloudFront. Permitting workloads to be able to specify multiple files ... | 0.0.1-alpha | 4609bfd1f70ad800f770d481537e8010ceb7bf89 | ["tests.workload.loader_test.WorkloadPreparationTests_1::test_download_document_file_from_part_files"] | ["tests.aggregator_test::test_iterations", "tests.aggregator_test::test_results", "tests.aggregator_test::test_aggregate_json_by_key", "tests.aggregator_test::test_calculate_weighted_average", "tests.aggregator_test::test_compatibility_check", "tests.aggregator_test::test_compatibility_check_incompatible", "tests.build... | [] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} | |
tusharsadhwani__zxpy-27 | tusharsadhwani/zxpy | 91eefd85549d3d9061967d070f23179d0c246857 | diff --git a/zx.py b/zx.py
index f69bc9a..99ee84f 100644
--- a/zx.py
+++ b/zx.py
@@ -201,9 +201,11 @@ class ShellRunner(ast.NodeTransformer):
return expr
def visit_Assign(self, assign: ast.Assign) -> ast.Assign:
+ # If there's more than one target on the left, assume 3-tuple
+ multiple_tar... | python | diff --git a/tests/test_files/returncode.py b/tests/test_files/returncode.py
index 33ec418..e8f79ac 100644
--- a/tests/test_files/returncode.py
+++ b/tests/test_files/returncode.py
@@ -4,3 +4,6 @@ assert return_code == 1
exit_code = 123
*_, return_code = ~f"exit {exit_code}"
assert return_code == exit_code
+
+[_, _,... | 2021-09-26T18:09:00+00:00Z | Support list unpacking for return codes
`[stdout, stderr, returncode] = ~'...'` | 0.0.1-alpha | 88185c672047726c2ed7366c62e81a946de41e0d | ["tests.zxpy_test::test_files[./tests/test_files/returncode.py]"] | ["tests.zxpy_test::test_shell_output[echo hello world-hello world]", "tests.zxpy_test::test_shell_output[ls | tail -6 | wc -l-6]", "tests.zxpy_test::test_shell_output[find . -maxdepth 1 -name '*\\\\.py' | grep -v test | wc -l-3]", "tests.zxpy_test::test_shell_output[cat /etc/shadow 2> /dev/null; echo $?-1]", "tests.zxp... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
serge-sans-paille__beniget-63 | serge-sans-paille/beniget | d53985821294ebd00075af70284141354875ca01 | diff --git a/beniget/beniget.py b/beniget/beniget.py
index dac38b4..9f45161 100644
--- a/beniget/beniget.py
+++ b/beniget/beniget.py
@@ -746,18 +746,13 @@ class DefUseChains(ast.NodeVisitor):
def visit_AnnAssign(self, node):
if node.value:
- dvalue = self.visit(node.value)
+ self.v... | python | diff --git a/tests/test_chains.py b/tests/test_chains.py
index 28aa993..a388867 100644
--- a/tests/test_chains.py
+++ b/tests/test_chains.py
@@ -909,7 +909,7 @@ Thing:TypeAlias = 'Mapping'
'Type -> (Type -> (Subscript -> ()))',
'C -> (C -> (Attribute -> ()), C -> (Attribute -> ... | 2023-11-16T22:50:49+00:00Z | AnnAssign links the target as beeing the def of dannotation
The little it of code seems strange to https://github.com/serge-sans-paille/beniget/blob/master/beniget/beniget.py#L769-L772
I think the annotation should not be added to the uses of the target of the assignment. It's like saying "the assign target is wher... | Here is a failing test case:
```python
def test_annotation_def_is_not_assign_target(self):
code = 'from typing import Optional; var:Optional'
self.checkChains(code, ['Optional -> (Optional -> ())',
'var -> ()'])
```
Any opinion on this behavior @serge-sans-pa... | 0.0.1-alpha | b1e00259d32fa9be594347c2b95da370a4c59b3d | ["tests.test_chains.TestDefUseChains::test_annotation_def_is_not_assign_target", "tests.test_chains.TestDefUseChains::test_pep0563_annotations", "tests.test_chains.TestDefUseChains::test_wilcard_import_annotation", "tests.test_chains.TestDefUseChains::test_wilcard_import_annotation_and_global_scope"] | ["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"
} | |
stan-dev__cmdstanpy-647 | stan-dev/cmdstanpy | 10c2b466cf12f7585a5bb13ddd5b78e1384629e9 | diff --git a/cmdstanpy/cmdstan_args.py b/cmdstanpy/cmdstan_args.py
index 2fc7526..49b96a2 100644
--- a/cmdstanpy/cmdstan_args.py
+++ b/cmdstanpy/cmdstan_args.py
@@ -81,7 +81,7 @@ class SamplerArgs:
* if file(s) for metric are supplied, check contents.
* length of per-chain lists equals specified # of ... | python | diff --git a/test/test_cmdstan_args.py b/test/test_cmdstan_args.py
index 8c6364d..049c592 100644
--- a/test/test_cmdstan_args.py
+++ b/test/test_cmdstan_args.py
@@ -6,6 +6,7 @@ import platform
from test import check_present
from time import time
+import numpy as np
import pytest
from cmdstanpy import _TMPDIR, c... | 2023-03-24T21:47:10+00:00Z | Seed argument doesn't accept np.int types
#### Summary:
ValueError: Argument "seed" must be an integer between 0 and 2**32-1, found 76113.
I believe that 76113 < 2**32-1 (= 4294967295)
Any help?
#### Current Version:
cmdstan 2.29.0
cmdstanpy 1.0.8 | Never mind. I was using
```
rng = np.random.default_rng(42)
seed = rng.integers(low=0, high=1e7)
```
to generate seeds for a sequence of models that I was fitting. The assigned seed variable in this case turned out to be numpy.int64, and not a python builtin integer.
I think this is a worthy report anyway, we s... | 0.0.1-alpha | cd650840d9b8dec02b98d563bcdf88ccefb10fff | ["test.test_cmdstan_args::test_args_good"] | ["test.test_cmdstan_args::test_args_algorithm", "test.test_cmdstan_args::test_args_algorithm_init_alpha", "test.test_cmdstan_args::test_args_algorithm_iter", "test.test_cmdstan_args::test_args_min", "test.test_cmdstan_args::test_args_chains", "test.test_cmdstan_args::test_good", "test.test_cmdstan_args::test_bad", "tes... | ["test.test_cmdstan_args::test_args_sig_figs", "test.test_generate_quantities::test_from_csv_files", "test.test_generate_quantities::test_from_csv_files_bad", "test.test_generate_quantities::test_from_previous_fit", "test.test_generate_quantities::test_from_previous_fit_draws", "test.test_generate_quantities::test_from... | {
"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"
} | |
pyfar__pyfar-627 | pyfar/pyfar | 727145aa868d1eb33e5c9fab5e7479975a7e3a46 | diff --git a/pyfar/classes/filter.py b/pyfar/classes/filter.py
index 6a3b709..4583567 100644
--- a/pyfar/classes/filter.py
+++ b/pyfar/classes/filter.py
@@ -247,7 +247,12 @@ class Filter(object):
# prepare output signal
filtered_signal = deepcopy(signal)
- filtered_signal.time = np.squeeze(fi... | python | diff --git a/tests/test_filter.py b/tests/test_filter.py
index 8d8c66f..2c3441e 100644
--- a/tests/test_filter.py
+++ b/tests/test_filter.py
@@ -223,7 +223,7 @@ def test_crossover(impulse):
for order in [2, 4, 6, 8]:
for frequency in [4000, (1e2, 10e3)]:
x = pfilt.crossover(impulse, order, fr... | 2024-08-16T11:12:51+00:00Z | Filtering `Signal` alters its `cshape`
## General
* pyfar version: 0.6.6
* Python version: 3.10.12
* Operating System: Ubuntu LTS 22.04.4
* Did you install pyfar via pip: yes
## Description
Filtering a `Signal` changes its `cshape`, if one dimension is `1`. I don't want my shapes being touched. Worse, it lea... | 0.0.1-alpha | 42f98d2d3743a1641a4219823e2eeaa256c02833 | ["tests.test_filter::test_crossover", "tests.test_filter::test_reconstructing_fractional_octave_bands", "tests.test_filter::test_reconstructing_fractional_octave_bands_filter_slopes", "tests.test_filter_classes::test_filter_iir_process_multi_dim_filt", "tests.test_filter_classes::test_filter_fir_process_multi_dim_filt"... | ["tests.test_audio::test_audio_init_with_defaults", "tests.test_audio::test_audio_init_invalid_domain", "tests.test_audio::test_audio_comment", "tests.test_audio::test_not_implemented", "tests.test_audio_frequency_data::test_data_frequency_init_with_defaults", "tests.test_audio_frequency_data::test_data_frequency_init_... | ["tests.test_plot_interaction::test_toggle_plots[2d-time_2d-function_list1]", "tests.test_plot_interaction::test_toggle_colormap", "tests.test_plot_interaction::test_cycle_and_toggle_signals"] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
mwaskom__seaborn-3211 | mwaskom/seaborn | 9b0baf65c879889489a4cce92aef552536e571eb | diff --git a/seaborn/_compat.py b/seaborn/_compat.py
index 74501c7..5290243 100644
--- a/seaborn/_compat.py
+++ b/seaborn/_compat.py
@@ -149,10 +149,14 @@ def set_layout_engine(fig, engine):
if hasattr(fig, "set_layout_engine"):
fig.set_layout_engine(engine)
else:
+ # _version_predates(mpl, 3.... | python | diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py
index dc15beb..d7a950b 100644
--- a/tests/_core/test_plot.py
+++ b/tests/_core/test_plot.py
@@ -1133,11 +1133,30 @@ class TestPlotting:
with pytest.raises(RuntimeError, match="Cannot create multiple subplots"):
p2.plot()
- def t... | 2023-01-10T01:15:19+00:00Z | Figure title being removed by seaborn objects API when plotting on subfigures
I recently came across an odd behaviour with the seaborn objects API when using subfigures. Here is a minimal example :
```
import seaborn as sns
import seaborn.objects as so
import matplotlib.pyplot as plt
fig = plt.figure(constrain... | I can replicate but am a little confused about what's happening. Is there a reason you think that the line you called out is the culprit, or were you just poking around? If you move the suptitle text over to a coordinate like (.98, 1) you can see that it's actually still there is something being plotted over it. And ye... | 0.0.1-alpha | 623b0b723c671e99f04e8ababf19adc563f30168 | ["tests._core.test_plot.TestPlotting::test_on_layout_algo_default"] | ["tests._core.test_data.TestPlotData::test_named_vectors", "tests._core.test_data.TestPlotData::test_named_and_given_vectors", "tests._core.test_data.TestPlotData::test_index_as_variable", "tests._core.test_data.TestPlotData::test_multiindex_as_variables", "tests._core.test_data.TestPlotData::test_int_as_variable_key",... | ["tests.test_axisgrid.TestFacetGrid::test_subplot_kws"] | {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause",
"url": "https://api.github.com/licenses/bsd-3-clause"
} | |
matthewwithanm__python-markdownify-45 | matthewwithanm/python-markdownify | 9cb940cbc003a6048cb4ad2be17deceb6f0659f1 | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index 9a30b34..0b849fb 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -1,4 +1,4 @@
-from bs4 import BeautifulSoup, NavigableString, Comment
+from bs4 import BeautifulSoup, NavigableString, Comment, Doctype
import re
import six
@@ ... | python | diff --git a/tests/test_advanced.py b/tests/test_advanced.py
index 2435cac..846d8aa 100644
--- a/tests/test_advanced.py
+++ b/tests/test_advanced.py
@@ -21,3 +21,8 @@ def test_code_with_tricky_content():
assert md('<code>/home/</code><b>username</b>') == "`/home/`**username**"
assert md('First line <code>blah... | 2021-05-30T09:18:18+00:00Z | HTML doctype is incorrectly rendered
Input:
`<!DOCTYPE html>`
Expected Output: `""` (empty string)
Output: `html` | Thanks for your issue, this is fixed in [0.8.1](https://github.com/matthewwithanm/python-markdownify/releases/tag/0.8.1). Best! | 0.0.1-alpha | 129c4ef060672499fad38186b0050ab4eceb5db4 | ["tests.test_advanced::test_special_tags"] | ["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_args::test_strip", "tests.test_args::test_do_not_strip", "tests.test_args::test_convert", "tests.test_args::tes... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
octodns__octodns-1158 | octodns/octodns | 14c8b83c7934a1ca5725ae1790f137058c678422 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e10c072..b8f99c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
* Support for specifying per-zone change thresholds, to allow for zones
where lots of changes are expected frequently to live along side zones
where little or no churn is expected.
+* Auto... | python | diff --git a/tests/test_octodns_processor_arpa.py b/tests/test_octodns_processor_arpa.py
index 32fc49d..328d05f 100644
--- a/tests/test_octodns_processor_arpa.py
+++ b/tests/test_octodns_processor_arpa.py
@@ -27,7 +27,7 @@ class TestAutoArpa(TestCase):
aa = AutoArpa('auto-arpa')
aa.process_source_zone... | 2024-04-18T15:17:56+00:00Z | Feature request: Make it possible to choose record for auto ARPA
In a setup where multiple A/AAAA records point to the same IP, it would be great if you can choose which record should take preference when using the auto_arpa provider, for example by having an optional use_for_ptr option on those types of records.
C... | Something like this probably make sense. It may be preferable to have it be a priority rather than a flag to use this one, that way if the one with the flag set goes away the behavior would still make sense/be predictable.
I think the main bits that would have to change are around here:
https://github.com/octodn... | 0.0.1-alpha | 6dfbc960790893b9d7add41565b4bbf3a1a797a9 | ["tests.test_octodns_processor_arpa.TestAutoArpa::test_AAAA", "tests.test_octodns_processor_arpa.TestAutoArpa::test_address_boundaries", "tests.test_octodns_processor_arpa.TestAutoArpa::test_arpa_priority", "tests.test_octodns_processor_arpa.TestAutoArpa::test_dynamic", "tests.test_octodns_processor_arpa.TestAutoArpa::... | ["tests.test_octodns_equality.TestEqualityTupleMixin::test_basics", "tests.test_octodns_equality.TestEqualityTupleMixin::test_not_implemented", "tests.test_octodns_idna.TestIdna::test_case_insensitivity", "tests.test_octodns_idna.TestIdna::test_exception_translation", "tests.test_octodns_idna.TestIdna::test_noops", "te... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
materialsvirtuallab__monty-758 | materialsvirtuallab/monty | 0f90d58b1ea452df83f0844e9810f9f1a4ac632b | diff --git a/src/monty/shutil.py b/src/monty/shutil.py
index d22bf4d..e203f06 100644
--- a/src/monty/shutil.py
+++ b/src/monty/shutil.py
@@ -19,7 +19,8 @@ PathLike: TypeAlias = Union[str, Path]
def copy_r(src: PathLike, dst: PathLike) -> None:
"""
- Deprecated: please use `shutil.copytree(src, dst, dirs_exis... | python | diff --git a/tests/test_tempfile.py b/tests/test_tempfile.py
index 70ed8d4..6d7c718 100644
--- a/tests/test_tempfile.py
+++ b/tests/test_tempfile.py
@@ -23,11 +23,17 @@ class TestScratchDir:
with open("pre_scratch_text", "w", encoding="utf-8") as f:
f.write("write")
- with ScratchDir(
- ... | 2025-08-18T15:43:37+00:00Z | [Bug]: `monty.tempfile.ScratchDir` overwrites stdout files
### Email (Optional)
_No response_
### Version
2025.3.3
### Which OS(es) are you using?
- [ ] MacOS
- [ ] Windows
- [x] Linux
### What happened?
As I describe within the context of https://github.com/materialsproject/custodian/issues/389, the `ScratchDi... | Sounds like this is the expected behaviour? If I understand correctly the call stack is `slurm job` (creates `slurm-*.out`) -> `ScratchDir` -> `the calculation`, so `ScratchDir(copy_to_current_on_exit=True, copy_from_current_on_enter=True)` would "take a snapshot" of the files in the directory when the slurm job is cre... | 0.0.1-alpha | 7b0717140ea6e3a2c97a977a6fcede8ba7c25a47 | ["tests.test_tempfile.TestScratchDir::test_with_copy", "tests.test_tempfile.TestScratchDir::test_bad_rootpath"] | ["tests.test_bisect::test_funcs", "tests.test_collections::test_tree", "tests.test_collections.TestControlledDict::test_add_allowed", "tests.test_collections.TestControlledDict::test_add_disabled", "tests.test_collections.TestControlledDict::test_update_allowed", "tests.test_collections.TestControlledDict::test_update_... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | |
matiasb__python-unidiff-105 | matiasb/python-unidiff | a8403051cea0634d2cac2ee8bbdd4bd885cc27f5 | diff --git a/unidiff/patch.py b/unidiff/patch.py
index 10c4d06..0273e7a 100644
--- a/unidiff/patch.py
+++ b/unidiff/patch.py
@@ -585,6 +585,12 @@ class PatchSet(list):
current_file = None
continue
+ if line == 'GIT binary patch\n':
+ current_file.is_binary_f... | python | diff --git a/tests/samples/binary.diff b/tests/samples/binary.diff
new file mode 100644
index 0000000..375dce0
--- /dev/null
+++ b/tests/samples/binary.diff
@@ -0,0 +1,23 @@
+From 62ea0eaf7e00170a8fca79f665442f9f44725956 Mon Sep 17 00:00:00 2001
+From: Martin Liska <mliska@suse.cz>
+Date: Fri, 9 Dec 2022 12:05:32 +0100... | 2022-12-11T19:32:32+00:00Z | UnidiffParseError: Unexpected trailing newline character for binary file diff
I see the following issue for a PNG file diff:
[0001-add-pixel.patch.txt](https://github.com/matiasb/python-unidiff/files/10194143/0001-add-pixel.patch.txt)
```
In [2]: unidiff.PatchSet(open('0001-add-pixel.patch'))
-------------------... | 0.0.1-alpha | 7eb7da9fae286da318cdcf0a64d4e103cb9d13d8 | ["tests.test_parser.TestUnidiffParser::test_binary_patch"] | ["tests.test_parser.TestVCSSamples::test_git_renaming", "tests.test_parser.TestVCSSamples::test_samples", "tests.test_patchedfile.TestPatchedFile::test_is_added_file", "tests.test_patchedfile.TestPatchedFile::test_is_modified_file", "tests.test_patchedfile.TestPatchedFile::test_is_removed_file", "tests.test_line.TestLi... | [] | {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
} | ||
sgkit-dev__sgkit-96 | sgkit-dev/sgkit | a7ad4ae5046b3e82d0ca7a730a832a5767c21be6 | diff --git a/sgkit/utils.py b/sgkit/utils.py
index cfa7920..81e846a 100644
--- a/sgkit/utils.py
+++ b/sgkit/utils.py
@@ -7,30 +7,64 @@ from .typing import ArrayLike, DType
def check_array_like(
a: Any,
- dtype: DType = None,
+ dtype: Union[None, DType, Set[DType]] = None,
kind: Union[None, str, Set[s... | python | diff --git a/sgkit/tests/test_utils.py b/sgkit/tests/test_utils.py
index 90e9b3d..0bc2543 100644
--- a/sgkit/tests/test_utils.py
+++ b/sgkit/tests/test_utils.py
@@ -9,18 +9,31 @@ from sgkit.utils import check_array_like, encode_array, split_array_chunks
def test_check_array_like():
- with pytest.raises(TypeErro... | 2020-08-11T08:05:09+00:00Z | Add messages to check_array_like exceptions
The [check_array_like](https://github.com/pystatgen/sgkit/blob/master/sgkit/utils.py#L8) function currently raises exceptions without any error messages, which is unhelpful when trying to figure out what's wrong with your input.
I'd suggest we avoid this practise in gen... | 0.0.1-alpha | dce23d09dcac61d6cd5f7b71fa59f65eb4ff3176 | ["sgkit.tests.test_utils::test_check_array_like"] | ["sgkit.stats.aggregation::sgkit.stats.aggregation.count_alleles", "sgkit.stats.regenie::sgkit.stats.regenie.index_array_blocks", "sgkit.stats.regenie::sgkit.stats.regenie.index_block_sizes", "sgkit.tests.test_aggregation::test_count_alleles__single_variant_single_sample", "sgkit.tests.test_aggregation::test_count_alle... | ["sgkit.stats.regenie::sgkit.stats.regenie.regenie", "sgkit.tests.test_regenie::test_regenie__glow_comparison", "sgkit.tests.test_vcfzarr_reader::test_read_vcfzarr", "sgkit.utils::sgkit.utils.split_array_chunks"] | {
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
"url": "https://api.github.com/licenses/apache-2.0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.