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
networkx__nx-parallel-95
networkx/nx-parallel
88ee3d26f852d17cab4f455cda818cca2be2a342
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..0776b98 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,32 @@ +--- +name: Bug report +about: "Please describe the problem you have encountered" +--- + +<!--- Please make sure ...
python
2025-05-07T10:55:08+00:00Z
Add Issue and PR templates in nx-parallel - https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates
@Schefflera-Arboricola assign me i will do it.
0.0.1-alpha
1d4108b4950efb8246750763029f0d86803c5a1a
["nx_parallel.algorithms.centrality.tests.test_betweenness_centrality::test_betweenness_centrality_get_chunks"]
["nx_parallel.tests.test_entry_points::test_backends_ep", "nx_parallel.tests.test_entry_points::test_backend_info_ep", "nx_parallel.tests.test_entry_points::test_config_init", "nx_parallel.tests.test_get_chunks::test_get_chunks", "nx_parallel.utils.tests.test_chunk::test_get_n_jobs", "nx_parallel.utils.tests.test_chunk...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
pyprojectx__pyprojectx-21
pyprojectx/pyprojectx
0d88b667771ff0127311ac7add203b792d442452
diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c6154..eb28b14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +Release v1.0.0b5 (2023-06-19) +---------------------------- +### Features & Improvements +- Make aliases more readable by supporting lists of commands + Release v1.0.0b4 (2023-05-07) ---------...
python
diff --git a/tests/data/pw-test.toml b/tests/data/pw-test.toml index e9eceb8..62e4cf0 100644 --- a/tests/data/pw-test.toml +++ b/tests/data/pw-test.toml @@ -11,6 +11,15 @@ pycowsay = "pycowsay" pycowsay-hi = "pycowsay hi" pycowsay-hello = "@pycowsay: pycowsay hello" combine-pw-scripts = "pw@pycowsay-hi && pw@pycowsa...
2023-06-19T06:48:04+00:00Z
Make aliases more readable by supporting lists of commands Example: ```build = "pw@install && pw@check && pw@pdm build"``` would become ``` build = [ "pw@install", "pw@check", "pw@pdm build", ] ``` The command will behave like combined with && and abort if/when the first error occurs.
0.0.1-alpha
e840a41b644910fa12081a7bc13d7c6680cfe687
["tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts-list]", "tests.integration.test_pw::test_output_with_errors[./pw -q failing-list-first-cmd-output-ok-go-foo-bar]", "tests.unit.test_config::test_no_config", "tests.unit.test_config::test_no_tool_confi...
["tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_alias_abbreviations", "tests.integration.test_pw::test_output_with_errors[./pw -q failing-install--PYPROJECTX ERROR: installation of 'failing-install' failed with e...
["tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_post_install", "tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_tool_alias", "tests.unit.test_cli::test_run_tool_alias_with_args", "tests.unit.test_cli::tes...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
workhorsy__py-cpuinfo-178
workhorsy/py-cpuinfo
54e62b796d6869175f4b02a34dc3a5a1a5b38f2a
diff --git a/ChangeLog b/ChangeLog index 59d8633..bbab4e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * Release 8.1.0 + * Fixed Bug #178: Changes to lscpu breaks parsing of cache info * Fixed Bug #177: Officially drop support for Python 2 * Fixed Bug #171: Replace Python 3.11 deprecated unittest.makeSui...
python
diff --git a/tests/test_linux_ubuntu_22_04_x86_64.py b/tests/test_linux_ubuntu_22_04_x86_64.py index 5004470..0ebc953 100644 --- a/tests/test_linux_ubuntu_22_04_x86_64.py +++ b/tests/test_linux_ubuntu_22_04_x86_64.py @@ -565,7 +565,7 @@ class TestLinuxUbuntu_22_04_X86_64(unittest.TestCase): self.assertEqual(512 * 10...
2022-09-07T22:00:17+00:00Z
Changes to lscpu breaks parsing of cache info Thanks to @lorddavidiii for [pointing this out](https://github.com/workhorsy/py-cpuinfo/pull/164#issuecomment-1236750435) . lscpu changed the format for cache info: ``` Caches (sum of all): L1d: 256 KiB (8 instances) L1i: 5...
0.0.1-alpha
a93e04dea7bd468dfff00643c25629aaa27bd8a2
["test_suite.TestLinuxUbuntu_22_04_X86_64::test_all", "test_suite.TestLinuxUbuntu_22_04_X86_64::test_get_cpu_info_from_lscpu", "tests.test_linux_ubuntu_22_04_x86_64.TestLinuxUbuntu_22_04_X86_64::test_all", "tests.test_linux_ubuntu_22_04_x86_64.TestLinuxUbuntu_22_04_X86_64::test_get_cpu_info_from_lscpu"]
["test_suite.TestCompileErrors::test_all", "test_suite.TestExample::test_all", "test_suite.TestParseErrors::test_all", "test_suite.TestParseErrors::test_returns", "test_suite.TestParseCPUString::test_hz_friendly_to_full", "test_suite.TestParseCPUString::test_hz_short_to_friendly", "test_suite.TestParseCPUString::test_h...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
textstat__textstat-212
textstat/textstat
4aa64e0e99e0ff049a6375194ddbc645726e0106
diff --git a/textstat/backend/counts/_count_syllables.py b/textstat/backend/counts/_count_syllables.py index d09fc5c..c5fc439 100644 --- a/textstat/backend/counts/_count_syllables.py +++ b/textstat/backend/counts/_count_syllables.py @@ -29,6 +29,6 @@ def count_syllables(text: str, lang: str) -> int: try: ...
python
2025-07-22T08:31:14+00:00Z
[Bug]: `Key Error` in `flesch_kincaid_grade` ### Operating system Linux ### Download source PyPi ### Python distribution CPython ### Python version Python 3.10 ### What happened? ```python import textstat textstat.flesch_kincaid_grade("text_a") ``` throws: ``` Traceback (most recent call last): File "/Us...
The reproduction code works fine with `cmudict==1.0.33`. This change: https://github.com/prosegrinder/python-cmudict/pull/122/files#diff-22ccaf55e21804a5cde7d3229e651f35e511b27b61464e66efc4e2b696c3ac3cL61 might the culprit. ```bash # works uv run --python=3.10 --isolated --no-project --with textstat --with 'cmudict<1....
0.0.1-alpha
c66bacc27b8e52be3e37f098a0c1f6cc13c2a086
["tests.backend.counts.test_count_difficult_words::test_count_difficult_words[Anna and her family love doing puzzles. Anna is best at little puzzles. Anna and her brother work on medium size puzzles together. Anna's Brother likes puzzles with cars in them. When the whole family does a puzzle, they do really big puzzles...
["tests.backend.counts.test_count_chars::test_count_chars[-True-0]", "tests.backend.counts.test_count_chars::test_count_chars[-False-0]", "tests.backend.counts.test_count_chars::test_count_chars[a-True-1]", "tests.backend.counts.test_count_chars::test_count_chars[a -True-1]", "tests.backend.counts.test_count_chars::tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
ywangd__pybufrkit-42
ywangd/pybufrkit
f3da9fda9ce632cbb1084631a9f51ee9d824817b
diff --git a/pybufrkit/bufr.py b/pybufrkit/bufr.py index b24eca8..e6680cb 100644 --- a/pybufrkit/bufr.py +++ b/pybufrkit/bufr.py @@ -340,10 +340,10 @@ class BufrMessage(object): self._edition = None # Default to zero for edition 1 which does not have this parameter self._master_table_number =...
python
diff --git a/tests/test_bufr.py b/tests/test_bufr.py new file mode 100644 index 0000000..75cb569 --- /dev/null +++ b/tests/test_bufr.py @@ -0,0 +1,7 @@ +from pybufrkit.bufr import BufrMessage + + +def test_bufr_message(): + bufr_message = BufrMessage() + assert bufr_message.master_table_number.value == 0 + ass...
2025-03-22T03:31:38+00:00Z
What is the consequence of using normalize=1 by default in Encoder? I have a new problem: I need to create a BUFR version 2 file instead of version 4. I tried it and noticed that there is no subcentre on BUFR version 2 and I was getting an error with file not found for the path containing the table definition '85_Non...
Thanks for spotting the issue. This was actually a bug introduced recently when adding the optional parameter support. It should now be fixed with 489dd974d281d7674e4957364e726225c1b00d7c
0.0.1-alpha
489dd974d281d7674e4957364e726225c1b00d7c
["tests.test_bufr::test_bufr_message"]
["tests.test_Benchmark.BenchMarkTests::test", "tests.test_Decoder.DecoderTests::test_decode", "tests.test_Encoder.EncoderTests::test_encode", "tests.test_Encoder_arguments::test_overriding_master_table_version", "tests.test_NodePathParser.NodePathParserTests::test", "tests.test_NodePathParser.NodePathParserTests::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
swingerman__ha-dual-smart-thermostat-80
swingerman/ha-dual-smart-thermostat
80ddb3b02a41530279a6240d5e378b8ea765f881
diff --git a/custom_components/dual_smart_thermostat/climate.py b/custom_components/dual_smart_thermostat/climate.py index b4b1cc1..c7eaa6b 100644 --- a/custom_components/dual_smart_thermostat/climate.py +++ b/custom_components/dual_smart_thermostat/climate.py @@ -230,11 +230,13 @@ async def async_setup_platform( ...
python
diff --git a/tests/test_dual_mode.py b/tests/test_dual_mode.py index ba86c5e..d433835 100644 --- a/tests/test_dual_mode.py +++ b/tests/test_dual_mode.py @@ -15,7 +15,7 @@ from homeassistant.components.climate import ( PRESET_SLEEP, HVACMode, ) -from homeassistant.components.climate.const import DOMAIN as CLI...
2024-03-21T13:09:39+00:00Z
preset mode being set on wrong entity Hi - got a strange issue here. Looks like my preset modes are being set on the wrong entity. Notice how the "Dining Room" has two preset modes - and the boys room has none. I'm seeing this in other entities, too. <img width="1014" alt="Screenshot 2023-10-17 at 9 44 37 AM" src="h...
bump - anything I can do to move this forward? - `preset_modes` are the available preset modes - based on your configuration. - `preset_mode` is the currently selected preset mode I see But why are some entites missing the preset_modes altogether? @mbrevda have you _defined_ any of the `preset_modes` in the configura...
0.0.1-alpha
f8b4adc13c7ec9c137f00310f1e8fd028a9979fd
["tests.test_dual_mode::test_use_case_1"]
["tests.test_cooler_mode::test_unique_id", "tests.test_cooler_mode::test_setup_defaults_to_unknown", "tests.test_cooler_mode::test_setup_gets_current_temp_from_sensor", "tests.test_cooler_mode::test_get_hvac_modes", "tests.test_cooler_mode::test_set_preset_mode[none-23]", "tests.test_cooler_mode::test_set_preset_mode[a...
["tests.test_heater_mode::test_precision"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
open-feature__python-sdk-17
open-feature/python-sdk
f60b44e014125e3cd90577b8bd1e7423c2d14e6e
diff --git a/open_feature/evaluation_context/evaluation_context.py b/open_feature/evaluation_context/evaluation_context.py index cab6976..64edf6d 100644 --- a/open_feature/evaluation_context/evaluation_context.py +++ b/open_feature/evaluation_context/evaluation_context.py @@ -1,5 +1,12 @@ +import typing + + class Eval...
python
diff --git a/tests/test_open_feature_client.py b/tests/test_open_feature_client.py index 084d8b7..2c539e9 100644 --- a/tests/test_open_feature_client.py +++ b/tests/test_open_feature_client.py @@ -108,7 +108,7 @@ def test_should_handle_an_open_feature_exception_thrown_by_a_provider( # Given exception_hook = M...
2022-11-21T22:39:37+00:00Z
[BUG] ExceptionObject has no attribute error_message https://github.com/open-feature/python-sdk/blob/f3dcad2e815ef19f0914b75d833be6e60db1a5a3/open_feature/open_feature_client.py#L228 `e.error_message` is hardcoded but `error_message` isn't always available. ``` File "/usr/local/lib/python3.9/site-packages/ope...
0.0.1-alpha
50f5a484a012167aeebac4d99a47a336d146e243
["tests.test_open_feature_client::test_should_handle_an_open_feature_exception_thrown_by_a_provider"]
["tests.test_open_feature_api::test_should_raise_exception_with_nop_client", "tests.test_open_feature_api::test_should_return_open_feature_client_when_configured_correctly", "tests.test_open_feature_api::test_should_try_set_provider_and_fail_if_none_provided", "tests.test_open_feature_api::test_should_return_a_provider...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sciunto-org__python-bibtexparser-461
sciunto-org/python-bibtexparser
a997eeabc4090f8b5ad7f5ef56af6c8c5c4a6bb5
diff --git a/bibtexparser/model.py b/bibtexparser/model.py index b6b38be..cb19a59 100644 --- a/bibtexparser/model.py +++ b/bibtexparser/model.py @@ -305,12 +305,15 @@ class Entry(Block): else: self._fields.append(field) - def pop_field(self, key: str) -> Optional[Field]: - """Removes a...
python
diff --git a/tests/test_model.py b/tests/test_model.py index 3f98771..d39e0c3 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -77,7 +77,17 @@ def test_entry_deepcopy(): assert entry_1.fields_dict["field"] == entry_2.fields_dict["field"] -def test_entry_contain(): +def test_entry_pop(): + entry...
2024-02-09T18:48:38+00:00Z
Discussion: closer `dict` mimicking `Entry` I think that it would be a good idea to have the API of `Entry` mimic `dict`. The advantages are: * Intuitive API, as everyone's familiar with `dict` * Simpler tests middleware implementations: for many purposes, one can just call the `transform_entry` method with a `dic...
> I understand that there are probably good reasons to have chosen `pop_field` Thanks for your generous assumptions ;-) I don't recall the reason, hence it can't be a good one. In short, I like the proposition, but as you may have noticed I am currently extremely short on time and won't even be able to fix that i...
0.0.1-alpha
e3757c13abf2784bda612464843ab30256317e6c
["tests.test_model::test_entry_pop"]
["tests.middleware_tests.test_block_middleware::test_successful_transform[middleware0-expected0]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware1-expected1]", "tests.middleware_tests.test_block_middleware::test_successful_transform[middleware2-expected2]", "tests.middleware_tests.t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
matthewwithanm__python-markdownify-17
matthewwithanm/python-markdownify
3544322ed238dcada6f69a86e39380279fcefafc
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 2cd8fc8..8ca1904 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -5,7 +5,7 @@ import six convert_heading_re = re.compile(r'convert_h(\d+)') line_beginning_re = re.compile(r'^', re.MULTILINE) -whitespace_re = re.compile(r'[\r\...
python
diff --git a/tests/test_basic.py b/tests/test_basic.py index 78775b6..bf25ee0 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -10,4 +10,4 @@ def test_soup(): def test_whitespace(): - assert md(' a b \n\n c ') == ' a b c ' + assert md(' a b \t\t c ') == ' a b c ' diff --git a/tests/test_conver...
2020-12-29T09:28:50+00:00Z
Extra whitespace added when block elements are separated by newlines When the input HTML contains newlines between block elements, extra whitespace is being injected. For example: ``` >>> import markdownify >>> markdownify.markdownify("<h1>First</h1>\n<h2>Second</h2>\n<h3>Third</h3>", heading_style=markdownify...
this is a problem when anything but a closing tag comes before the headline. ``` >>> import markdownify >>> markdownify.markdownify(' <h1>First</h1>', heading_style=markdownify.ATX) ' # First\n\n' >>> markdownify.markdownify('X<h1>First</h1>', heading_style=markdownify.ATX) 'X# First\n\n' ``` a fix would be to ...
0.0.1-alpha
4f8937810b1484a7bcbaf1d45df79433725e20a2
["tests.test_conversions::test_hn_chained"]
["tests.test_advanced::test_nested", "tests.test_args::test_strip", "tests.test_args::test_do_not_strip", "tests.test_args::test_convert", "tests.test_args::test_do_not_convert", "tests.test_basic::test_single_tag", "tests.test_basic::test_soup", "tests.test_basic::test_whitespace", "tests.test_conversions::test_chomp"...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tkem__cachetools-131
tkem/cachetools
2216fb28b74a91ff1aebeaac45736191f81c48cb
diff --git a/src/cachetools/__init__.py b/src/cachetools/__init__.py index 14bc558..dcf49b2 100644 --- a/src/cachetools/__init__.py +++ b/src/cachetools/__init__.py @@ -615,64 +615,163 @@ class TLRUCache(_TimedCache): return value -def cached(cache, key=keys.hashkey, lock=None): +_CacheInfo = collections.n...
python
diff --git a/tests/test_cached.py b/tests/test_cached.py index 4841c6b..71d6ac9 100644 --- a/tests/test_cached.py +++ b/tests/test_cached.py @@ -145,16 +145,25 @@ class DecoratorTestMixin: self.assertEqual(len(cache), 0) self.assertEqual(lock.count, 3) - def test_decorator_clear_none(self): - ...
2023-01-22T21:17:48+00:00Z
cache_clear() and cache_info() would be handy in regular decorators Just trying cachetools for the first time. I noticed that cache_clear and cache_info attributes are available only on those caches provided for backwards compatibility with functools.lru_cache(). Is there some reason they (or something like them) aren...
`cache_clear` (and other operations on the actual cache object) can already be performed by assigning the cache to a variable, as shown in https://cachetools.readthedocs.io/en/latest/#cachetools.cached I agree that a proper `cache_clear` method would be somewhat easier to use, and I've been thinking about (re-)adding ...
0.0.1-alpha
1e478ef5c4a121404bc85b89083d300952cbdefe
["tests.test_cached.CacheWrapperTest::test_decorator_info", "tests.test_cached.CacheWrapperTest::test_zero_size_cache_decorator_info", "tests.test_cached.DictWrapperTest::test_decorator_info", "tests.test_cached.NoneWrapperTest::test_decorator_info"]
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing", "tests.test_cache.CacheTest::test_mis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
meeb__whoisit-16
meeb/whoisit
b4ee5b7d2107cf5154f25870d1d89961eaa22763
diff --git a/whoisit/overrides.py b/whoisit/overrides.py index a4e39d7..a56d132 100644 --- a/whoisit/overrides.py +++ b/whoisit/overrides.py @@ -14,6 +14,11 @@ iana_overrides = { # 2022-01-15 - .ch has an RDAP endpoint it's just not listed 'ch': ['https://rdap.nic.ch/'], + # 2022-10-17 - .gl ...
python
diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index c4d963f..96219c2 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -232,6 +232,13 @@ class BootstrapTestCase(unittest.TestCase): override_endpoints, match = whoisit._bootstrap.get_dns_endpoints('de') self.assertEq...
2022-10-16T13:55:25+00:00Z
Failure when sld require different url than tld In a number of countries, GL for one, in addition to the TLD 'gl', an SLD is used for domains. The effective 'tld' to be handled by whoisit then becomes something like 'co.gl' or 'net.gl' which it does not currently support. I have set this up with custom overrides li...
`whoisit` by default directly refers queries to RDAP endpoints as listed in the IANA bootstrap data. If these ccTLDs aren't resolving properly than that's the exact use case the overrides facility exists. Feel free to submit a PR with these overrides added and I'll give it a test. The only issue here is if a ccTLD has ...
0.0.1-alpha
94a3ed257c6dfbdecb329e8be63a9d7126e23c84
["tests.test_bootstrap.BootstrapTestCase::test_iana_overrides"]
["tests.test_bootstrap.BootstrapTestCase::test_bootstrap_asn_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_dns_parser", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_full_parsing", "tests.test_bootstrap.BootstrapTestCase::test_bootstrap_ipv4_parser", "tests.test_bootstrap.BootstrapTestCase:...
[]
{ "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-97
matthewwithanm/python-markdownify
e6e23fd512ce85c7a6548791903f6507bd109345
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index e15ecd4..bf765ec 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -152,13 +152,12 @@ class MarkdownConverter(object): def process_text(self, el): text = six.text_type(el) or '' - # dont remove any whitespace...
python
diff --git a/tests/test_conversions.py b/tests/test_conversions.py index da78649..1ecaf3c 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -70,7 +70,12 @@ def test_br(): def test_code(): inline_tests('code', '`') - assert md('<code>this_should_not_escape</code>') == '`this_should_not...
2024-01-15T20:46:51+00:00Z
Cannot process hljs code with spans ```python def test_markdownify(): result = markdownify.markdownify('''<code><span>merge_md_files</span></code>''') assert result == r'`merge\_md\_files`' ``` Here's a typical hljs rendered html format. The code contains wrong escapes, and I hope to get `merge_md_fi...
BTW is this project actively maintained? Seems that the previous commit is about 1 year ago. Any other replacement, please? @panhaoyu - issue #101 is the same issue as this. I would like to reach an active maintainer of this project, as there are several fixes I would like to contribute (and more tests I would lik...
0.0.1-alpha
c7718b6d8180453640d47c64ce4044a5b50ac019
["tests.test_conversions::test_code", "tests.test_conversions::test_pre"]
["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" }
modal-labs__pytest-markdown-docs-36
modal-labs/pytest-markdown-docs
784259176f8373a5dda816694984f4f2e9450440
diff --git a/src/pytest_markdown_docs/plugin.py b/src/pytest_markdown_docs/plugin.py index 31f2453..73b0e38 100644 --- a/src/pytest_markdown_docs/plugin.py +++ b/src/pytest_markdown_docs/plugin.py @@ -12,6 +12,8 @@ from enum import Enum from _pytest._code import ExceptionInfo from _pytest.config.argparsing import Par...
python
diff --git a/tests/conftest.py b/tests/conftest.py index c6481d5..b5fb4d7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,1 +1,10 @@ +from pathlib import Path + +import pytest + pytest_plugins = ["pytester"] + + +@pytest.fixture() +def support_dir(): + return Path(__file__).parent / "support" diff --gi...
2024-11-28T12:43:12+00:00Z
Tracebacks get confusing when an error happens outside docstring If an exception is raised by code in the same file but outside of a docstring (e.g. calling a function that's defined in the same file), the traceback gets confusing and states "code block line XX*" and can for some reason not necessarily extract the cor...
Even more confusing: if there are lines within such a traceback that originating in *other* files, they also get incorrect line numbers... Fix for the most urgent part of this (crash in traceback generation): https://github.com/modal-labs/pytest-markdown-docs/pull/37
0.0.1-alpha
1cdca806dd71309a499971bbcfe4f948221f6f98
["tests.plugin_test::test_traceback", "tests.plugin_test::test_error_origin_after_docstring_traceback", "tests.plugin_test::test_error_origin_before_docstring_traceback"]
["tests.plugin_test::test_docstring_markdown", "tests.plugin_test::test_markdown_text_file", "tests.plugin_test::test_continuation", "tests.plugin_test::test_autouse_fixtures", "tests.plugin_test::test_specific_fixtures", "tests.plugin_test::test_non_existing_fixture_error", "tests.plugin_test::test_fixture_overriding_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
okta__okta-sdk-python-188
okta/okta-sdk-python
f7b77c174e27e6363a08412a2efb83422af260a3
diff --git a/okta/request_executor.py b/okta/request_executor.py index 5d70aea..0d0039b 100644 --- a/okta/request_executor.py +++ b/okta/request_executor.py @@ -233,6 +233,9 @@ class RequestExecutor: date_time = convert_date_time_to_seconds(date_time) retry_limit_reset_headers = list(map(f...
python
diff --git a/tests/unit/test_request_executor.py b/tests/unit/test_request_executor.py new file mode 100644 index 0000000..370ffe7 --- /dev/null +++ b/tests/unit/test_request_executor.py @@ -0,0 +1,68 @@ +import aiohttp +import asyncio +import datetime +import time + +from http import HTTPStatus +from multidict import ...
2021-03-26T17:22:45+00:00Z
builtins.TypeError: Cannot serialize non-str key 1 I'm seeing this traceback as I delete a bunch of users to clean up from testing: ```console Traceback (most recent call last): File "/Users/wsanchez/Dropbox/Developer/BurningMan/profiles-tools/.tox/run/lib/python3.9/site-packages/twisted/internet/defer.py", l...
@serhiibuniak-okta can you assist with this? @wsanchez Thank you for posting this issue. aiohttp requires all headers have type `str`, and in this sample we have `int`: `'X-Okta-Retry-Count': 1`. I'm looking into it. I am experiencing this error as well. My use case, is that I have more than the max limit of records in...
0.0.1-alpha
7c00e544b6f3525bc57ec28ff21abceb801680ac
["tests.unit.test_request_executor::test_retry_count_header"]
["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" }
mondeja__mkdocs-include-markdown-plugin-78
mondeja/mkdocs-include-markdown-plugin
ecb608f4f6628f0272efa7b10c05fc6490d19a6a
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index dd9f16a..0047463 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.2.1 +current_version = 3.2.2 [bumpversion:file:mkdocs_include_markdown_plugin/__init__.py] diff --git a/mkdocs_include_markdown_plugin/__i...
python
diff --git a/tests/test_process.py b/tests/test_process.py index 01621f3..758db61 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -22,7 +22,7 @@ from mkdocs_include_markdown_plugin.process import ( ''' Here's a [link](../CHANGELOG.md) to the changelog. ''', - id='rela...
2021-09-03T07:31:06+00:00Z
Markdown links inside code blocks are interpreted I seem to have run into a problem when using `{% markdown-include %}` to include a markdown file that contains a code block, which in turn contains something that looks like a valid markdown link (but in fact it's a C++11 lambda definition). Here's an example. I hav...
Thank you for the detailed report. It's fixed and released in [v3.2.2](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases/tag/v3.2.2).
0.0.1-alpha
749729ed414e169e35de981421c9b70a8cb7f400
["tests.test_process::test_rewrite_relative_urls[cpp-likelink-fenced-codeblock]", "tests.test_process::test_rewrite_relative_urls[cpp-likelink-indented-codeblock]"]
["tests.test_exclude::test_exclude[ignore-by-glob-include]", "tests.test_exclude::test_exclude[ignore-by-glob-include-markdown]", "tests.test_exclude::test_exclude[ignore-multiple-by-glob-include]", "tests.test_exclude::test_exclude[ignore-multiple-by-glob-include-markdown]", "tests.test_exclude::test_exclude[not-ignor...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__files-to-prompt-42
simonw/files-to-prompt
b62c4477872a8e29f3b08f52d74c30532ada0d08
diff --git a/README.md b/README.md index b177151..06e1dad 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ This will output the contents of every file, with each file preceded by its rela files-to-prompt path/to/directory --cxml ``` -- `--markdown`: Output as Markdown with fenced code blocks. +- `-m/--m...
python
diff --git a/tests/test_files_to_prompt.py b/tests/test_files_to_prompt.py index cd0581a..eecfc5d 100644 --- a/tests/test_files_to_prompt.py +++ b/tests/test_files_to_prompt.py @@ -377,7 +377,8 @@ def test_paths_from_arguments_and_stdin(tmpdir): assert "Contents of file2" in result.output -def test_markdow...
2025-02-19T05:17:12+00:00Z
--markdown option for outputting in triple backtick code blocks I usually use the chat interface and pass my files wrapped in triple back-ticks like (```python). A `--format-codeblock` option could be the interface.
Oh that's really interesting - so everything you pass in gets wrapped in: ```` ```python # File name goes here import os ... ``` ```` We could guess the tags (`python` or `javascript` or whatever) based on file extensions. Just a short list of common ones - anything unknown gets triple-backticks with no language tag. E...
0.0.1-alpha
bbbf5cf681e0751cdd780dbe3d6372213b4be9c1
["tests.test_files_to_prompt::test_markdown[-m]"]
["tests.test_files_to_prompt::test_basic_functionality", "tests.test_files_to_prompt::test_include_hidden", "tests.test_files_to_prompt::test_ignore_gitignore", "tests.test_files_to_prompt::test_multiple_paths", "tests.test_files_to_prompt::test_ignore_patterns", "tests.test_files_to_prompt::test_specific_extensions", ...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
serge-sans-paille__beniget-81
serge-sans-paille/beniget
cf3bf74fe417b4b72b52d4515b1dcc032f83269f
diff --git a/beniget/beniget.py b/beniget/beniget.py index a019509..9926bf2 100644 --- a/beniget/beniget.py +++ b/beniget/beniget.py @@ -56,6 +56,22 @@ class Ancestors(ast.NodeVisitor): def parentStmt(self, node): return self.parentInstance(node, ast.stmt) +_novalue = object() +@contextmanager +def _ren...
python
diff --git a/tests/test_chains.py b/tests/test_chains.py index 947a7e4..4f09d63 100644 --- a/tests/test_chains.py +++ b/tests/test_chains.py @@ -21,6 +21,8 @@ def captured_output(): class TestDefUseChains(TestCase): + maxDiff = None + def checkChains(self, code, ref, strict=True): class StrictDefU...
2024-05-08T21:41:34+00:00Z
Add support for the match statement (python 3.10) All the bindings are not represented as Name[Store] in the ast (But by MatchAs node etc), so beniget needs special handling for these. It’s more or less the same situation as the except handler not having a store name for the exception. But it this case gast transforms...
I’m working on a patch.
0.0.1-alpha
eba925aa82d51cbd3f6d13c878d78db4a34194c8
["tests.test_chains.TestDefUseChains::test_match_class_rebinds_attrs", "tests.test_chains.TestDefUseChains::test_match_dict", "tests.test_chains.TestDefUseChains::test_match_list", "tests.test_chains.TestDefUseChains::test_match_list_star", "tests.test_chains.TestDefUseChains::test_match_value"]
["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" }
semuconsulting__pynmeagps-17
semuconsulting/pynmeagps
32441be3df4c7c94946c9b77c4efbe9aee688c3c
diff --git a/README.md b/README.md index e20e523..4c93de3 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,8 @@ e.g. Create GLL (GET) and GNQ (POLL) message, passing individual typed values as <NMEA(EIGNQ, msgId=RMC)> ``` +**NB:** For position messages, if the values of `lat` and `lon` are provided but the ...
python
diff --git a/tests/test_constructor.py b/tests/test_constructor.py index cc135d9..54c4c4d 100644 --- a/tests/test_constructor.py +++ b/tests/test_constructor.py @@ -21,7 +21,7 @@ class FillTest(unittest.TestCase): pass def testFill_GNGLL(self): # test GET constructor with full payload keyword - ...
2022-06-24T09:39:46+00:00Z
Increase Precision of NMEA LAT LON Coordinates from 5 to 7 Decimal Places Thank you very much for pynmeagps. It is a wonderful starting point for my project. I know this may be a ridiculous request but I would appreciate the decimal places on NMEA sentence LAT LON coordinates be increased from 5 to 7 decimal places...
Hi @jdadams-usgs I think there may be some confusion here regarding lat/lon formats and decimal precision. The native NMEA lat/lon format is degrees and decimal **minutes** ((d)ddmm.mmmmm) to 5dp - this is an NMEA protocol limitation - but pynmeagps converts this to decimal degrees ((d)dd.ddddddd) retaining the full...
0.0.1-alpha
f4e3763608d2232d9a0d4f47c600f4a1abd113d6
["tests.test_static.StaticTest::testDDD2DMM_HPMode", "tests.test_static.StaticTest::testDMM2DDD", "tests.test_constructor.FillTest::testFill_GNGLL", "tests.test_constructor.FillTest::testFill_GNGLL_HP", "tests.test_constructor.FillTest::testFill_GNGLL_NSEW1", "tests.test_constructor.FillTest::testFill_GNGLL_NSEW2", "te...
["tests.test_static.StaticTest::testBadChecksum", "tests.test_static.StaticTest::testCalcChecksum", "tests.test_static.StaticTest::testChecksumP", "tests.test_static.StaticTest::testChecksumS", "tests.test_static.StaticTest::testDDD2DMM", "tests.test_static.StaticTest::testDate2UTC", "tests.test_static.StaticTest::test...
["unittest.loader._FailedTest.tests::testsuite"]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
sighingnow__parsec.py-47
sighingnow/parsec.py
40903688c4f989877ff071aa207555b5194fdfe5
diff --git a/src/parsec/__init__.py b/src/parsec/__init__.py index 3779908..dcbe827 100644 --- a/src/parsec/__init__.py +++ b/src/parsec/__init__.py @@ -42,7 +42,7 @@ class ParseError(RuntimeError): return '<out of bounds index {!r}>'.format(self.index) def __str__(self): - return 'expected {...
python
diff --git a/src/parsec/tests/test_parsec.py b/src/parsec/tests/test_parsec.py index c99abc4..b768280 100644 --- a/src/parsec/tests/test_parsec.py +++ b/src/parsec/tests/test_parsec.py @@ -308,6 +308,16 @@ class ParsecCombinatorTest(unittest.TestCase): self.assertRaises(ParseError, parser.parse, ('1')) ...
2021-12-19T15:07:28+00:00Z
query on `separated` operation Hi there, I have a query on the operation of the `separated` function please. I'm not sure if this could be regarded as a bug or normal operation. Below is an example script showing how greediness in the choice combinator affects operation of the combinators derived from `separated`...
As a workaround, this would work for example: ```python def lookahead_fail(p: Parser): '''Parses without consuming and fails if successful (useful for implementing negation ''' @Parser def lookahead_parser(text, index): res = p(text, index) if res.status: r...
0.0.1-alpha
e89515d45c4999a93bfad7cab459f9c7cd333d56
["src.parsec.tests.test_parsec.ParsecCombinatorTest::test_excepts"]
["examples.test_calculator.TestAddition::test_addition_simple", "examples.test_calculator.TestAddition::test_bad_strings", "examples.test_json.TestJsonc::test_array", "examples.test_json.TestJsonc::test_empty", "examples.test_json.TestJsonc::test_nest", "examples.test_json.TestJsonc::test_number", "examples.test_json.T...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
vinitkumar__json2xml-151
vinitkumar/json2xml
92bccdaff6ead45e809bb962a1a88d9dd8778e7a
diff --git a/json2xml/dicttoxml.py b/json2xml/dicttoxml.py index 31e21ff..3229a1c 100755 --- a/json2xml/dicttoxml.py +++ b/json2xml/dicttoxml.py @@ -253,7 +253,7 @@ def dict2xml_str( else: # we can not use convert_dict, because rawitem could be non-dict subtree = convert( - rawitem, id...
python
diff --git a/tests/test_dict2xml.py b/tests/test_dict2xml.py index 9de6f85..c51f78b 100644 --- a/tests/test_dict2xml.py +++ b/tests/test_dict2xml.py @@ -211,3 +211,15 @@ class TestDict2xml: assert b'<?xml version="1.0" encoding="UTF-8" ?>' \ b'<root><a>1</a><a>2</a><a>3</a><non_flat_list><a>4</a><...
2022-09-18T18:23:42+00:00Z
dicttoxml: recursive array broken since json2xml 3.19.0 Sample `dicttoxml.dicttoxml([{'x':[1]}], root=False, attr_type=False)` **correct result in 3.18.x and before** `<item><x><item>1</item></x></item>` **wrong result since 3.19.x** `<item><item>1</item></item>` Problem: missing x-element (keyname in dict...
Thanks for spotting and contributing a fix for this. It has been merged, tagged and released. https://pypi.org/project/json2xml/3.19.5/
0.0.1-alpha
b30348501b1cd3209dacbc593d8ef1d99ac6543b
["tests.test_dict2xml.TestDict2xml::test_dict2xml_with_item_func_issue_151", "tests.test_dict2xml.TestDict2xml::test_dict2xml_issue_151"]
["tests.test_dict2xml.TestDict2xml::test_dict2xml_with_namespaces", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_xmlns_namespaces", "tests.test_dict2xml.TestDict2xml::test_dict2xml_with_xsi_location", "tests.test_dict2xml.TestDict2xml::test_dict2xml_xsi_xmlns", "tests.test_dict2xml.TestDict2xml::test_dict2xml_...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tinytag__tinytag-155
tinytag/tinytag
5107f8611192a166dfea4f75619377ab2d5bda49
diff --git a/README.md b/README.md index 39bfda9..cec3e9d 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ List of possible attributes you can get with TinyTag: tag.title # title of the song tag.track # track number as string tag.track_total # total number of tracks as string - ...
python
diff --git a/tinytag/tests/test_all.py b/tinytag/tests/test_all.py index abbb5dc..743e48b 100644 --- a/tinytag/tests/test_all.py +++ b/tinytag/tests/test_all.py @@ -73,7 +73,7 @@ testfiles = OrderedDict([ ('samples/utf-8-id3v2.mp3', {'extra': {}, 'genre': 'Acustico', 'track_total': '21', 'track'...
2022-09-29T12:55:31+00:00Z
[BUG] Parsing mp3 file w/ valid TDRC tag does not populate year **Describe the bug** When parsing a mp3 file w/ valid v2.4 metadata and a TDRC frame, TinyTag does not populate the year attribute in the output. **To Reproduce** Steps to reproduce the behavior: 1. Open a valid mp3 file w/ TinyTag 2. See `Fo...
Opening above 1s test file with following code: ```py from tinytag import TinyTag tag2 = TinyTag.get('test.mp3') print(tag2) ``` Outputs: ```txt 'Found id3 v2.4' 'Found id3 Frame TXXX at 20-38 of 2078' 'Setting field "text" to "major_brandmp42"' 'Found id3 Frame TXXX at 48-65 of 2078' 'Found id3 Fr...
0.0.1-alpha
e28a7f5bdb04c06fd0def2a0e4c3bd9e86180176
["tinytag.tests.test_all::test_file_reading[samples/utf-8-id3v2.mp3-expected8]", "tinytag.tests.test_all::test_file_reading[samples/id3v24-long-title.mp3-expected12]", "tinytag.tests.test_all::test_file_reading[samples/utf16be.mp3-expected13]", "tinytag.tests.test_all::test_file_reading[samples/id3v24_genre_null_byte.m...
["tinytag.tests.test_all::test_file_reading[samples/vbri.mp3-expected0]", "tinytag.tests.test_all::test_file_reading[samples/cbr.mp3-expected1]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header.mp3-expected2]", "tinytag.tests.test_all::test_file_reading[samples/vbr_xing_header_2channel.mp3-expected3]...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
tkem__cachetools-159
tkem/cachetools
d4b1569e74a57579727867d7c7055f8d6dfe1f2d
diff --git a/src/cachetools/__init__.py b/src/cachetools/__init__.py index d8b4922..478186c 100644 --- a/src/cachetools/__init__.py +++ b/src/cachetools/__init__.py @@ -22,7 +22,11 @@ import heapq import random import time -from .keys import hashkey +from .keys import hashkey as _defaultkey + + +def _methodkey(_, *...
python
diff --git a/tests/test_method.py b/tests/test_method.py index b41dac0..44dfcaf 100644 --- a/tests/test_method.py +++ b/tests/test_method.py @@ -21,10 +21,6 @@ class Cached: self.count += 1 return count - # https://github.com/tkem/cachetools/issues/107 - def __hash__(self): - raise Type...
2021-12-21T13:59:21+00:00Z
cachedmethod should optionally respect the state First of all thanks for this awesome package. I am using it alot lately! **The Issue:** Consider the following example: ```python class Number: def __init__(self, number): self.cache = LRUCache(maxsize=5) self.number = number @cachedm...
@c-thiel: Sorry for the late response - "real life" issues got in the way, somehow... `self` was actually part of the key function arguments until v3.0.0, see also #107. I considered this a bug/oversight, but to my surprise, this was used as an undocumented "feature" by quite a few. In retrospect, I should probab...
0.0.1-alpha
749a2c578b36cccf2c6c3366d3bfe2dd803142e5
["tests.test_method.CachedMethodTest::test_unhashable"]
["tests.test_cache.CacheTest::test_defaults", "tests.test_cache.CacheTest::test_delete", "tests.test_cache.CacheTest::test_getsizeof_param", "tests.test_cache.CacheTest::test_getsizeof_subclass", "tests.test_cache.CacheTest::test_insert", "tests.test_cache.CacheTest::test_missing", "tests.test_cache.CacheTest::test_mis...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pysmt__pysmt-563
pysmt/pysmt
49f9d9820c1c170161ceecabc90554253424b955
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b9127dd..05c2778 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,33 +53,33 @@ jobs: vmImage: 'Ubuntu-16.04' strategy: matrix: - Py27All: - PYTHON_VERSION: '2.7' - PYSMT_SOLVER: "all" + # Py27All: + ...
python
diff --git a/pysmt/test/test_nlira.py b/pysmt/test/test_nlira.py index bedb1a7..615845f 100644 --- a/pysmt/test/test_nlira.py +++ b/pysmt/test/test_nlira.py @@ -17,11 +17,11 @@ # from pysmt.test import TestCase, main -from pysmt.test import skipIfSolverNotAvailable +from pysmt.test import skipIfSolverNotAvailable, ...
2020-04-26T11:34:45+00:00Z
StrIndexof Typo in simplifier.py Hi, everyone. I believe there's a typo here: https://github.com/pysmt/pysmt/blob/6be9413fb14509c2af05427c0402fe4c87363626/pysmt/simplifier.py#L896 Shouldn't it be 'StrIndexOf' instead? Thanks.
That seems to be the case. Can you add a test case to reproduce the issue? Thanks See #569 . Thanks for reporting the issue.
0.0.1-alpha
0266f4fd9b9c73cbe4e412d795472311bcb275f4
["pysmt.test.test_oracles.TestOracles::test_types_oracle_divby0"]
["pysmt.test.smtlib.test_griggio.TestSmtLibParserGriggio::test_griggio", "pysmt.test.smtlib.test_smtlibscript.TestSmtLibScript::test_all_parsing", "pysmt.test.smtlib.test_smtlibscript.TestSmtLibScript::test_basic_operations", "pysmt.test.smtlib.test_smtlibscript.TestSmtLibScript::test_declare_sort", "pysmt.test.smtlib....
["unittest.loader._FailedTest.pysmt.test.smtlib::test_fuzzed", "unittest.loader._FailedTest.pysmt.test::test_cnf", "unittest.loader._FailedTest.pysmt.test::test_simplify"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pypa__readme_renderer-264
pypa/readme_renderer
34e27d3d658287d9a25e8117c3950e27aeda52a8
diff --git a/readme_renderer/clean.py b/readme_renderer/clean.py index 386e684..f610954 100644 --- a/readme_renderer/clean.py +++ b/readme_renderer/clean.py @@ -30,7 +30,7 @@ ALLOWED_TAGS = [ "br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div", "dl", "dt", "h1", "h2", "h3", "h4", "h5", "...
python
diff --git a/tests/fixtures/test_rst_figure.html b/tests/fixtures/test_rst_figure.html new file mode 100644 index 0000000..0975d30 --- /dev/null +++ b/tests/fixtures/test_rst_figure.html @@ -0,0 +1,3 @@ +<figure class="align-center"> +<img alt="https://raw.githubusercontent.com/schlatterbeck/plot-antenna/master/test/12...
2022-10-31T20:25:55+00:00Z
Recent upgrade of docutils seems to have broken formatting of RestructuredText descriptions **Description** Included graphics now have an un-rendered `<figure class="align-center">` start tag and end tag `</figure>` For an example see https://pypi.org/project/plot-antenna/1.0/ This worked previously for the same Re...
@schlatterbeck Thanks for the report - you mention citation references, but there are none in the example RST file you referenced. @miketheman : You claim that there are no citation refs in the RST file at: https://pypi.org/project/plot-antenna/1.0/ When you scroll to the end you see something like ``` [2] L....
0.0.1-alpha
665d5509af12f8de12e65d4e05d20b5b26c67879
["tests.test_rst::test_rst_fixtures[test_rst_figure.rst]"]
["tests.test_clean::test_invalid_link", "tests.test_markdown::test_missing_variant", "tests.test_noextra::test_no_extra[GFM]", "tests.test_noextra::test_no_extra[CommonMark]", "tests.test_rst::test_rst_fixtures[test_rst_tables.rst]", "tests.test_rst::test_rst_fixtures[test_rst_svg_attrs.rst]", "tests.test_rst::test_rst...
["tests.test_rst::test_rst_fixtures[test_rst_linkify.rst]", "tests.test_rst::test_rst_fixtures[test_rst_contents.rst]", "tests.test_rst::test_rst_fixtures[test_rst_bibtex.rst]", "tests.test_rst::test_rst_fixtures[test_rst_008.rst]"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
microsoftgraph__msgraph-sdk-python-core-692
microsoftgraph/msgraph-sdk-python-core
504bfaca51dc745704a97157e7559c2bb2d3d2aa
diff --git a/src/msgraph_core/requests/batch_request_item.py b/src/msgraph_core/requests/batch_request_item.py index e5f46e8..61fa480 100644 --- a/src/msgraph_core/requests/batch_request_item.py +++ b/src/msgraph_core/requests/batch_request_item.py @@ -42,7 +42,7 @@ class BatchRequestItem(Parsable): self.metho...
python
diff --git a/tests/requests/test_batch_request_item.py b/tests/requests/test_batch_request_item.py index f70c40f..4b14b48 100644 --- a/tests/requests/test_batch_request_item.py +++ b/tests/requests/test_batch_request_item.py @@ -50,6 +50,43 @@ def test_set_url(batch_request_item): assert batch_request_item.url == ...
2024-10-02T11:05:20+00:00Z
Batch requests are not replacing token placeholders in request URLs, resulting in bad payloads @shemogumbe To reproduce: ```python # Use the request builder to generate a regular # request to /me user_request = graph_client.me.to_get_request_information() today = datetime.today() tomorrow = today + timedel...
0.0.1-alpha
39a618f9f951fe6396aaa5514d3d9675d46c61ea
["tests.requests.test_batch_request_item::test_constructor_url_replacement", "tests.requests.test_batch_request_item::test_set_url_replacement", "tests.requests.test_batch_request_item::test_constructor_url_replacement_with_query"]
["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" }
mhe__pynrrd-164
mhe/pynrrd
93318db11e6f5f9b889ae8a9e2a1799ddc2d2026
diff --git a/nrrd/reader.py b/nrrd/reader.py index 4be406b..6692f5b 100644 --- a/nrrd/reader.py +++ b/nrrd/reader.py @@ -387,7 +387,8 @@ def read_data(header: NRRDHeader, fh: Optional[IO] = None, filename: Optional[st else: # Must close the file because if the file was opened above from detached filename,...
python
diff --git a/nrrd/tests/test_reading.py b/nrrd/tests/test_reading.py index ba3b9da..4721458 100644 --- a/nrrd/tests/test_reading.py +++ b/nrrd/tests/test_reading.py @@ -517,6 +517,12 @@ class Abstract: finally: nrrd.SPACE_DIRECTIONS_TYPE = 'double matrix' + def test_file_parameter...
2025-01-23T04:53:30+00:00Z
read_data(_, file) closes file prematurely I'm receiving NRRD files over a network. I want to use pynrrd to parse and validate those files while they're in memory before they've been saved to disk. I am passing in a file object to `nrrd.read_data()`. I want to keep using that file object afterwards but `nrrd.read_dat...
0.0.1-alpha
e31ba48fef59ab97fb83bcd4aa4929b9da03e990
["nrrd.tests.test_reading.TestReadingFunctionsFortran::test_file_parameter_not_closed", "nrrd.tests.test_reading.TestReadingFunctionsC::test_file_parameter_not_closed"]
["nrrd.tests.test_formatting.TestFieldFormatting::test_format_matrix", "nrrd.tests.test_formatting.TestFieldFormatting::test_format_number", "nrrd.tests.test_formatting.TestFieldFormatting::test_format_number_list", "nrrd.tests.test_formatting.TestFieldFormatting::test_format_optional_matrix", "nrrd.tests.test_formatti...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
wjohnson__pyapacheatlas-60
wjohnson/pyapacheatlas
dad40f3cad7b73425c6da31710934da315cfac5b
diff --git a/pyapacheatlas/core/client.py b/pyapacheatlas/core/client.py index 1e676ca..1f96b6d 100644 --- a/pyapacheatlas/core/client.py +++ b/pyapacheatlas/core/client.py @@ -814,18 +814,24 @@ class AtlasClient(): if isinstance(batch, list): # It's a list, so we're assuming it's a list of enti...
python
diff --git a/tests/unit/client/test_prep_validate.py b/tests/unit/client/test_prep_validate.py index 8becb3f..af92ab3 100644 --- a/tests/unit/client/test_prep_validate.py +++ b/tests/unit/client/test_prep_validate.py @@ -69,4 +69,37 @@ def test_prepare_bulk_entity_from_atlas_entity(): expected = {"entities": [sa...
2021-01-10T04:24:00+00:00Z
AtlasClient.upload_entities should handle AtlasEntity Currently upload_entities only supports a dictionary or list of dictionaries. It should handle a single AtlasEntity or a list of AtlasEntities. If the batch is a dictionary of `"entities: []` then assume they are passing in a list of dicts already since they know ...
Closed by #61
0.0.1-alpha
db1a67a474526b31065579d2e01c72ea0f99d088
["tests.unit.client.test_prep_validate::test_prepare_bulk_entity_from_mixed_atlas_entity_dict"]
["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_purview_client::test_purview_client", "tests.unit.client.te...
["tests.integration.test_purview::test_purview_client_integration"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-131
pyprojectx/pyprojectx
20ab28a1f01b273aa5305beb7c4e3829e015aa34
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0786ad0..210cb78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### Features & Improvements +- #131 creating an alias for a script with the same name gives errors +- #130 scripts_ctx isn't optimal and needs two venvs + Release v3.1.1 (2024-11-13) ---------...
python
diff --git a/tests/data/scripts/aliased-script.py b/tests/data/scripts/aliased-script.py new file mode 100644 index 0000000..2ae2839 --- /dev/null +++ b/tests/data/scripts/aliased-script.py @@ -0,0 +1,1 @@ +pass diff --git a/tests/data/test.toml b/tests/data/test.toml index e4551d3..ff9d35b 100644 --- a/tests/data/test...
2024-11-15T10:36:05+00:00Z
creating an alias for a script with the same name gives errors Defining an alias with exactly the same name as a script, always results in an _is ambiguous_ error when ran. Solution: give the alias a higher priority to make it possible to call the script from the alias. F.e, alias _bin/my-script_ ```toml [tool.p...
0.0.1-alpha
f63abea93365408e8d10242f181eb27dd581e6db
["tests.integration.test_pw::test_alias_abbreviations"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.integration.test_pw::test_lock", "tests.integration.test_pw::test_automatic_lock_update", "tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
open-feature__python-sdk-326
open-feature/python-sdk
c3ad697a80ade72fb5cdee147ac5c11c38e6533f
diff --git a/openfeature/_event_support.py b/openfeature/_event_support.py index 26753b0..42e6250 100644 --- a/openfeature/_event_support.py +++ b/openfeature/_event_support.py @@ -1,5 +1,6 @@ from __future__ import annotations +import threading from collections import defaultdict from typing import TYPE_CHECKING,...
python
diff --git a/tests/test_client.py b/tests/test_client.py index dc25abe..b51c460 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,3 +1,6 @@ +import time +import uuid +from concurrent.futures import ThreadPoolExecutor from unittest.mock import MagicMock import pytest @@ -356,3 +359,28 @@ def test_pr...
2024-05-02T14:42:43+00:00Z
Safe handler dictionary iteration I got this stack trace while running tests. I imagine it is a very rare race condition: Can we make the handler data object safe for multi-threading? ``` tests/e2e/inprocess/grpc/test_inprocess_grpc_reconnect.py::test_provider_unavailable /Users/c.bailey/Library/Application Su...
Relates to https://github.com/open-feature/python-sdk/issues/96. @colebaileygit would this be something you would be willing to help with? FYI @federicobond @gruebel @toddbaert Thanks for reporting @colebaileygit, it's nice to have an existence proof for the thread-safety issues we knew were there. I wrote a test t...
0.0.1-alpha
3217575f4f87587751e47707384c344c185b684c
["tests.test_client::test_client_handlers_thread_safety"]
["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" }
sibson__redbeat-101
sibson/redbeat
7462b2ddfbeaae7a2c6dfb637eb21b1c477338a1
diff --git a/redbeat/schedulers.py b/redbeat/schedulers.py index a8e358a..db3d547 100644 --- a/redbeat/schedulers.py +++ b/redbeat/schedulers.py @@ -191,13 +191,15 @@ class RedBeatConfig: self.key_prefix = self.either_or('redbeat_key_prefix', 'redbeat:') self.schedule_key = self.key_prefix + ':schedul...
python
diff --git a/tests/test_config.py b/tests/test_config.py index a8ca545..fd57f94 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -29,6 +29,16 @@ class test_RedBeatConfig(AppCase): self.conf = RedBeatConfig(self.app) self.assertEqual(self.conf.key_prefix, 'test-prefix:') + def test_...
2025-02-16T19:59:11+00:00Z
lock cannot be disabled Cannot disable lock. Setting > redbeat_lock_key = None is not working. It uses "either_or" with a **_default_** value, so setting it None is useless
Here's my temp fix until this gets merged into a packaged version: In package `myredbeat` in `schedulers.py`: ``` class MyBeatConfig(redbeat.schedulers.RedBeatConfig): # Override the RedBeatConfig because it won't allow self.lock_key = None even though it's valid # See https://github.com/sibson/redbeat/i...
0.0.1-alpha
efc9256a04d898fe9ca0b9b95c7956b769da30ab
["tests.test_config.test_RedBeatConfig::test_lock_key_might_be_set_to_none", "tests.test_config.test_RedBeatConfig::test_lock_key_override"]
["tests.test_config.test_RedBeatConfig::test_app", "tests.test_config.test_RedBeatConfig::test_either_or", "tests.test_config.test_RedBeatConfig::test_key_prefix_default", "tests.test_config.test_RedBeatConfig::test_key_prefix_override", "tests.test_config.test_RedBeatConfig::test_lock_timeout", "tests.test_config.test...
["tests.test_scheduler.SentinelRedBeatCase::test_sentinel_scheduler_options"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
sixty-north__cosmic-ray-565
sixty-north/cosmic-ray
8635099f2fd7f4e4e912d888e8f47b79b3e22f5c
diff --git a/src/cosmic_ray/operators/binary_operator_replacement.py b/src/cosmic_ray/operators/binary_operator_replacement.py index 0aaadd5..875a404 100644 --- a/src/cosmic_ray/operators/binary_operator_replacement.py +++ b/src/cosmic_ray/operators/binary_operator_replacement.py @@ -65,7 +65,13 @@ def _is_binary_opera...
python
diff --git a/tests/unittests/operators/test_binary_operator_replacement.py b/tests/unittests/operators/test_binary_operator_replacement.py index a39eb8f..40d8c6c 100644 --- a/tests/unittests/operators/test_binary_operator_replacement.py +++ b/tests/unittests/operators/test_binary_operator_replacement.py @@ -1,11 +1,42 ...
2025-08-31T17:01:26+00:00Z
Pipe operator mutation in the type hint of annotated assignment survives ```python def example_function(n: int | str) -> str | int: value: str | int = ( "Hello" if isinstance(n, int) and (n | 0xFF) == 0x1FF else 1 if isinstance(n, str) and n == "hi" else 2 ) return ...
@ashres Is this resolved now? > [@ashres](https://github.com/ashres) Is this resolved now? Yes, thank you!
0.0.1-alpha
f5f4235b835c54cf73719711c2775727ebb663e9
["tests.unittests.operators.test_binary_operator_replacement::test_pipe_operator_in_assignment_annotation_not_mutated_as_binary_operator", "tests.unittests.operators.test_binary_operator_replacement::test_pipe_operator_in_local_assignment_annotation_not_mutated_as_binary_operator"]
["tests.e2e.test_e2e::test_baseline_with_explicit_session_file[local-unittest]", "tests.e2e.test_e2e::test_baseline_with_explicit_session_file[local-pytest]", "tests.e2e.test_e2e::test_baseline_with_temp_session_file[local-unittest]", "tests.e2e.test_e2e::test_baseline_with_temp_session_file[local-pytest]", "tests.e2e....
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
macbre__sql-metadata-580
macbre/sql-metadata
3d0c043fb22efdd5b2837507f5bfce9c053bc10a
diff --git a/sql_metadata/keywords_lists.py b/sql_metadata/keywords_lists.py index 4414356..5585784 100644 --- a/sql_metadata/keywords_lists.py +++ b/sql_metadata/keywords_lists.py @@ -65,6 +65,7 @@ COLUMNS_SECTIONS = { "INTO": "insert", "SET": "update", "GROUPBY": "group_by", + "INNERJOIN": "inner_jo...
python
diff --git a/test/test_getting_columns.py b/test/test_getting_columns.py index 7453176..ab89148 100644 --- a/test/test_getting_columns.py +++ b/test/test_getting_columns.py @@ -528,3 +528,16 @@ def test_nested_queries(): parser = Parser(query) assert parser.columns == ["dt"] assert parser.columns_dict ==...
2025-08-25T19:49:26+00:00Z
Cannot access columns before tables This code ``` from sql_metadata import Parser sql1 = "SELECT loan.loan_id, district.a3 AS district, district.a11 AS average_salary FROM loan INNER JOIN account ON loan.account_id = account.account_id INNER JOIN district ON account.district_id = district.district_id WHERE loan.dur...
0.0.1-alpha
9bf6281baae546e87e1f2bc8847907525b1fbbbe
["test.test_getting_columns::test_double_inner_join"]
["test.test_aliases::test_get_query_table_aliases", "test.test_aliases::test_select_aliases", "test.test_aliases::test_tables_aliases_are_resolved", "test.test_alter::test_alter_table_indices_key", "test.test_alter::test_alter_table_indices_index", "test.test_caching::test_cleared_cache", "test.test_column_aliases::tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mivade__argparse_dataclass-62
mivade/argparse_dataclass
d902568212d42f2e168d7bcac14787201b146cc3
diff --git a/argparse_dataclass.py b/argparse_dataclass.py index 9f65be8..8ac550c 100644 --- a/argparse_dataclass.py +++ b/argparse_dataclass.py @@ -334,7 +334,7 @@ def _add_dataclass_options( raise TypeError("cls must be a dataclass") for field in fields(options_class): - args = field.metadata.g...
python
diff --git a/tests/test_argumentparser.py b/tests/test_argumentparser.py index 14127ec..70482fe 100644 --- a/tests/test_argumentparser.py +++ b/tests/test_argumentparser.py @@ -142,10 +142,6 @@ class ArgumentParserTests(unittest.TestCase): params = ArgumentParser(Options).parse_args(["--name", "john doe"]) ...
2024-12-17T18:03:29+00:00Z
make field.name.replace('_', '-') optional in some case we want to keep the underscode in the argument names, it would be great to have a boolean argument added to _add_dataclass_options to allow that
If no one else is planning on working on this, I can implement it. Closed by #64. Thanks, @jcal-15!
0.0.1-alpha
596a82e7737db15b642c71f26497349c83cf2d43
["tests.test_argumentparser.ArgumentParserTests::test_keep_underscores"]
["tests.test_argumentgroups.ArgumentParserGroupsTests::test_argument_groups", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_dict", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_dict_description", "tests.test_argumentgroups.ArgumentParserGroupsTests::test_basic_empty", "tests.test_a...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__fabric-cicd-135
microsoft/fabric-cicd
c73af2c317392731a5471672681fad5f2e08e553
diff --git a/src/fabric_cicd/_common/_fabric_endpoint.py b/src/fabric_cicd/_common/_fabric_endpoint.py index 7857a22..47349d6 100644 --- a/src/fabric_cicd/_common/_fabric_endpoint.py +++ b/src/fabric_cicd/_common/_fabric_endpoint.py @@ -245,8 +245,9 @@ def _handle_response( ): handle_retry( a...
python
diff --git a/tests/test__fabric_endpoint.py b/tests/test__fabric_endpoint.py index 9cd5ab9..2fcfee9 100644 --- a/tests/test__fabric_endpoint.py +++ b/tests/test__fabric_endpoint.py @@ -357,7 +357,7 @@ def test_handle_response_item_display_name_already_in_use(setup_mocks): dl, mock_requests = setup_mocks respo...
2025-03-10T20:27:26+00:00Z
Increase wait time for reserved name ### What is the feature? The retry period when an 'Item name is reserved' should be increased to at least 5 minutes to account for delay enforced by upstream API. ![Image](https://github.com/user-attachments/assets/f27bc5fc-6ea4-4e9b-b0bb-afec1500a05d) ### Additional context _...
0.0.1-alpha
bd3d8037fca93a53315ef70d35a86ce11bde03f3
["tests.test__fabric_endpoint::test_handle_response_item_display_name_already_in_use"]
["tests.test__check_utils::test_check_file_type_text", "tests.test__check_utils::test_check_file_type_binary", "tests.test__check_utils::test_check_file_type_image", "tests.test__fabric_endpoint::test_integration", "tests.test__fabric_endpoint::test_performance", "tests.test__fabric_endpoint::test_invoke[invoke]", "tes...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
microsoft__vscode-mypy-119
microsoft/vscode-mypy
f4937f34b31a2c4df8d672c2739718b692af2047
diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index ff1bf0b..c859c37 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -119,17 +119,23 @@ def _linting_helper(document: workspace.Document) -> None: result.stdout, settings["severity"] ) ...
python
diff --git a/src/test/python_tests/test_data/sample1/sample3.py b/src/test/python_tests/test_data/sample1/sample3.py new file mode 100644 index 0000000..b4f2402 --- /dev/null +++ b/src/test/python_tests/test_data/sample1/sample3.py @@ -0,0 +1,6 @@ +"""A Sample file with no errors.""" + + +x: str = "Hello" + +print(x) d...
2023-08-23T17:27:51+00:00Z
Error message persists after fix/save mypy: 1.5.0 extension: v2023.3.12231010 vscode: Version: 1.82.0-insider Commit: 2d9cc42045edf3458acbddf3d645bba993f82696 If I have a type error: ``` a: int = "asd" Error: Incompatible types in assignment (expression has type "str", variable has type "int") ``` And...
My observation is that this is happening when I clear the *last* error in my file. If I introduce a new error, the one I just fixes disappears and the problem moves onto the new error... If I restart the extension, the issue resolves. Furthermore - inspecting the 'Output' of Mypy Type Checker, shows that the file is...
0.0.1-alpha
4529f484a52bdc653b54aa44483253845fbc92ef
["src.test.python_tests.test_linting::test_file_with_no_errors_generates_empty_diagnostics", "src.test.python_tests.test_linting::test_file_with_no_errors_generates_empty_diagnostics_workspace_mode"]
["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" }
simonw__strip-tags-12
simonw/strip-tags
a34e1e130a9061963168d2f5808010a60bf8b4b9
diff --git a/strip_tags/lib.py b/strip_tags/lib.py index d4c00e3..794b32d 100644 --- a/strip_tags/lib.py +++ b/strip_tags/lib.py @@ -1,7 +1,7 @@ import re from typing import Iterable, Optional -from bs4 import BeautifulSoup +from bs4 import BeautifulSoup, NavigableString # Elements that should be followed by a n...
python
diff --git a/tests/test_strip_tags.py b/tests/test_strip_tags.py index 24edde1..7e683b6 100644 --- a/tests/test_strip_tags.py +++ b/tests/test_strip_tags.py @@ -48,6 +48,12 @@ TEST_PARAMETERS = ( [], "FooBar\n", ), + # Even with --minify <pre> tag content should be unaffected + ( + "...
2023-06-18T06:34:55+00:00Z
`--minify` should not affect whitespace inside `<pre>` tags Because whitespace is meaningful in Python, and I want to still be able to do interesting things with Python code.
Example using https://simonwillison.net/2018/Dec/19/fast-autocomplete-search/ - which includes this big block of syntax-highlighted text (so lots of nested spans inside a pre tag): <img width="685" alt="image" src="https://github.com/simonw/strip-tags/assets/9599/771cbd7d-7e14-4271-8363-27809436e597"> Running thi...
0.0.1-alpha
0869c8fef7bde725ab52894928380a9855bbf56d
["tests.test_strip_tags::test_strip_cli[False-<pre>this\\n has\\n spaces</pre>-selectors11-this\\n has\\n spaces\\n]", "tests.test_strip_tags::test_strip_cli[True-<pre>this\\n has\\n spaces</pre>-selectors11-this\\n has\\n spaces\\n]", "tests.test_strip_tags::test_strip_lib[<pre>this\\n has\\n space...
["tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-selectors0-Hello world\\n]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-selectors1-Hello world\\n]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-selectors2-world\\n]", "tests.test_strip_tags::t...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
workhorsy__py-cpuinfo-150
workhorsy/py-cpuinfo
9718cdc7c7fa578c55f97eef9bf0f4074d0c5f22
diff --git a/ChangeLog b/ChangeLog index 521c8c1..cc1626e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * Release 7.0.0 + * Fixed Bug #150: Change 'byte code' to 'machine code' * Fixed Bug #128: Overhead from generating machine code throws off CPUID HZ * Fixed Bug #136: On non BeOS systems, calling sysinf...
python
diff --git a/tests/helpers.py b/tests/helpers.py index dab5069..ee5c92f 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -270,7 +270,7 @@ def monkey_patch_cpuid(cpuinfo, return_hz, return_values): _counter = 0 _is_first = False - def _asm_func(self, restype=None, argtypes=(), byte_code=[]): + def _asm_...
2020-06-23T04:26:11+00:00Z
Change 'byte code' to 'machine code' I've been saying "byte code" and "machine code" interchangeably. Byte code runs in a VM. Machine code runs on a CPU. Change it to "machine code".
0.0.1-alpha
2b581b189d5913afa5ce93099af3a7ac3e9cca0e
["test_cpuid.TestCPUID::test_normal"]
["test_linux_fedora_5_s390x.TestLinuxFedora_5_s390x::test_all", "test_linux_fedora_5_s390x.TestLinuxFedora_5_s390x::test_get_cpu_info_from_dmesg", "test_linux_fedora_5_s390x.TestLinuxFedora_5_s390x::test_get_cpu_info_from_lscpu", "test_linux_fedora_5_s390x.TestLinuxFedora_5_s390x::test_get_cpu_info_from_proc_cpuinfo", ...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pretix__python-drafthorse-33
pretix/python-drafthorse
02f2e72e6b75b9fc357ae85f44d78e674eae2d96
diff --git a/drafthorse/models/document.py b/drafthorse/models/document.py index 93f5c9b..4b0e923 100644 --- a/drafthorse/models/document.py +++ b/drafthorse/models/document.py @@ -80,13 +80,13 @@ class Header(Element): _d="Indikator Original/Kopie", ) languages = MultiStringField(NS_RAM, "LanguageID...
python
diff --git a/tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml b/tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml new file mode 100644 index 0000000..f1ab846 --- /dev/null +++ b/tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml @@ -0,0 +1,345 @@ +...
2024-10-04T13:17:18+00:00Z
IncludedNote and EffectiveSpecifiedPeriod in wrong order for schema "FACTUR-X_EXTENDED" Thank you so much for maintaining this for all of us out here :) I tried to serialize an invoice including values in - doc.header.notes - doc.header.effective_period.complete this didn't work as it is specified in this te...
it seems like the order of creation in the class definition of the Header is reflected in xml: https://github.com/pretix/python-drafthorse/blob/5ed87a6f99919156609408b2ecf619f2c82e9b31/drafthorse/models/document.py#L83-L89 moving that one line about the notes up fixes the error for this template, it seems like th...
0.0.1-alpha
b441c4c94337e2648ad22bfb65e2d23661a2f803
["tests.test_roundtrip::test_sample_roundtrip[zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml]"]
["tests.test_mininal::test_readme_construction_example_pdf16[380]", "tests.test_mininal::test_readme_construction_example_pdf17[380]", "tests.test_mininal::test_readme_construction_example_pdf17_en16931[380]", "tests.test_mininal::test_readme_construction_example_pdf17_xrechnung2[380]", "tests.test_mininal::test_readme...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
ranaroussi__yfinance-2158
ranaroussi/yfinance
a8f0998ab80a60a6ac6759d594dd8303971f2db6
diff --git a/yfinance/screener/screener.py b/yfinance/screener/screener.py index cf6e168..01ff667 100644 --- a/yfinance/screener/screener.py +++ b/yfinance/screener/screener.py @@ -67,9 +67,22 @@ class Screener: """ return self._predefined_bodies - def set_default_body(self, query: Query, offset:...
python
diff --git a/tests/test_screener.py b/tests/test_screener.py index 17f4988..0ec6c20 100644 --- a/tests/test_screener.py +++ b/tests/test_screener.py @@ -13,7 +13,7 @@ class TestScreener(unittest.TestCase): self.query = EquityQuery('gt',['eodprice',3]) def test_set_default_body(self): - self.scree...
2024-12-05T22:36:20+00:00Z
Change `Screener.set_predefined_body` and `Screener.set_body` to respond with the class I want to change `Screener.set_predefined_body` and `Screener.set_body` to respond with the class. This would reduce ```python s = yf.Screener() s.set_predefined_body("day_gainers") r=s.response ``` to ```python r = yf...
@ericpien
0.0.1-alpha
f5264649b94eddfe6d559eb1f1b737176175aa74
["tests.test_screener.TestScreener::test_patch_body", "tests.test_screener.TestScreener::test_set_body", "tests.test_screener.TestScreener::test_set_default_body", "tests.test_screener.TestScreener::test_set_large_size_in_body", "tests.test_screener.TestScreener::test_set_predefined_body"]
["tests.test_screener.TestScreener::test_fetch", "tests.test_screener.TestScreener::test_fetch_and_parse", "tests.test_screener.TestScreener::test_patch_body_extra_keys", "tests.test_screener.TestScreener::test_set_body_extra_keys", "tests.test_screener.TestScreener::test_set_body_missing_keys", "tests.test_screener.Te...
["unittest.loader._FailedTest.tests::test_price_repair", "unittest.loader._FailedTest.tests::test_prices", "unittest.loader._FailedTest.tests::test_ticker", "unittest.loader._FailedTest.tests::test_utils"]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
more-itertools__more-itertools-586
more-itertools/more-itertools
775e4974292431acbda362b208d6b9b78bf1b07c
diff --git a/more_itertools/more.py b/more_itertools/more.py index e54eea6..e325072 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -3327,6 +3327,27 @@ def only(iterable, default=None, too_long=None): return first_value +class _IChunk: + def __init__(self, iterable, n): + self._it...
python
diff --git a/tests/test_more.py b/tests/test_more.py index f6d5139..7cdb7db 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -23,10 +23,11 @@ from itertools import ( ) from operator import add, mul, itemgetter from pickle import loads, dumps +from platform import python_implementation from random import ...
2021-12-06T18:08:17+00:00Z
ichunked caches items even when it doesn't need to ichunked makes tees for every chunk, which lets us iterate on chunks out of order, but also _always_ creates a cache within the chunk, even if we iterate through all the chunks in order.
0.0.1-alpha
b469c17e2bb48d7b9aca11365e112736b8e814f6
["tests.test_more.IchunkedTests::test_memory_in_order"]
["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" }
oscal-compass__compliance-trestle-1798
oscal-compass/compliance-trestle
bdb64444971275aed458dee85e1222fc4f77fd48
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 049d301..8ec997d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ To contribute code or documentation, please submit a [pull request](https://gith A good way to familiarize yourself with the codebase and contribution process is to look for and t...
python
diff --git a/tests/trestle/core/commands/author/ssp_test.py b/tests/trestle/core/commands/author/ssp_test.py index ec4df8d..0df5ce3 100644 --- a/tests/trestle/core/commands/author/ssp_test.py +++ b/tests/trestle/core/commands/author/ssp_test.py @@ -1160,14 +1160,19 @@ def test_ssp_gen_and_assemble_add_props(tmp_trestle...
2025-01-22T12:34:09+00:00Z
x-trestle-add-props duplicates props on every ssp-assemble ## Describe the bug Calling `trestle author ssp-assemble` when there have been no changes results in duplicating every prop added with `x-trestle-add-props` ## To Reproduce Steps to reproduce the behavior: 1. `trestle author ssp-generate -p sc81-pr...
0.0.1-alpha
b261eadc99da57bba3fd5df038b66efd7ba1156e
["tests.trestle.core.commands.author.ssp_test::test_ssp_gen_and_assemble_add_props"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
tanghaibao__jcvi-227
tanghaibao/jcvi
2aa7100130a11846fb328cc18d106a36ec3ae76f
diff --git a/jcvi/assembly/allmaps.py b/jcvi/assembly/allmaps.py index 50d5ed3..0e8f917 100644 --- a/jcvi/assembly/allmaps.py +++ b/jcvi/assembly/allmaps.py @@ -661,7 +661,7 @@ class Weights(DictFile): logging.debug("Map weights: {0}".format(self.items())) def update_maps(self, mapnames, default=1): - ...
python
diff --git a/tests/assembly/test_allmaps.py b/tests/assembly/test_allmaps.py new file mode 100644 index 0000000..7aa7c7c --- /dev/null +++ b/tests/assembly/test_allmaps.py @@ -0,0 +1,13 @@ +import pytest +import os.path as op + + +def test_weights(): + from jcvi.assembly.allmaps import Weights + + weightsfile = o...
2020-03-28T15:21:21+00:00Z
jcvi.assembly.allmaps path ERROR Hi @tanghaibao, I'm getting this error, I can't understand why. Something wrong in the installation, on the other cluster I'm working with command and files work. ``` 11:30:38 [base] Set text.usetex=False. Font styles may be inconsistent. 11:30:38 [base] Load file `Hheu.scaff....
@francicco Thanks for reporting the bug that impacts python2. I just added the fix and test case. Please checkout the latest commit and let me know if it works for you. In the future, we will drop the support for python2, so if you can, please move to python3 soon. Thanks, Haibao Hi @tanghaibao, I'm still...
0.0.1-alpha
37a1943e5dd7a8fb7dbb252ee6beb3901c51af7e
["tests.assembly.test_allmaps::test_weights"]
["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" }
redcanaryco__surveyor-110
redcanaryco/surveyor
bd3b60dec67273d70a5742e01e2ac5d8f96042d0
diff --git a/definitions/remote-admin.json b/definitions/remote-admin.json index 47a5cd7..dda81e1 100644 --- a/definitions/remote-admin.json +++ b/definitions/remote-admin.json @@ -1,4 +1,4 @@ -{{ +{ "AweRay (AweSun)": { "process_name": ["aweray_remote*.exe"], "domain": ["asapi.aweray.net", @@ -...
python
diff --git a/tests/test_sentinel_one.py b/tests/test_sentinel_one.py index 09ba9a8..768790d 100644 --- a/tests/test_sentinel_one.py +++ b/tests/test_sentinel_one.py @@ -4,7 +4,7 @@ import os import logging import json from datetime import datetime, timedelta -from unittest.mock import patch +from unittest.mock impor...
2023-08-09T15:16:41+00:00Z
[FR] SentinelOne PowerQuery Performance ## Which category is the feature part of? - [ ] Definition File - [x] Code/Logic Feature - [ ] Other (please explain) ## Which product is the feature part of? - [ ] All Products - [ ] Carbon Black Response - [ ] Carbon Black Threat Hunter - [ ] Defender for Endpoints ...
0.0.1-alpha
8e77157a56648169fff972efaaf826925fbdd3a9
["tests.test_sentinel_one::test_nested_process_search_pq", "tests.test_sentinel_one::test_nested_process_search_pq_over_max_char_limit", "tests.test_sentinel_one::test_get_query_text_handles_same_field_different_tag_dv", "tests.test_sentinel_one::test_get_query_text_handles_different_fields_different_tag_dv"]
["tests.test_cortex_xdr::test_build_query_with_supported_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_cortex_xdr::test_process_search", "tests.test_cortex_xdr::test_nested_pr...
["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" }
oscal-compass__compliance-trestle-1833
oscal-compass/compliance-trestle
b643059ba0afa85b3dae71daf0a12d507d2bac2b
diff --git a/trestle/core/ssp_io.py b/trestle/core/ssp_io.py index f938bba..f398ae3 100644 --- a/trestle/core/ssp_io.py +++ b/trestle/core/ssp_io.py @@ -17,8 +17,7 @@ import pathlib from typing import Dict, List, Optional, Tuple from trestle.common.common_types import TypeWithByComps -from trestle.common.const impo...
python
diff --git a/tests/test_utils.py b/tests/test_utils.py index 5f583b8..68864fa 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -485,7 +485,8 @@ def setup_for_ssp( output_name: str, use_yaml: bool = False, leveraged_ssp_name: str = '', - comp_names='comp_def_a,comp_def_b' + comp_names='...
2025-03-17T22:17:50+00:00Z
get_control_response missing "This System" component ## Describe the bug For controls with statements, the "This System" implementation statements are missing from the individual parts. This appears to be a [regression introduced](https://github.com/oscal-compass/compliance-trestle/pull/1358/files?diff=unified&w=0#d...
0.0.1-alpha
0520515e68c9df02cfa5f9fe38cb9db3270eef30
["tests.trestle.core.ssp_io_test::test_ssp_get_control_response"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
stphivos__django-mock-queries-186
stphivos/django-mock-queries
87362006e10f99a7f2120780b2018126026fe3df
diff --git a/django_mock_queries/mocks.py b/django_mock_queries/mocks.py index 82d71eb..27b1119 100644 --- a/django_mock_queries/mocks.py +++ b/django_mock_queries/mocks.py @@ -13,7 +13,6 @@ from unittest.mock import Mock, MagicMock, patch, PropertyMock from types import MethodType -from .constants import DjangoMo...
python
diff --git a/tests/test_mocks.py b/tests/test_mocks.py index 5505c85..08367f5 100644 --- a/tests/test_mocks.py +++ b/tests/test_mocks.py @@ -486,6 +486,27 @@ class TestMockers(TestCase): self.assertIsInstance(objects['added'], Car) self.assertEqual(objects['added'], objects['car']) + def test_mod...
2024-09-11T16:00:41+00:00Z
Delete does not work with nested `ModelMocker` I'm unsure if I'm mishandling something, but the following doesn't seem to work: ```python from django_mock_queries.mocks import ModelMocker from my_app.models import One, Two with ( ModelMocker(One), ModelMocker(Two, outer=False) ): one = One.obje...
0.0.1-alpha
978e0300236ce0fa1f6dd3348d154380c35237fb
["tests.test_mocks.TestMockers::test_model_mocker_delete_from_instance_with_nested_context_manager"]
["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" }
weaviate__weaviate-python-client-55
weaviate/weaviate-python-client
44192bc509248cf871f95b7f98f88e88ee0abd9a
diff --git a/weaviate/client.py b/weaviate/client.py index 5c972aa..91a3560 100644 --- a/weaviate/client.py +++ b/weaviate/client.py @@ -1,4 +1,5 @@ -from typing import Optional, Tuple +from typing import Optional, Tuple, Union +from numbers import Real from weaviate.exceptions import UnexpectedStatusCodeException, Re...
python
diff --git a/test/connection/test_connection.py b/test/connection/test_connection.py index b87295b..331e57d 100644 --- a/test/connection/test_connection.py +++ b/test/connection/test_connection.py @@ -74,7 +74,7 @@ class TestConnection(unittest.TestCase): mock_session.get.side_effect = None mock_respo...
2021-06-30T11:04:14+00:00Z
FIX: Python Client's TIMEOUT docstring and validation The Current implementation of the weaviate python client has a wrong assumption of the `requests` library's `timeout` parameter. Currently is assumes only tuples of ints where it looks like this (retries, timeout seconds) which is wrong. The `timeout` parameter can...
Added in version >=3.0.0
0.0.1-alpha
069150696459ade8a8b02b3722b926d0dc9814bc
["test.connection.test_connection.TestConnection::test__refresh_authentication", "test.test_util.TestUtil::test__get_valid_timeout_config"]
["test.gql.test_filter.TestNearText::test___init__", "test.gql.test_filter.TestNearText::test___str__", "test.gql.test_filter.TestNearObject::test___init__", "test.gql.test_filter.TestNearObject::test___str__", "test.tools.test_batcher.TestBatcher::test_auto_commit_timeout", "test.tools.test_batcher.TestBatcher::test_a...
["test.classification.test_classification.TestClassification::test_get", "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" }
more-itertools__more-itertools-820
more-itertools/more-itertools
5490f10af2d11b442753bb2849597bed9d657e62
diff --git a/docs/api.rst b/docs/api.rst index 51e8107..a6a32c5 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -234,6 +234,7 @@ These tools yield combinatorial arrangements of items from iterables. .. autofunction:: combination_with_replacement_index .. autofunction:: gray_product .. autofunction:: outer_product +....
python
diff --git a/tests/test_more.py b/tests/test_more.py index 56a8637..0960190 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -5761,3 +5761,24 @@ class FilterMapTests(TestCase): ) expected = [1, 2, 3] self.assertEqual(actual, expected) + + +class PowersetOfSetsTests(TestCase): + ...
2024-03-21T15:10:09+00:00Z
Add powerset_of_sets() The existing `powerset()` recipe yields tuples. If actual sets are needed, the obvious extension `map(set, powerset(iterable))`, does not perform well because the `__hash__()` method is called `n * 2**(n-1)` times. A better approach is to create sets of size 1 and them merge them as needed w...
What should `powerset_of_sets([1,2,2])` yield? Your code yields `set() {1} {2} {2} {1, 2} {1, 2} {2} {1, 2}`. Would it be better to apply `set()` to the input so it yields `set() {1} {2} {1, 2}`? > Would it be better to apply set() to the input so it yields set() {1} {2} {1, 2}? That makes sense because the mathemat...
0.0.1-alpha
53b2aee41fa508461f6153f2270c979c531f3d43
["tests.test_more.PowersetOfSetsTests::test_hash_count", "tests.test_more.PowersetOfSetsTests::test_simple"]
["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" }
theandrew168__bronzebeard-8
theandrew168/bronzebeard
f1ba40c1b5d14a86b70aad634c9eaf89b97d06ff
diff --git a/bronzebeard/asm.py b/bronzebeard/asm.py index 95fc5c6..b1b2ec6 100644 --- a/bronzebeard/asm.py +++ b/bronzebeard/asm.py @@ -249,6 +249,9 @@ def b_type(rs1, rs2, imm, *, opcode, funct3): def u_type(rd, imm, *, opcode): rd = lookup_register(rd) + # be flexible with the "upper" range here (wraps to...
python
diff --git a/tests/test_assemble.py b/tests/test_assemble.py index 76e3622..0964837 100644 --- a/tests/test_assemble.py +++ b/tests/test_assemble.py @@ -326,3 +326,15 @@ def test_assemble_hex_register(): asm.SLLI('a4', 'a4', 10), ]) assert binary == target + + +# https://github.com/theandrew168/bronz...
2021-06-21T04:39:34+00:00Z
signedness in LUI instruction The version 0.15 bails out on: lui a4,0xfffff with the message: AssemblerError: 20-bit immediate must be between -0x80000 (-524288) and 0x7ffff (524287): 1048575
After digging a bit more, I'm not quite sure how to proceed with this one. In our chat discussion, the examples given for this use case were the common `lui` + `addi` combo for loading 32-bit immediate values. Due to the nuances of how RISC-V handles sign extension, I had to introduce a couple modifiers into the syntax...
0.0.1-alpha
7d757254370565a6b89adb0372bd5621656cfee3
["tests.test_assemble::test_assemble_lui_signedness"]
["tests.test_assemble::test_read_assembly", "tests.test_assemble::test_lex_assembly", "tests.test_assemble::test_parse_assembly", "tests.test_assemble::test_assemble_string", "tests.test_assemble::test_assemble_sequence[bytes 1 2 0x03 0b100-\\x01\\x02\\x03\\x04]", "tests.test_assemble::test_assemble_sequence[bytes -1 0...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
utapyngo__pytest-unordered-15
utapyngo/pytest-unordered
8c4b2bced80f96d42249281181cf369ec2d54bc8
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f00a794..ff8fbd6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,9 +56,10 @@ jobs: - "3.8" - "pypy3.9" pytest-version: - - "pytest<7" - "pytest<8" + - "p...
python
2024-03-13T14:56:56+00:00Z
Test failure with pytest 8.x Hi! After updating pytest to 8.x we are seeing test failures with pytest-unordered 0.5.2 over in nixpkgs. ```pytb ============================= test session starts ============================== platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0 rootdir: /build/source pl...
Thank you! Why do you need to run tests from this package? We verify the package integrates well into nixpkgs, since python packages often only break at runtime.
0.0.1-alpha
3fb43e25a3217ae2f0256b02ad4494476915739b
["tests.test_unordered::test_replace"]
["tests.test_unordered::test_unordered[expected0-actual0]", "tests.test_unordered::test_unordered[expected1-actual1]", "tests.test_unordered::test_unordered[expected2-actual2]", "tests.test_unordered::test_unordered[expected3-actual3]", "tests.test_unordered::test_unordered[expected4-actual4]", "tests.test_unordered::t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
vi3k6i5__flashtext-47
vi3k6i5/flashtext
f4acc0421c30ecfb13d6931f0c0c119ca00a5e84
diff --git a/flashtext/keyword.py b/flashtext/keyword.py index 8c3b5da..8639a49 100644 --- a/flashtext/keyword.py +++ b/flashtext/keyword.py @@ -174,8 +174,12 @@ class KeywordProcessor(object): if letter in current_dict: character_trie_list.append((letter, current_dict)) ...
python
diff --git a/test/keyword_remover_test_cases.json b/test/keyword_remover_test_cases.json index 72173c9..2cce873 100644 --- a/test/keyword_remover_test_cases.json +++ b/test/keyword_remover_test_cases.json @@ -101,5 +101,16 @@ }, "keywords": ["spring framework"], "keywords_case_sensitive": ["s...
2020-02-16T05:23:34+00:00Z
Bug in remove_keywords_from_dict Hi @vi3k6i5, I think there's a bug in the way keywords are removed from dict. Here's a snippet to reproduce the error: ``` from flashtext import KeywordProcessor kp = KeywordProcessor() kp.add_keywords_from_dict({'computer vision': ['computer vision', 'cv']}) print(kp.extrac...
fixed in version 2.7 . Thanks for reporting 👍
0.0.1-alpha
6005cbf04ae96fe6cb7483721d4b6f24301b9add
["test.test_kp_len.TestKPLen::test_remove_keywords_dictionary_len", "test.test_remove_keywords.TestKeywordRemover::test_remove_keywords", "test.test_remove_keywords.TestKeywordRemover::test_remove_keywords_dictionary_compare", "test.test_remove_keywords.TestKeywordRemover::test_remove_keywords_using_list"]
["test.test_dictionary_loading.TestDictionaryLoad::test_dictionary_loading", "test.test_extractor.TestKeywordExtractor::test_extract_keywords", "test.test_extractor.TestKeywordExtractor::test_extract_keywords_case_sensitive", "test.test_file_load.TestFileLoad::test_file_format_one", "test.test_file_load.TestFileLoad::t...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
maxfischer2781__asyncstdlib-42
maxfischer2781/asyncstdlib
b48fb6363b2110c72cfd012fea84b399c6b2aab9
diff --git a/asyncstdlib/__init__.py b/asyncstdlib/__init__.py index 30332b1..f972870 100644 --- a/asyncstdlib/__init__.py +++ b/asyncstdlib/__init__.py @@ -33,7 +33,7 @@ from .itertools import ( zip_longest, groupby, ) -from .asynctools import borrow, scoped_iter, await_each, apply +from .asynctools import ...
python
diff --git a/unittests/test_asynctools.py b/unittests/test_asynctools.py index 3c9ceea..088588c 100644 --- a/unittests/test_asynctools.py +++ b/unittests/test_asynctools.py @@ -201,3 +201,23 @@ async def test_apply_with_an_argument_and_a_keyword_argument(): ) assert result == 42 - 1984 + + +@sync +async def...
2021-06-27T10:39:55+00:00Z
Expose a "make awaitable" helper Following some chat and SO questions, it seems worthwhile to offer a "sync to async" helper for ``await ...()``. ``asyncstdlib._core`` already contains one, which can serve as a template. * Takes any callable and returns an asynchronous callable. For example, ``aprint = helper(print...
Hello, I recently found the project and consider it interesting for me. I would like to contribute to the project. I would like to try to implement the feature which described in this issue. I have some question: 1. what file should I add the feature, should it be `_core.py`? 2. I see that there is `Awaitify` class ...
0.0.1-alpha
0c5f0b95b44c916523ca0364d23974313f4c622b
["unittests.test_asynctools::test_sync"]
["unittests.test_asynctools::test_nested_lifetime", "unittests.test_asynctools::test_nested_lifetime_closed_outer", "unittests.test_asynctools::test_borrow_explicitly", "unittests.test_asynctools::test_borrow_iterable", "unittests.test_asynctools::test_borrow_methods[<lambda>0]", "unittests.test_asynctools::test_borrow...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
scravy__awesome-pattern-matching-12
scravy/awesome-pattern-matching
9729c5ad4fec1b9909f5d46d3e9f076163fb38b6
diff --git a/README.md b/README.md index 01a9c2d..a1fde93 100644 --- a/README.md +++ b/README.md @@ -519,7 +519,7 @@ if result := match([1, 2, 3, 4], [1, 2, Capture(Remaining(InstanceOf(int)), name print(result['tail']) ## -> [3, 4] ``` -As this syntax is rather verbose, two short hand notations can be used: +...
python
diff --git a/tests/test_some.py b/tests/test_some.py index ba9a5fc..33e4e23 100644 --- a/tests/test_some.py +++ b/tests/test_some.py @@ -234,3 +234,39 @@ class Glob(unittest.TestCase): self.assertEqual(4, result['foo']) self.assertEqual(5, result['bar']) self.assertEqual(6, result['qux']) + +...
2022-01-02T07:48:34+00:00Z
Some(*, greedy: bool = False)
0.0.1-alpha
b975e95a8b3e2febe64d68b75f3d9e6d8388f848
["tests.test_some.Glob::test_repeating_subsequence_greedy"]
["tests.test_generic.GenericTests::test_auto_eq", "tests.test_generic.GenericTests::test_auto_repr", "tests.test_generic.GenericTests::test_elements", "tests.test_generic.GenericTests::test_repr", "tests.test_util.UtilTests::test_get_arg_types", "tests.test_util.UtilTests::test_get_kwarg_types", "tests.test_util.UtilTe...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
numirias__pytest-json-report-62
numirias/pytest-json-report
b057acd213308b495263494af19640fba4dbfe58
diff --git a/README.md b/README.md index f1e8330..adecddb 100644 --- a/README.md +++ b/README.md @@ -350,11 +350,11 @@ A test stage item. | `duration` | Duration of the test stage in seconds. | | `outcome` | Outcome of the test stage. (can be different from the overall test outcome) | | `crash` | Crash entry. (absen...
python
diff --git a/tests/test_jsonreport.py b/tests/test_jsonreport.py index 2e3ee8e..3a20361 100644 --- a/tests/test_jsonreport.py +++ b/tests/test_jsonreport.py @@ -187,6 +187,23 @@ def test_report_crash_and_traceback(tests): assert call['traceback'] == traceback +def test_report_traceback_styles(make_json): + ...
2021-06-13T20:29:11+00:00Z
Crashes when used with `--tb=native` option Hello and thanks for this supper useful plugin! The plugin crashes if used together with `--tb=native` Essentially this is because pytest's `ReprEntryNative` and `ReprEntry` classes don't have the same interface. Here's an sample traceback: ``` INTERNALERROR> F...
Thanks for your contribution! Your analysis of the issue is spot-on. However, for the fix I decided to simply drop the `traceback` entry from the report if we failed to extract the necessary information. Using the string representation from e.g. `ReprEntryNative.lines` would just duplicate what we provide via `longr...
0.0.1-alpha
9ff93d464502cec7661cc3fb8271d8af5fb64069
["tests.test_jsonreport::test_report_traceback_styles[0]", "tests.test_jsonreport::test_report_traceback_styles[1]", "tests.test_jsonreport::test_report_traceback_styles[4]"]
["tests.test_jsonreport::test_arguments_in_help", "tests.test_jsonreport::test_no_report", "tests.test_jsonreport::test_create_report", "tests.test_jsonreport::test_create_report_file_from_arg", "tests.test_jsonreport::test_create_no_report", "tests.test_jsonreport::test_report_item_deselected[0]", "tests.test_jsonrepo...
["tests.test_jsonreport::tests_only[0]", "tests.test_jsonreport::tests_only[1]", "tests.test_jsonreport::tests_only[4]", "tests.test_jsonreport::test_report_keys[0]", "tests.test_jsonreport::test_report_keys[1]", "tests.test_jsonreport::test_report_keys[4]", "tests.test_jsonreport::test_report_collectors[0]", "tests.te...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__nafas-132
sepandhaghighi/nafas
722392cf278836c105b88ec7b7875cc8562cc1d0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 02cfb43..be3b2ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added +- Survey form added to the end of program - `--config` argument - `--skip-intro` ...
python
diff --git a/test/test.py b/test/test.py index a267d07..f55d5ff 100644 --- a/test/test.py +++ b/test/test.py @@ -217,4 +217,7 @@ nava.errors.NavaBaseError: Sound file's path should be a string. ... pass >>> sound_check_flag False +>>> # testing get_rendered_survey_link for multiple cases +>>> get_rendered_survey...
2025-03-24T13:39:07+00:00Z
[Feature]: Survey Form ### Describe the feature you want to add Add a survey form to the **Nafas** application ### Describe your proposed solution _No response_ ### Describe alternatives you've considered, if relevant _No response_ ### Additional context _No response_
@sadrasabouri I reviewed the survey form again and suggest adding the **Nafas** version to it (filling it dynamically). Please add it, and then notify me to update the survey shortlink format. I opened a PR for that, but I don't know what you mean by updating the shortlink format; it doesn't require doing so.
0.0.1-alpha
509bf84a86f3ed3969c4cea0540ef36593fb9d25
["test.test::test"]
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
scikit-build__github-release-61
scikit-build/github-release
1878ee184ffa6a9603952463dfed835c2c3570e7
diff --git a/CHANGES.md b/CHANGES.md index 9387756..e1aff0a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,12 @@ CLI * ``release-notes``: Report a meaningful error if user omitted to set ``EDITOR`` env. variable. +Python API +---------- + +* Add ``github_api_url`` and `set_github_api_url`. See [#61](https...
python
diff --git a/tests/__init__.py b/tests/__init__.py index 8c373af..63a1a72 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -71,6 +71,32 @@ def push_argv(argv): sys.argv = old_argv +@contextmanager +def push_env(**kwargs): + """This context manager allow to set/unset environment variables. + """ ...
2020-03-29T08:51:06+00:00Z
Fix use of github-release API Integration of https://github.com/j0057/github-release/pull/57 broke the use of function like `get_releases`. In this case, the variable `_github_api_url` is not set.
0.0.1-alpha
592b6706908a56b3031af28d34e4f05048a8b845
["tests.test_api::test_github_api_url", "tests.test_api::test_github_api_url_env"]
["tests.test_cli::test_cli_arguments[options0-asset-upload-args0]", "tests.test_cli::test_cli_arguments[options3-asset-download-args3]", "tests.test_cli::test_cli_arguments[options4-asset-download-args4]", "tests.test_cli::test_cli_arguments[options5-asset-download-args5]", "tests.test_cli::test_cli_arguments[options6-...
["tests.test_cli::test_cli_arguments[options1-asset-upload-args1]", "tests.test_cli::test_cli_arguments[options2-asset-upload-args2]", "tests.test_cli::test_cli_arguments[options7-asset-delete-args7]", "tests.test_cli::test_cli_arguments[options8-asset-delete-args8]", "tests.test_cli::test_cli_arguments[options9-asset-...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
maximtrp__scikit-posthocs-83
maximtrp/scikit-posthocs
8b8e831676f1effb676c65042334af02f692cd3f
diff --git a/scikit_posthocs/_outliers.py b/scikit_posthocs/_outliers.py index 486d878..67c3a7f 100644 --- a/scikit_posthocs/_outliers.py +++ b/scikit_posthocs/_outliers.py @@ -1,5 +1,6 @@ from typing import Union, List import numpy as np +from numpy.typing import ArrayLike from scipy.stats import t @@ -112,8 +1...
python
diff --git a/tests/test_posthocs.py b/tests/test_posthocs.py index 6290a67..f9ad117 100644 --- a/tests/test_posthocs.py +++ b/tests/test_posthocs.py @@ -370,8 +370,10 @@ class TestPosthocs(unittest.TestCase): ] ) self.assertTrue(isinstance(so.outliers_gesd(x, 5, report=True), np.ndarray))...
2025-03-13T13:16:29+00:00Z
outliers_gesd() hypo=True option broken **Describe the bug** outliers_gesd() with the hypo=True option returns an array of numbers rather than the expected array of bools **Dataset** [-0.27, -0.172, -0.159, -0.138, -0.128, -0.112, -0.0985, -0.0796, -0.0691, -0.0677, -0.0421, -0.0394, -0.00699, 0.0341, 0.0755, 0...
If I change the first value in the input to 100, the function's output is the expected array of bools. This method is expected to return either an unfiltered array or a filtered one. Please read the [documentation](https://scikit-posthocs.readthedocs.io/en/latest/generated/scikit_posthocs.outliers_gesd.html). > Return...
0.0.1-alpha
cfb4ac6f3bb67abf54af3dfc195a4725515cec36
["tests.test_posthocs.TestPosthocs::test_outliers_gesd"]
["tests.test_posthocs.TestPosthocs::test_cd_diagram_number_of_artists", "tests.test_posthocs.TestPosthocs::test_convert_to_block_df", "tests.test_posthocs.TestPosthocs::test_durbin", "tests.test_posthocs.TestPosthocs::test_find_maximal_cliques_1x1", "tests.test_posthocs.TestPosthocs::test_find_maximal_cliques_2x2", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__samila-33
sepandhaghighi/samila
9a83d1fb0aa8af95f94dd3adfd096391832f2765
diff --git a/CHANGELOG.md b/CHANGELOG.md index b994be8..f588325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added +- `load_data` function +- `save_data_file` function +- `save_data` method ### Cha...
python
diff --git a/test/error_test.py b/test/error_test.py new file mode 100644 index 0000000..263d9bd --- /dev/null +++ b/test/error_test.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +""" +>>> from samila import * +>>> import os +>>> from pytest import warns +>>> g = GenerativeImage(data="data.json") +Traceback (most recent...
2021-10-28T12:37:09+00:00Z
Data Load/Save for GenerativeImage Class #### Description You can make a unique Samila art with a **pair of function** and a **random seed**. Also you can plot your art with different configurations like `projection`, `color` and etc. It would be nice if we have a `config` parameter which initialize some settings ...
We decided to save configs as `pickle`s instead of JSONs. Due to some issues related to function serialization we decided to just save the data instead of functions. So the functions would be `save_data` and `load_data` and we can save the data to a JSON file and then load the JSON anytime we want to construct a Samil...
0.0.1-alpha
53bd7bedac22faa22414a7a38466e2d7d10a934a
["test.error_test::error_test", "test.overall_test::overall_test", "test.warning_test::warning_test"]
["samila.genimage::samila.genimage.GenerativeImage", "test.function_test::function_test"]
["samila.params::samila.params.Projection", "test.nft_upload_test::nft_upload_test"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__files-to-prompt-1
simonw/files-to-prompt
f8af0fad7f206f029869cda7b4a1846b19aee423
diff --git a/files_to_prompt/cli.py b/files_to_prompt/cli.py index 38c8712..ef0b83a 100644 --- a/files_to_prompt/cli.py +++ b/files_to_prompt/cli.py @@ -85,7 +85,8 @@ def process_path( help="Ignore .gitignore files and include all files", ) @click.option( - "--ignore-patterns", + "ignore_patterns", + "-...
python
diff --git a/tests/test_files_to_prompt.py b/tests/test_files_to_prompt.py index 3bf8521..4b94dd1 100644 --- a/tests/test_files_to_prompt.py +++ b/tests/test_files_to_prompt.py @@ -91,15 +91,13 @@ def test_ignore_patterns(tmpdir): with open("test_dir/file_to_include.txt", "w") as f: f.write("This ...
2024-04-08T05:33:11+00:00Z
--ignore multi option to ignore specific files For eg `--ignore LICENSE` - should support glob syntax too.
If it could read a file in a format of ".gitignore", it would be the best. Need to update the README with this now. ```bash files-to-prompt README.md files_to_prompt/cli.py | llm -m opus \ --system 'Update README to reflect all options' ``` https://gist.github.com/simonw/8d52902a261851f20b463084ec05f230
0.0.1-alpha
4407ac519bd662bf973bd0509223b41a79bad7c6
["tests.test_files_to_prompt::test_ignore_patterns"]
["tests.test_files_to_prompt::test_basic_functionality", "tests.test_files_to_prompt::test_include_hidden", "tests.test_files_to_prompt::test_ignore_gitignore", "tests.test_files_to_prompt::test_multiple_paths", "tests.test_files_to_prompt::test_mixed_paths_with_options"]
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pyswmm__swmmio-134
pyswmm/swmmio
336fbc3d396bcbe4e1719784e5fec95bbf34c0f1
diff --git a/swmmio/utils/spatial.py b/swmmio/utils/spatial.py index f99a191..36b2adc 100644 --- a/swmmio/utils/spatial.py +++ b/swmmio/utils/spatial.py @@ -200,15 +200,11 @@ def write_shapefile(df, filename, geomtype='line', prj=None): # create a shp file writer object of geom type 'point' if geomtype == '...
python
diff --git a/swmmio/tests/test_spatial.py b/swmmio/tests/test_spatial.py new file mode 100644 index 0000000..7267963 --- /dev/null +++ b/swmmio/tests/test_spatial.py @@ -0,0 +1,20 @@ +import unittest +import tempfile +import os + +from swmmio.examples import philly + + +class TestSpatialFunctions(unittest.TestCase): + ...
2022-12-04T21:04:43+00:00Z
export_to_shapefile The following error occurs when performing a transformation SHP on a very simple model: mymodel.export_to_shapefile('D:/admin') error: File "E:\APP\Anaconda3\envs\swmmio_env\lib\site-packages\swmmio\utils\spatial.py", line 219, in write_shapefile w.line(parts=[row.coords]) TypeError:...
@rhc123123 thanks for identifying this issue! I believe this is due to an API change in `pyshp`. Regardless, I think i have a patch to this over in #138 .
0.0.1-alpha
f4a6396228620ceabef2e6d28b1fa169a41677e0
["swmmio.tests.test_spatial.TestSpatialFunctions::test_write_shapefile"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_nodes_dataframe", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes", "swmmio.tests.test_model_elements::test_dataframe_composite"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-288
python-validators/validators
ee088fa8c091ffd54c53d77b3efa16ace6b4423e
diff --git a/src/validators/url.py b/src/validators/url.py index 4ecb582..16698b1 100644 --- a/src/validators/url.py +++ b/src/validators/url.py @@ -116,6 +116,7 @@ def _validate_optionals(path: str, query: str, fragment: str): if query: optional_segments &= bool(_query_regex().match(query)) if fragm...
python
diff --git a/tests/test_url.py b/tests/test_url.py index b10ba18..62332f5 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -84,6 +84,7 @@ from validators import ValidationError, url "https://travel-usa.com/wisconsin/旅行/", "http://:::::::::::::@exmp.com", "http://-.~_!$&'()*+,;=:%40:8...
2023-08-18T12:47:40+00:00Z
bug: `/#/` in URLs is failing validation Hi there, following https://github.com/python-validators/validators/issues/285 's report, we also saw a regression on testing validity or a URL, namely `https://exchange.jetswap.finance/#/swap` ( `ValidationError(func=url, args={'value': 'https://exchange.jetswap.finance/#/sw...
> The /#/ in there is probably the thing making it match as invalid, sadly it is a common side-effect of some JS UI libraries. Hi @adrienthiery, indeed, `/#/` was causing trouble, but this was _not_ an intentional breaking change, unlike the case in https://github.com/python-validators/validators/issues/285#issuecom...
0.0.1-alpha
9e94feea67d2787e984a100e1fb4642f5cd18288
["tests.test_url::test_returns_true_on_valid_url[https://exchange.jetswap.finance/#/swap]"]
["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" }
microsoft__vscode-pylint-406
microsoft/vscode-pylint
b055c73b8587390fcc87c1b739a5260bd5d1710f
diff --git a/README.md b/README.md index 7f67adb..fbe574e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A Visual Studio Code extension with support for the `pylint` linter. The extensi Note: - This extension is supported for all [actively supported versions](https://devguide.python.org/#status-of-python-...
python
diff --git a/src/test/python_tests/lsp_test_client/defaults.py b/src/test/python_tests/lsp_test_client/defaults.py index d2c3671..547063e 100644 --- a/src/test/python_tests/lsp_test_client/defaults.py +++ b/src/test/python_tests/lsp_test_client/defaults.py @@ -5,215 +5,223 @@ Default initialize request params. """ ...
2023-10-16T20:47:58+00:00Z
Update documentation clarifying `fromEnvironment ` I've just updated a PC I'm developing a particular project on to Python 3.12. I did a pip freeze to save my requirements, deleted the .venv directory. I created a new .venv using Python 3.12, activated it, and did a 'pip install -r requirements.txt'. When I fired ...
The bundled pylint does not support 3.12. You can either set the “pylint.importStrategy” to ‘fromEnvironment’ or set “pylint.path” to point to the pylint binary in your env, OK, setting pylint.importStrategy to fromEnvironment worked. I'll note that the note appearing at the top of the extension Detail tab: "The bun...
0.0.1-alpha
e19710479c59a2fcaf57034b6494d7754f06e3b3
["src.test.python_tests.test_linting::test_ignore_patterns_match[patterns0]", "src.test.python_tests.test_linting::test_ignore_patterns_match[patterns1]", "src.test.python_tests.test_linting::test_ignore_patterns_match[patterns2]"]
["src.test.python_tests.test_code_actions::test_command_code_action[C0301:line-too-long-FRUIT = ['apricot', 'blackcurrant', 'cantaloupe', 'dragon fruit', 'elderberry', 'fig', 'grapefruit', 'honeydew melon', 'jackfruit', 'kiwi', 'lemon', 'mango', 'nectarine', 'orange', 'papaya', 'quince', 'raspberry', 'strawberry', 'tan...
["src.test.python_tests.test_linting::test_stdlib_filtering[include-stdlib]"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-72
pyprojectx/pyprojectx
1fc646c8e2b9e26fa64017f275d5017aed899ad5
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c4037e..a9fdb3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +Release v2.0.5 (2024-01-17) +---------------------------- +### Bug Fixes +- #72 locking does not execute post-install scripts + Release v2.0.4 (2024-01-17) ---------------------------- ### Bu...
python
diff --git a/tests/integration/test_pw.py b/tests/integration/test_pw.py index 4d3de96..da4cf9d 100644 --- a/tests/integration/test_pw.py +++ b/tests/integration/test_pw.py @@ -253,6 +253,8 @@ def test_lock(tmp_lock_project): lock_content = load_toml(lock_file) assert lock_content["main"] == locked_requiremen...
2024-01-17T15:53:00+00:00Z
locking does not execute post-install scripts Running `.pw --lock` instantiates a tool context venv if there are changes, but it does not execute post-install scripts.
0.0.1-alpha
9bd7ea7a0ad9b01d446979d76d6376527d4e5321
["tests.integration.test_pw::test_lock"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mivade__argparse_dataclass-39
mivade/argparse_dataclass
3e3e91757599ad6611b8bf8ad25cc9caa196ba2f
diff --git a/README.rst b/README.rst index 71f739a..a262bbd 100644 --- a/README.rst +++ b/README.rst @@ -77,9 +77,10 @@ Enabling choices for an option: >>> from dataclasses import dataclass, field >>> from argparse_dataclass import ArgumentParser + >>> from typing import Literal >>> @dataclass ...
python
diff --git a/tests/example_choices.py b/tests/example_choices.py new file mode 100644 index 0000000..8edd8e0 --- /dev/null +++ b/tests/example_choices.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +from argparse_dataclass import dataclass +from typing import Literal + + +@dataclass +class Opt: + x: int = 42 + y: bo...
2023-03-28T16:30:59+00:00Z
Drop support for Python 3.6, 3.7 3.6 went EOL in December 2021 and 3.7 EOLs in June.
3.7 now does not work and should be removed from CI (see #46). Closed via #50.
0.0.1-alpha
540640f3fe300b474732e486636d143187496c9b
["tests.test_argumentparser.ArgumentParserTests::test_literal", "tests.test_argumentparser.ArgumentParserTests::test_literal_choices_collision", "tests.test_argumentparser.ArgumentParserTests::test_literal_mixed_types"]
["tests.test_argumentparser.ArgumentParserTests::test_basic", "tests.test_argumentparser.ArgumentParserTests::test_basic_negative", "tests.test_argumentparser.ArgumentParserTests::test_choices", "tests.test_argumentparser.ArgumentParserTests::test_choices_negative", "tests.test_argumentparser.ArgumentParserTests::test_...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-988
octodns/octodns
7b3b2a9eaa38177cabd89f9067238a985f4299b5
diff --git a/CHANGELOG.md b/CHANGELOG.md index b9bbf10..4a59c14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ownership to be marked in the same zone for delegation NS records. * octodns-report access --lenient flag to allow running reports with records sourced from providers with non-compliant re...
python
diff --git a/tests/zones/tinydns/example.com b/tests/zones/tinydns/example.com index ae8b5bd..a1f983f 100755 --- a/tests/zones/tinydns/example.com +++ b/tests/zones/tinydns/example.com @@ -4,12 +4,12 @@ # Multi-value A +example.com:10.2.3.4:30 -+example.com:10.2.3.5:30 ++example.com.:10.2.3.5:30 Ccname.other.foo...
2023-06-29T17:27:31+00:00Z
Importing TinyDNS records ignores all the ones with a trailing dot A basic example to show this behavior: - source TinyDNS file (in `tinydns/test_example` directory): ``` =test1.example.com.:10.0.0.101:3600 =test2.example.com.:10.0.0.102:3600 Calias-test1.example.com:test1.example.com:3600 Calias-test2.example...
Likely culprit is the regex here https://github.com/octodns/octodns/blob/1f8d7ade33c1d84447e134629bace1ce9a0d4e37/octodns/source/tinydns.py#L136 The `[-1]` excludes the trailing dot in octoDNS's naming. I guess it should probably be tweak to use the full zone name (with dot) and add a `?` at the end to make it optio...
0.0.1-alpha
1032abf558f0eadb66491ef54a9882123b7df58b
["tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_ignores_subs", "tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_populate_in_addr_arpa", "tests.test_octodns_source_tinydns.TestTinyDnsFileSource::test_populate_normal"]
["tests.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" }
scravy__awesome-pattern-matching-2
scravy/awesome-pattern-matching
a6dfd4a6fe1dbf8fffd99c4980c47d05d3ca6250
diff --git a/apm/core.py b/apm/core.py index c35de60..0771c97 100644 --- a/apm/core.py +++ b/apm/core.py @@ -1,9 +1,10 @@ from __future__ import annotations +import collections.abc as abc from copy import copy from dataclasses import is_dataclass from itertools import chain -from typing import Optional, List, Dic...
python
diff --git a/tests/test_issues.py b/tests/test_issues.py new file mode 100644 index 0000000..1238cd4 --- /dev/null +++ b/tests/test_issues.py @@ -0,0 +1,21 @@ +from __future__ import annotations + +import unittest +# noinspection PyProtectedMember +from dataclasses import dataclass + +from apm import * + + +@dataclass ...
2021-04-24T03:42:46+00:00Z
is_dataclass check in transform() should only match instances not types https://github.com/scravy/awesome-pattern-matching/blob/a6dfd4a6fe1dbf8fffd99c4980c47d05d3ca6250/apm/core.py#L220-L225 Normally you can just pass a type to a terse match, but currently it doesn't work if the type is a dataclass because it tries...
Thanks for the report and tracking it down so neatly. Fixed in e920779 and released as https://github.com/scravy/awesome-pattern-matching/releases/tag/0.21.2
0.0.1-alpha
e92077984a3d9370ff37aa2d6e37faeaaadce652
["tests.test_issues.UtilTests::test_issue_2"]
["tests.test_unhappy_cases.UnhappyCasesTest::test_dataclass_no_match", "tests.test_unhappy_cases.UnhappyCasesTest::test_dataclass_type_mismatch", "tests.test_unhappy_cases.UnhappyCasesTest::test_invalid_values_for_length", "tests.test_unhappy_cases.UnhappyCasesTest::test_invalid_values_for_some", "tests.test_unhappy_ca...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
octodns__octodns-1258
octodns/octodns
67e9a06d114f533174b8b9790d6d7ef92e912314
diff --git a/.changelog/3e57e696039c4f37a3062043be81199c.md b/.changelog/3e57e696039c4f37a3062043be81199c.md new file mode 100644 index 0000000..56c3112 --- /dev/null +++ b/.changelog/3e57e696039c4f37a3062043be81199c.md @@ -0,0 +1,4 @@ +--- +type: minor +--- +Add trailing_dots parameter to templating processor diff --g...
python
diff --git a/tests/test_octodns_processor_templating.py b/tests/test_octodns_processor_templating.py index 94472d8..3c58174 100644 --- a/tests/test_octodns_processor_templating.py +++ b/tests/test_octodns_processor_templating.py @@ -188,6 +188,50 @@ class TemplatingTest(TestCase): mock_template.call_args, ...
2025-07-30T13:39:59+00:00Z
Get current zone name as a variable in YAML files I'm working to deploy DKIM records across a number of domains. I'm using a dedicated provider in conjunction with `shared_filename` and `disable_zonefile` to add the records in questions only to the zones that need them: ```yaml providers: ... fastmail: class:...
Interesting use case that I haven't run across. Should be doable with a `Processor`. Don't think there's anything currently that will though. My first thought is that it'd be something like `TemplateProcessor`. Seems like something interesting to poke around at. I'll throw it on the top list. It should be fairly eas...
0.0.1-alpha
14c609d568f148df16183eeaee43e6f99d605c7f
["tests.test_octodns_processor_templating.TemplatingTest::test_trailing_dots"]
["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" }
pyhys__minimalmodbus-78
pyhys/minimalmodbus
c8322da1754afe2a3c3e746d1cc4a3b9c3156ca9
diff --git a/minimalmodbus.py b/minimalmodbus.py index a93abc9..70a6136 100644 --- a/minimalmodbus.py +++ b/minimalmodbus.py @@ -1595,7 +1595,7 @@ def _create_payload( value, signed, number_of_registers, byteorder ) elif payloadformat == _Payloadformat.FLOAT: - assert i...
python
diff --git a/tests/test_minimalmodbus.py b/tests/test_minimalmodbus.py index 127439a..7677f6e 100644 --- a/tests/test_minimalmodbus.py +++ b/tests/test_minimalmodbus.py @@ -4113,6 +4113,8 @@ class TestDummyCommunication(ExtendedTestCase): # Write Float # def testWriteFloat(self) -> None: + self.instr...
2023-07-17T18:00:19+00:00Z
Function code 16 not accepting integers for `Float` payload anymore The commit [type checking with mypy](https://github.com/pyhys/minimalmodbus/commit/a3a223c82004b592163d2f1e40554fe01a105540) introduced a regression where Float payloads with function code 16 no longer accept integer values. This behavior is caused b...
Fixed in the latest release. Thanks for the report!
0.0.1-alpha
1f06a8dbe078ebb46af8d4825f4b4e8df3dd22c3
["tests.test_minimalmodbus.TestDummyCommunication::testWriteFloat"]
["tests.test_minimalmodbus.TestCreatePayload::testKnownValues", "tests.test_minimalmodbus.TestCreatePayload::testWrongValues", "tests.test_minimalmodbus.TestParsePayload::testInvalidPayloads", "tests.test_minimalmodbus.TestParsePayload::testKnownValues", "tests.test_minimalmodbus.TestEmbedPayload::testKnownValues", "te...
[]
{ "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-3334
mwaskom/seaborn
2d9bb4f82e36a8fded638ff6b044c4a540567181
diff --git a/doc/_docstrings/ecdfplot.ipynb b/doc/_docstrings/ecdfplot.ipynb index 7ddf95c..71ab3cc 100644 --- a/doc/_docstrings/ecdfplot.ipynb +++ b/doc/_docstrings/ecdfplot.ipynb @@ -82,7 +82,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The default distribution statistic is normalized t...
python
diff --git a/tests/test_statistics.py b/tests/test_statistics.py index e391278..f8fa444 100644 --- a/tests/test_statistics.py +++ b/tests/test_statistics.py @@ -26,6 +26,10 @@ class DistributionFixtures: return rng.normal(0, 1, 100) @pytest.fixture + def x2(self, rng): + return rng.normal(0, 1...
2023-05-04T12:29:46+00:00Z
percent for ECDF plots Hello Thanks a lot for your so useful library. Unfortunatly it seems some people are very confused by seeing proportion and not percent. Could you add percent to ecdf plots ?
I have proposed PR #3336 to add percent managment. With only a few lines but in a similar way than other graphs. I also tried to update documentation everywhere. Tests pass.
0.0.1-alpha
971f47e9c1e69c6f14e42d3c0da8aec884f3352b
["tests.test_statistics.TestECDF::test_univariate_percent"]
["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" }
pytest-dev__pytest-randomly-600
pytest-dev/pytest-randomly
acadf4684fd12e5e9ca14243167f44b8d302f093
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 64044f5..cdfdb1f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,13 @@ Unreleased * Support Python 3.14. +* Use a different random seed per test, based on the test ID. + + This change should mean that tests exercise more random data values in a given run,...
python
diff --git a/tests/test_pytest_randomly.py b/tests/test_pytest_randomly.py index b281c69..fdeb26c 100644 --- a/tests/test_pytest_randomly.py +++ b/tests/test_pytest_randomly.py @@ -58,7 +58,7 @@ def test_it_reports_a_header_when_set(simpletester): assert lines == ["Using --randomly-seed=10"] -def test_it_reuse...
2025-09-10T10:36:52+00:00Z
provide unique seed to each test ### Description Per https://github.com/pytest-dev/pytest-randomly/issues/531 its unexpected that randomly generated values in different tests would be identical. It's common in test suites to use randomly generated identifiers to help maintain test isolation and provide easier-to...
Using a random number per test does not guarantee isolation in remote systems. The [birthday problem](https://en.wikipedia.org/wiki/Birthday_problem) makes the chance of collision between many tests high, at least for 32-bit identifiers. Why not use shared counter between tests to absolutely guarantee unique numbers...
0.0.1-alpha
bd697bd670943c54b8d21e713dea58ab92508d08
["tests.test_pytest_randomly::test_it_resets_the_random_seed_at_the_end_of_test_classes", "tests.test_pytest_randomly::test_it_uses_different_random_seeds_per_test", "tests.test_pytest_randomly::test_it_resets_the_random_seed_at_the_start_of_test_classes"]
["tests.test_pytest_randomly::test_doctests_in_txt_files_reordered", "tests.test_pytest_randomly::test_it_reports_a_header_when_not_set", "tests.test_pytest_randomly::test_it_runs_before_stepwise", "tests.test_pytest_randomly::test_entrypoint_missing", "tests.test_pytest_randomly::test_classes_reordered", "tests.test_p...
["tests.test_pytest_randomly::test_numpy", "tests.test_pytest_randomly::test_model_bakery", "tests.test_pytest_randomly::test_xdist[4]", "tests.test_pytest_randomly::test_xdist[2]", "tests.test_pytest_randomly::test_xdist[0]", "tests.test_pytest_randomly::test_faker", "tests.test_pytest_randomly::test_xdist[3]", "tests...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
stphivos__django-mock-queries-171
stphivos/django-mock-queries
d7c7e322fca913020e9f427f2c90a28da29825fe
diff --git a/django_mock_queries/comparisons.py b/django_mock_queries/comparisons.py index dbccfc3..852bbfd 100644 --- a/django_mock_queries/comparisons.py +++ b/django_mock_queries/comparisons.py @@ -10,6 +10,9 @@ def iexact_comparison(first, second): def contains_comparison(first, second): + if isinstance(fir...
python
diff --git a/tests/test_utils.py b/tests/test_utils.py index 4d9483d..ccadf56 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -116,6 +116,19 @@ class TestUtils(TestCase): result = utils.is_match('abc', 'a', constants.COMPARISON_CONTAINS) assert result is True + def test_is_match_cas...
2024-04-19T14:15:24+00:00Z
Contains comparison doesn't work as expected for PostgreSQL ArrayField Defining a model with ArrayField supports contains filtering but should work differently from the string contains comparison. The comparison should support both fields ```python def test_mock_set_contains(): from django.contrib.postgres.fiel...
0.0.1-alpha
267aa1f57827665ffda69fad0e1c9e25a255f6be
["tests.test_utils.TestUtils::test_is_match_case_list_contains_check"]
["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" }
oscal-compass__compliance-trestle-1576
oscal-compass/compliance-trestle
dbe8e051cd4ad2ab073438a4e837356924d6e062
diff --git a/trestle/tasks/csv_to_oscal_cd.py b/trestle/tasks/csv_to_oscal_cd.py index 455b613..367359c 100644 --- a/trestle/tasks/csv_to_oscal_cd.py +++ b/trestle/tasks/csv_to_oscal_cd.py @@ -1545,7 +1545,7 @@ class _CsvMgr(): component_description = self.get_row_value(row, f'{COMPONENT_DESCRIPTION}') ...
python
diff --git a/tests/trestle/tasks/csv_to_oscal_cd_test.py b/tests/trestle/tasks/csv_to_oscal_cd_test.py index e1d075e..e2ebc1f 100644 --- a/tests/trestle/tasks/csv_to_oscal_cd_test.py +++ b/tests/trestle/tasks/csv_to_oscal_cd_test.py @@ -885,6 +885,34 @@ def test_execute_param_duplicate_value(tmp_path: pathlib.Path) -> ...
2024-06-13T20:28:35+00:00Z
` _CsvMgr.get_rule_key() ` is supplied with incorrect argument ## Describe the bug <img width="904" alt="image" src="https://github.com/oscal-compass/compliance-trestle/assets/78010183/a7126df8-fcba-4b15-820f-c555101a60f7"> The above code snippet is from `csv-to-oscal-cd.py`. The highlighted portion has a potenti...
If I understand this correctly, the current mainline code is broken, resulting in this test case failing due to the expected key not present. In that case, checking for the wrong key is superfluous and should be removed. A correct mainline code fix will cause this failing test case to succeed without any change t...
0.0.1-alpha
774e3cff89647a5e2fbd494d5ec5f352a0dd0671
["tests.trestle.tasks.csv_to_oscal_cd_test::test_execute_correct_rule_key"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
simonw__strip-tags-14
simonw/strip-tags
14950cef1935d49cfeea35938a3e373017f74e3f
diff --git a/README.md b/README.md index a15eff4..0a3af59 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,42 @@ You can also run this command using `python -m` like this: ```bash python -m strip_tags --help ``` +### Keeping the markup for specified tags + +When passing content to a language model, it can sometim...
python
diff --git a/tests/test_strip_tags.py b/tests/test_strip_tags.py index 0efd71f..a21aff9 100644 --- a/tests/test_strip_tags.py +++ b/tests/test_strip_tags.py @@ -60,6 +60,53 @@ TEST_PARAMETERS = ( ["p", "--first"], "First paragraph", ), + # Keep tags + ( + """ + Outside of sect...
2023-06-18T08:03:43+00:00Z
Feature for leaving in specified tag markup - `-t/--keep-tag h1` The rationale for this is that sometimes it's useful to give a language model a hint as to the shape of the page. Imagine for example stripping almost every HTML tag from a page but leaving in the `<h1>` and `<h2>` and `<section>` tags.
From my notes: strip-tags -t h1 Leaves in the tags you specify, albeit with all attributes stripped except for `id` and `class`, and `href` on links and `alt` on images, and both `name` and `value` on meta tags `--attrs` leaves all the attributes on the tags you specified There are some bundles you can ...
0.0.1-alpha
cfa57c7b1d3fc48906f689b9252aafa82827e405
["tests.test_strip_tags::test_strip_cli[False-\\n Outside of section\\n <section>\\n Keep these:\\n <h1>an h1</h1>\\n <h2 class=\"c\" id=\"i\" onclick=\"f\">h2 with class and id</h2>\\n <p>This p will have its tag ignored</p>\\n </section>\\n Outside again\\n ...
["tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args0-Hello world]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args1-Hello world]", "tests.test_strip_tags::test_strip_cli[False-<p>Hello <b>world</b></p>-args2-world]", "tests.test_strip_tags::test_strip_cli[False-<div...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pyfar__pyfar-550
pyfar/pyfar
c91c0093b4ccb18b39dd1edac2702a62eaec8d13
diff --git a/pyfar/classes/coordinates.py b/pyfar/classes/coordinates.py index 2743721..11d7184 100644 --- a/pyfar/classes/coordinates.py +++ b/pyfar/classes/coordinates.py @@ -41,6 +41,17 @@ coordinate systems, e.g., the `azimuth` angle is contained in two coordinate systems (`spherical_colatitude` and `spherical_ele...
python
diff --git a/tests/test_coordinates.py b/tests/test_coordinates.py index 275e68c..32d36d4 100644 --- a/tests/test_coordinates.py +++ b/tests/test_coordinates.py @@ -633,6 +633,19 @@ def test_converters(): coordinates.cyl2cart(0, 0, 1) +def test_disabled_property_slicing(): + """Test if slicing is disabled f...
2025-03-07T13:04:33+00:00Z
array slicing bug? for non cartesian properties. ## Description It seems to have sth to do with the conversion to cartesian coordinates. For some reason we don't jump into the setter method. Not sure if we can fix it easily. ## What I Did ``` import pyfar as pf import numpy as np c = pf.Coordinates.from_sp...
Maybe this helps: https://stackoverflow.com/questions/63214416/how-do-i-define-a-setter-for-a-list-with-an-index-or-slicing We decided to check if the above helps or `c[0].azimuth = 0` (as in pyfar audio objects). In any case we will return a copy of x, y, and z. We decided to return a copy of x, y, z to be consistent ...
0.0.1-alpha
5538996b661b007e6740990f6870a50b46567ba5
["tests.test_coordinates::test_disabled_property_slicing"]
["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_check_input_type_is_numeric_error", "tests.test_audio::test_check_input_type_is_numeric_no_error[int]", "tests.test_audio::test_check_input_type_is_nume...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
movingpandas__movingpandas-318
movingpandas/movingpandas
5a0c2476945851b6bff0c728712668befe9367b3
diff --git a/movingpandas/trajectory_collection.py b/movingpandas/trajectory_collection.py index e3ce4c4..f42fa0f 100644 --- a/movingpandas/trajectory_collection.py +++ b/movingpandas/trajectory_collection.py @@ -57,6 +57,7 @@ class TrajectoryCollection: """ self.min_length = min_length self....
python
diff --git a/movingpandas/tests/test_trajectory_collection.py b/movingpandas/tests/test_trajectory_collection.py index b799bea..c9eff49 100644 --- a/movingpandas/tests/test_trajectory_collection.py +++ b/movingpandas/tests/test_trajectory_collection.py @@ -1,20 +1,21 @@ # -*- coding: utf-8 -*- +from copy import copy...
2023-07-22T08:00:36+00:00Z
TrajectoryCollection.get_start_locations should include the timestamp Currently, TrajectoryCollection.get_start_locations provides a GeoDataFrame without the timestamp: ![image](https://github.com/movingpandas/movingpandas/assets/590385/a4bfb552-fc21-4e77-8756-3e8cc80962cc)
0.0.1-alpha
dd3ea81949ee45700378a9cb670f1fd67ccd062a
["movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_timestamp_column_present_in_start_locations", "movingpandas.tests.test_trajectory_collection.TestTrajectoryCollection::test_timestamp_column_present_in_end_locations"]
["movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_east", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_west", "movingpandas.tests.test_geometry_utils.TestGeometryUtils::test_compass_bearing_north", "movingpandas.tests.test_geometry_utils.TestGeometryUtils...
[]
{ "key": "bsd-3-clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "spdx_id": "BSD-3-Clause", "url": "https://api.github.com/licenses/bsd-3-clause" }
pyswmm__swmmio-131
pyswmm/swmmio
e159c4d946dcfc16391593f10221e6a6e2b7eff1
diff --git a/.travis.yml b/.travis.yml index f4b38bb..f490248 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - - "3.6" - - "3.7" + - "3.9" - "3.8" # command to install dependencies @@ -14,11 +13,10 @@ install: - hash -r - conda config --set always_yes yes --set chan...
python
diff --git a/swmmio/tests/data/__init__.py b/swmmio/tests/data/__init__.py index c3f1724..1844da3 100644 --- a/swmmio/tests/data/__init__.py +++ b/swmmio/tests/data/__init__.py @@ -27,6 +27,7 @@ MODEL_CURVE_NUMBER = os.path.join(DATA_PATH, 'model_curve_num.inp') MODEL_MOD_HORTON = os.path.join(DATA_PATH, 'model_mod_ho...
2022-09-22T04:44:50+00:00Z
KeyError 'Horton' while extracting data Hi Aerispaha, one error occurred when I run the swmmio for data extraction, which is "no KeyError: 'Horton'. More details are shown as followed: ![image](https://user-images.githubusercontent.com/37835436/165745623-6b00f9bf-b394-403c-a8b8-b69a85ea3b19.png) Did I set the ...
@Rachelluwee thanks for finding this potential bug! Can you share the model inp file that you are working with, or provide an example that will reproduce this error? > @Rachelluwee thanks for finding this potential bug! Can you share the model inp file that you are working with, or provide an example that will reproduc...
0.0.1-alpha
6181c7775fd3ce986ab5252b3255ef194c1c33b1
["swmmio.tests.test_dataframes::test_parse_infiltration_section_with_extra_params"]
["swmmio.tests.test_dataframes::test_dataframe_from_bi", "swmmio.tests.test_dataframes::test_node_dataframe_from_rpt", "swmmio.tests.test_dataframes::test_conduits_dataframe", "swmmio.tests.test_dataframes::test_weirs_composite", "swmmio.tests.test_dataframes::test_nodes_dataframe", "swmmio.tests.test_dataframes::test_...
["swmmio.tests.test_dataframes::test_pumps_composite", "swmmio.tests.test_graphics::test_draw_model", "swmmio.tests.test_graphics::test_draw_red_and_grey_nodes", "swmmio.tests.test_model_elements::test_dataframe_composite"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
probabilists__zuko-4
probabilists/zuko
adc2b94abbd6ebdde4abcfb5cd8797f29c50211e
diff --git a/zuko/flows.py b/zuko/flows.py index a58b2df..533de99 100644 --- a/zuko/flows.py +++ b/zuko/flows.py @@ -7,6 +7,7 @@ __all__ = [ 'MaskedAutoregressiveTransform', 'MAF', 'NSF', + 'SOSPF', 'NeuralAutoregressiveTransform', 'UnconstrainedNeuralAutoregressiveTransform', 'NAF', @@...
python
diff --git a/tests/test_flows.py b/tests/test_flows.py index 14473bf..1cf56e7 100644 --- a/tests/test_flows.py +++ b/tests/test_flows.py @@ -11,6 +11,7 @@ def test_flows(tmp_path): flows = [ MAF(3, 5), NSF(3, 5), + SOSPF(3, 5), NAF(3, 5), NAF(3, 5, unconstrained=True), ...
2022-11-08T10:39:40+00:00Z
Add sum-of-squares polynomial flow ### Description The sum-of-squares polynomial flow is an interpretable and universal normalizing flow that was introduced in [Sum-of-Squares Polynomial Flow](https://arxiv.org/abs/1905.02325) (Jaini et al.). The idea is to model the first derivative of the transformations as the s...
0.0.1-alpha
ab58f3af8ea5ebd5a2456022879b70d0e92fefcf
["tests.test_transforms::test_univariate_transforms"]
["tests.test_distributions::test_distributions", "tests.test_flows::test_autoregressive_transforms", "tests.test_nn::test_MLP", "tests.test_nn::test_MaskedMLP", "tests.test_nn::test_MonotonicMLP", "tests.test_transforms::test_PermutationTransform", "tests.test_utils::test_bisection", "tests.test_utils::test_broadcast",...
["tests.test_flows::test_flows"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
more-itertools__more-itertools-937
more-itertools/more-itertools
f22895f939736785e94068827a895b009f7941c4
diff --git a/more_itertools/more.py b/more_itertools/more.py index 57a98b8..1bf48ba 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -15,6 +15,7 @@ from itertools import ( dropwhile, groupby, islice, + permutations, repeat, starmap, takewhile, @@ -25,7 +26,7 @@ from i...
python
diff --git a/tests/test_more.py b/tests/test_more.py index f4304eb..5e45f7e 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -528,6 +528,88 @@ class DistinctPermutationsTests(TestCase): self.assertCountEqual(actual, expected) +class DerangementsTests(TestCase): + def test_unique_values(self):...
2025-05-06T20:43:07+00:00Z
Include derangements ### Description I'd like to propose to add `derangements` (and a few variants) to `more_itertools`. [Derangements](https://en.wikipedia.org/wiki/Derangement) of x are the subset of all permutations of x for which no element has index equal to its value (e.g. exclude (0, 2, 1) since 0 is at index-...
Example of how the mentioned generalization could work (I couldn't stop thinking about this): ``` def derangements(iterable, r=None, restrict: [list | tuple | dict | None ] = None): if restrict is None: restrict = list(range(len(iterable))) if type(restrict) in (list, tuple): for p i...
0.0.1-alpha
e922b86d1629b38610e2db6748574be543c34115
["tests.test_more.DerangementsTests::test_r", "tests.test_more.DerangementsTests::test_repeated_values", "tests.test_more.DerangementsTests::test_unique_values", "tests.test_more.DerangementsTests::test_unsortable_unhashable"]
["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" }
sergioburdisso__pyss3-5
sergioburdisso/pyss3
4571f996daa6cb29a1c937e8eb0f4b43f1a12b6c
diff --git a/pyss3/__init__.py b/pyss3/__init__.py index d256b05..4048be3 100644 --- a/pyss3/__init__.py +++ b/pyss3/__init__.py @@ -148,6 +148,7 @@ class SS3: :param sn_m: method used to compute the sanction (sn) function, options are: "vanilla" and "xai" (default: "xai") :type ...
python
diff --git a/tests/test_pyss3.py b/tests/test_pyss3.py index e3af4da..5c92c6c 100644 --- a/tests/test_pyss3.py +++ b/tests/test_pyss3.py @@ -290,6 +290,9 @@ def test_multilabel(): def test_pyss3_ss3(mockers): """Test SS3.""" + with pytest.raises(ValueError): + clf = SS3("hyperparameter") + clf = ...
2020-05-14T16:50:36+00:00Z
Multilabel Classification Evaluation Hey @sergioburdisso, Thank you for this awesome project! Currently the evaluation class only supports single label classification, even though SS3 inherently supports multilabel classification. These are the steps (I see) needed to support multilabel classification evaluation:...
Edit: Since the multilabel stratified k-fold cross validation is not implemented in sklearn [this repository](https://github.com/trent-b/iterative-stratification) might help for the implementation of multilabel gridsearch. Thank you, @angrymeir! You're helping to make this humble project better! That is totally righ...
0.0.1-alpha
0a897dda29bf5198469c955de4e8b41e5c4d7103
["tests.test_pyss3::test_pyss3_ss3"]
["tests.test_cmd_line::test_ss3prompt", "tests.test_pyss3::test_pyss3_functions", "tests.test_pyss3::test_multilabel", "tests.test_server::test_http_helper_functions", "tests.test_server::test_live_test[0]", "tests.test_server::test_live_test[1]", "tests.test_server::test_live_test[2]", "tests.test_server::test_live_te...
["tests.test_util::test_evaluation"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
zheller__flake8-quotes-92
zheller/flake8-quotes
6b9ccd5937fe64bf8f8f492717a9c813235c1f84
diff --git a/flake8_quotes/__init__.py b/flake8_quotes/__init__.py index 9491449..3bfa556 100644 --- a/flake8_quotes/__init__.py +++ b/flake8_quotes/__init__.py @@ -71,8 +71,9 @@ class QuoteChecker(object): DOCSTRING_QUOTES['\'\'\''] = DOCSTRING_QUOTES['\''] DOCSTRING_QUOTES['"""'] = DOCSTRING_QUOTES['"'] -...
python
diff --git a/test/test_checks.py b/test/test_checks.py index 14c16fa..06ebca5 100644 --- a/test/test_checks.py +++ b/test/test_checks.py @@ -40,6 +40,14 @@ class DoublesTestChecks(TestCase): {'col': 4, 'line': 1, 'message': 'Q001 Remove bad quotes from multiline string'}, ]) + def test_multil...
2020-03-25T20:43:14+00:00Z
IndentationError while checking doctest's in the sphinx docs Steps to reproduce: 1. install the [Diofant](https://github.com/diofant/diofant/) [from sources](https://diofant.readthedocs.io/en/latest/install.html#from-sources) 2. install flake8-quotes 3. run flake8-rst docs/tutorial/polys.rst I got the following ...
I don't see flake8-rst or flake8 in the steps to reproduce. Where do those come in? Also, have you verified that flake8-quotes and Diofant are required? On Wed, Mar 25, 2020, 1:16 AM Sergey B Kirpichev <notifications@github.com> wrote: > Steps to reproduce: > > 1. install the Diofant <https://github.com/diofant/d...
0.0.1-alpha
19710e4fbe0daad1e4297b53419947887e3cb08d
["test.test_checks.DoublesTestChecks::test_multiline_string_using_lines"]
["test.test_checks.SinglesAliasTestChecks::test_singles", "test.test_checks.SinglesTestChecks::test_escapes", "test.test_checks.SinglesTestChecks::test_escapes_allowed", "test.test_checks.SinglesTestChecks::test_multiline_string", "test.test_checks.SinglesTestChecks::test_noqa_singles", "test.test_checks.SinglesTestChe...
["test.test_checks.TestFlake8Stdin::test_stdin"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyinat__pyinaturalist-610
pyinat/pyinaturalist
b2862160b8abad3f82d69e8657372d8fe093be3e
diff --git a/HISTORY.md b/HISTORY.md index 14ac43e..b8be73a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,8 @@ # History +## Unreleased +* `ClientSession` arguments `ratelimit_path` and `lock_path` will now apply to the separate rate-limiter used for `/projects/{id}` + ## 0.20.1 (2025-01-18) * Fix `Attribute...
python
diff --git a/test/test_session.py b/test/test_session.py index 1f717dd..c47bd24 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -18,7 +18,6 @@ from pyinaturalist.session import ( delete, get, get_local_session, - get_refresh_params, post, put, ) @@ -253,11 +252,12 @@ def tes...
2025-05-04T16:24:46+00:00Z
get_projects_by_id doesn't use the session's limiter db path ### The problem When using a session with a custom session with `bucket_class=FileLockSQLiteBucket` and `ratelimit_path` set to a filename in the user's home directory, that path is ignored when `get_projects_by_id()` is called with `force_refresh=True` (th...
I see, it looks like that was introduced in #363. Trying to retrace my steps from 3 years ago, it looks like the problem was: * We sometimes got stale project responses due to CDN caches in between the client and iNat servers * These caches ignore `Cache-Control` headers to invalidate the cache, if the cached response...
0.0.1-alpha
00389ac984c36584496ef17245d6bdcf1d7766ed
["test.test_session::test_get_refresh_params"]
["test.controllers.test_annotation_controller::test_all", "test.controllers.test_annotation_controller::test_for_taxon", "test.controllers.test_annotation_controller::test_lookup", "test.controllers.test_annotation_controller::test_lookup__doesnt_exist", "test.controllers.test_annotation_controller::test_create", "test...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
redimp__otterwiki-151
redimp/otterwiki
1bc8a77bdcc7e6519d82d6c5e46c4ef5193a4ddb
diff --git a/otterwiki/auth.py b/otterwiki/auth.py index bb72e0b..71a1d22 100644 --- a/otterwiki/auth.py +++ b/otterwiki/auth.py @@ -60,7 +60,7 @@ class SimpleAuth: if self.allow_write: permissions+="W" if self.allow_upload: permissions+="U" if self.is_admin: permissions+="A" - ...
python
diff --git a/tests/test_preferences.py b/tests/test_preferences.py index 4400896..093f0fd 100644 --- a/tests/test_preferences.py +++ b/tests/test_preferences.py @@ -2,6 +2,7 @@ # vim: set et ts=8 sts=4 sw=4 ai: from datetime import datetime +from bs4 import BeautifulSoup def test_admin_form(admin_client): r...
2024-10-23T22:28:23+00:00Z
Manually add user In the `Permissions and Registration` one can `Disable registration`, which "can be useful for public wikis with a closed group of editors". But how do I get my closed group of editors in? It would be great if the `User Management` had a button to manually add a user.
Released in [v2.7.0](https://github.com/redimp/otterwiki/releases/tag/v2.7.0).
0.0.1-alpha
2701fbe74b760e3cd3d139c2c4be6fef4448d19c
["tests.test_preferences::test_user_add"]
["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" }
mkdocs__mkdocs-redirects-16
mkdocs/mkdocs-redirects
9a14fd27ba408b939a968e953bd7272195f1ba18
diff --git a/mkdocs_redirects/plugin.py b/mkdocs_redirects/plugin.py index 265ba74..bd3dfe1 100644 --- a/mkdocs_redirects/plugin.py +++ b/mkdocs_redirects/plugin.py @@ -54,7 +54,8 @@ def write_html(site_dir, old_path, new_path): def get_relative_html_path(old_page, new_page, use_directory_urls): """ Return the re...
python
diff --git a/tests/test_plugin.py b/tests/test_plugin.py index eab785e..514d0b7 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -15,6 +15,14 @@ from mkdocs_redirects.plugin import get_relative_html_path ("foo/old.md", "foo/new.md", "../new/"), ("foo/fizz/old.md", "foo/bar/new.md", "../../bar/n...
2022-08-21T16:39:54+00:00Z
Add support for hash fragments __First of all: this is a very useful plugin, thanks for writing it!__ I'm currently in the process of rewriting the docs for Material for MkDocs in https://github.com/squidfunk/mkdocs-material/pull/1735 and, as the overall structure changed a lot, want to redirect some of the pages. ...
This can be achieved with [mkdocs-gen-files](https://github.com/oprypin/mkdocs-gen-files) instead. ```yaml # mkdocs.yml plugins: - search - gen-files: scripts: - redirects.py ``` ```python # docs/redirects.py import mkdocs_gen_files redirect_map = { "guides/package.md": "../../guide/actio...
0.0.1-alpha
52f95e08d0eb4ee37359d3ea22dc2616431fb502
["tests.test_plugin::test_relative_redirect_directory_urls[old.md-index.md#hash-../#hash]", "tests.test_plugin::test_relative_redirect_directory_urls[old.md-README.md#hash-../#hash]", "tests.test_plugin::test_relative_redirect_directory_urls[old.md-new.md#hash-../new/#hash]", "tests.test_plugin::test_relative_redirect_...
["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" }
matthewwithanm__python-markdownify-92
matthewwithanm/python-markdownify
43dbe20aaf9d11c38c9dab7d0e8f30dfdedf19e7
diff --git a/markdownify/__init__.py b/markdownify/__init__.py index eaa6ded..d0da098 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -143,7 +143,13 @@ class MarkdownConverter(object): elif isinstance(el, NavigableString): text += self.process_text(el) el...
python
diff --git a/tests/test_advanced.py b/tests/test_advanced.py index 14bf3cd..a3a5fda 100644 --- a/tests/test_advanced.py +++ b/tests/test_advanced.py @@ -14,7 +14,7 @@ def test_chomp(): def test_nested(): text = md('<p>This is an <a href="http://example.com/">example link</a>.</p>') - assert text == 'This is ...
2024-04-09T16:54:33+00:00Z
Inline <p> not handled well Input: Wie nennt man jemanden, der gegen Covid-Politik Proteste organisiert, und sich dann mit einem Covid-Testcenter an der Zitze des Staates labt?<p><a href="https://www.mdr.de/nachrichten/sachsen-anhalt/dessau/bitterfeld/buergermeister-raguhn-jessnitz-loth-afd-100.html">Bürgermeis...
Smaller testcase: ``` >>> from markdownify import markdownify as md >>> md('TEXT1<p>TEXT2</p>') 'TEXT1TEXT2\n\n' ``` There is no line break before the TEXT2 paragraph content.
0.0.1-alpha
60d86663d7f3cb5113e55ecede817f1a306420a2
["tests.test_advanced::test_nested", "tests.test_conversions::test_header_with_space", "tests.test_conversions::test_h1", "tests.test_conversions::test_h2", "tests.test_conversions::test_hn", "tests.test_conversions::test_hn_chained", "tests.test_conversions::test_hn_nested_tag_heading_style", "tests.test_conversions::...
["tests.test_advanced::test_chomp", "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_args::test_do_not_strip", "tests.test_a...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
sepandhaghighi__pycm-279
sepandhaghighi/pycm
d13ed19032b4282d34d137f4b8ffdf5bbe9972a5
diff --git a/pycm/pycm_util.py b/pycm/pycm_util.py index a780f6a..a462083 100644 --- a/pycm/pycm_util.py +++ b/pycm/pycm_util.py @@ -207,7 +207,7 @@ def normalized_table_calc(classes, table): if div == 0: div = 1 for item in classes: - normalized_table[key][item] = numpy.around...
python
2020-02-04T12:13:08+00:00Z
normalized_table_calc inefficiency #### Description Recently I found that `normalized_table_calc` function is **too slow** (more than **30%** of the total execution time!!!) and it seems that the reason is the poor performance of `numpy.around` and built-in `round` function in scalar mode!! I think, we should def...
@alirezazolanvari @sadrasabouri Please check this issue and give me some feedback So odd. As @sepandhaghighi mentioned the reason is ``` round is probably better at handling the rounding of negative numbers (as someone commented, it makes a lot extra calls, so the code is more complex). ``` Your round functio...
0.0.1-alpha
a65ce1d2f5e208ab1df07993f0d195fc2c2a6701
["Test.output_test::output_test", "Test.overall_test::overall_test"]
["Test.compare_test::compare_test", "Test.error_test::error_test", "Test.function_test::function_test", "Test.verified_test::verified_test", "Test.warning_test::warning_test", "pycm.pycm_obj::pycm.pycm_obj.ConfusionMatrix"]
["pycm.pycm_compare::pycm.pycm_compare.Compare"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-157
pyprojectx/pyprojectx
8d5585115428efde083da81a28dc86bfd046ad2a
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6123cf0..8b347ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### Bug Fixes +- #157 uv default tool context does not work if any other pyprojectx configuration is present + Release v3.2.7 (2025-08-01) ---------------------------- ### Features & Improvem...
python
diff --git a/tests/integration/test_pw.py b/tests/integration/test_pw.py index 4578db0..4c60210 100644 --- a/tests/integration/test_pw.py +++ b/tests/integration/test_pw.py @@ -385,6 +385,16 @@ def test_default_tools(tmp_project): assert re.search(r"\d+.\d+.\d+", proc_result.stdout.decode("utf-8")) +def test_d...
2025-08-11T12:05:30+00:00Z
uv default tool context does not work if any other pyprojectx configuration is present **Describe the bug** according to [this section of the docs](https://pyprojectx.github.io/usage/#global-tools), pyprojectx will create a default tool context for uv if none are specified. however this does not work if any other pypr...
0.0.1-alpha
605131e171d1e24966ba6f5a7bf1cd7809c4504e
["tests.integration.test_pw::test_default_tools_without_tool_context", "tests.unit.test_config::test_no_ctx_config"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
psolin__cleanco-70
psolin/cleanco
e19125ac8c4ef23edfbc0d0a020a04e91e8f87ef
diff --git a/README.md b/README.md index 2f07def..99eea3e 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ Just use 'pip install cleanco' if you have pip installed (as most systems do). O ## How does it work? Let's look at some sample code. To get the base name of a business without legal suffix: - >>> f...
python
diff --git a/tests/test_cleanname.py b/tests/test_cleanname.py index 16f048c..1386973 100644 --- a/tests/test_cleanname.py +++ b/tests/test_cleanname.py @@ -1,22 +1,17 @@ # encoding: utf-8 import pytest -from cleanco import prepare_terms, basename - - -@pytest.fixture -def terms(): - return prepare_terms() +from cl...
2021-11-16T18:59:06+00:00Z
prepare_terms() should be part of base_name() This probably breaks the scope of abstraction. If I want to get a clean name of the company, I shouldn't care about this implementation detail. Also makes the function more readable - it is intuitive that I should put in company_name into base_name function to get a ba...
#75 was merged that should fix this issue. Thank you @taraskuzyk for raising this issue and taking the time to provide a PR.
0.0.1-alpha
6391604a790e6d2da7c509d69531f1ba88400002
["tests.test_cleanname::test_deterministic_terms", "tests.test_cleanname::test_basic_cleanups", "tests.test_cleanname::test_multi_type_cleanups", "tests.test_cleanname::test_double_cleanups", "tests.test_cleanname::test_preserving_cleanups", "tests.test_cleanname::test_with_unicode_umlauted_name", "tests.test_cleanname...
[]
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
mondeja__mkdocs-include-markdown-plugin-251
mondeja/mkdocs-include-markdown-plugin
76d1953098890c164ffe691ca684547d8be692fd
diff --git a/src/mkdocs_include_markdown_plugin/process.py b/src/mkdocs_include_markdown_plugin/process.py index 4d41abc..3c47550 100644 --- a/src/mkdocs_include_markdown_plugin/process.py +++ b/src/mkdocs_include_markdown_plugin/process.py @@ -112,6 +112,49 @@ MARKDOWN_LINK_DEFINITION_REGEX = re.compile( flags=re...
python
diff --git a/tests/test_unit/test_process.py b/tests/test_unit/test_process.py index 62d8655..064ea86 100644 --- a/tests/test_unit/test_process.py +++ b/tests/test_unit/test_process.py @@ -13,6 +13,7 @@ from mkdocs_include_markdown_plugin.process import ( @pytest.mark.parametrize( ('markdown', 'source_path', 'des...
2025-02-05T16:53:50+00:00Z
Rewrite relative URLs for raw HTML in Markdown Current `rewrite_relative_urls` supports Markdown Link, Image, and Link Definition. It would be nice this plugin supports raw html (i,e img, anchor tag). Note: Raw HTML has incompatibility with some setting of mkdocs. (i.e. https://github.com/mkdocs/mkdocs/issues/991) U...
0.0.1-alpha
c3bfd0a99f1dadcbf0a0e14b4f55fbd27c77219b
["tests.test_unit.test_process::test_rewrite_relative_urls[html-image]", "tests.test_unit.test_process::test_rewrite_relative_urls[html-source]", "tests.test_unit.test_process::test_rewrite_relative_urls[html-anchor]", "tests.test_unit.test_process::test_rewrite_relative_urls[html-image-single-quote]", "tests.test_unit...
["tests.test_integration.test_cache_integration::test_page_included_by_url_is_cached[directive=include-https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/examples/basic/mkdocs.yml-site_name: Foo\\nplugins:\\n - include-markdown\\n]", "tests.test_integration.test_cache_integration::test_pag...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
octodns__octodns-1126
octodns/octodns
604ed8604badbc979f5ba96202665a9a1ef2f983
diff --git a/CHANGELOG.md b/CHANGELOG.md index b8633bf..f1ee744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ a plan with a single change type with a single value, e.g. CNAME. * Support added for config env variable expansion on nested levels, not just top-level provider/processor keys +* _Chunked...
python
diff --git a/tests/test_octodns_record_chunked.py b/tests/test_octodns_record_chunked.py index ded2e9b..30592cc 100644 --- a/tests/test_octodns_record_chunked.py +++ b/tests/test_octodns_record_chunked.py @@ -37,3 +37,33 @@ class TestRecordChunked(TestCase): zone = Zone('unit.tests.', []) a = SpfRecor...
2024-01-04T22:34:20+00:00Z
OctoDNS dry-run not failing on em dash in txt record When trying to set this text record `v=spf1 –all` using OctoDNS without `--do-it` (which we use as a validate step in our CI pipeline) OctoDNS fails to pick up the em dash posing as a hyphen. When actually making the changes this results in an error: ``` Invalid v...
It looks like utf-8 chars aren't legal in TXT values, but atm i'm having a hard time finding something that definitively says that's the case. https://datatracker.ietf.org/doc/html/rfc1035#section-3.3.14 doesn't seem to specify what's legal in a `character-string`, though it's age would lead me to believe it's assu...
0.0.1-alpha
f15f7923a335a80810c6bc6a41a94883efe71c7c
["tests.test_octodns_record_chunked.TestChunkedValue::test_validate"]
["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" }
tsroten__dragonmapper-30
tsroten/dragonmapper
72961e6917968c167ad0ac912556f8982f09f14f
diff --git a/src/dragonmapper/data/hanzi_pinyin_words.tsv b/src/dragonmapper/data/hanzi_pinyin_words.tsv index 8262588..61aabee 100644 --- a/src/dragonmapper/data/hanzi_pinyin_words.tsv +++ b/src/dragonmapper/data/hanzi_pinyin_words.tsv @@ -3891,8 +3891,8 @@ A片 Apiàn 保證 bǎozhèng 保證金 bǎozhèngjīn 保证金 bǎozhèngjīn -保證破壞...
python
diff --git a/tests/test_hanzi.py b/tests/test_hanzi.py index 91363e2..31956d5 100644 --- a/tests/test_hanzi.py +++ b/tests/test_hanzi.py @@ -68,3 +68,14 @@ class TestConversionFunctions(unittest.TestCase): """Incorrect readings for 女.""" reading = hanzi.to_pinyin("女") self.assertEqual("nǚ", r...
2024-02-17T21:01:43+00:00Z
dragonmapper.hanzi.to_pinyin('战略') = zhànlüÈ, not zhànlüè Seems to be a problem with all 'lüè'. Don't know if it's just my code but it seems to be a dragonmapper issue.
0.0.1-alpha
aef7d05bb88b987a092332703df8ace71e39bd20
["tests.test_hanzi.TestConversionFunctions::test_issue_30"]
["tests.test_hanzi.TestConversionFunctions::test_accented_pinyin", "tests.test_hanzi.TestConversionFunctions::test_custom_container", "tests.test_hanzi.TestConversionFunctions::test_issue_10", "tests.test_hanzi.TestConversionFunctions::test_issue_7", "tests.test_hanzi.TestConversionFunctions::test_numbered_pinyin", "te...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
simonw__csv-diff-12
simonw/csv-diff
5a598ca7fa85c4b9259c0713633f5c1d7a865f14
diff --git a/README.md b/README.md index d9cd76f..8261970 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Tests](https://github.com/simonw/csv-diff/workflows/Test/badge.svg)](https://github.com/simonw/csv-diff/actions?query=workflow%3ATest) [![License](https://img.shields.io/badge/license-Apache%202.0-blue....
python
diff --git a/tests/test_cli.py b/tests/test_cli.py index af94165..de63c4c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,7 +1,9 @@ from click.testing import CliRunner -from csv_diff import cli +from csv_diff import cli, load_csv +import csv import pytest from .test_csv_diff import ONE, ONE_TSV, TWO, TW...
2021-02-23T01:11:37+00:00Z
Support JSON inputs too I find myself wanting to generate commit messages for JSON files. This can reuse almost all of the logic from `csv-diff` - so for the moment I'm going to add that ability here rather than spin up a brand new tool. A rename if this tool can come later!
Annoyingly the `--json` flag is already being used for "output as JSON". I can use `--format=json` instead (already has `--format=csv` and `--format=tsv`). Had to add special treatment for nested lists and objects - they get serialized to a JSON string and compared that way. Example output: ``` % csv-diff locati...
0.0.1-alpha
328718f9367c0f5a1c41eb92d9969ff7a81a3c50
["tests.test_cli::test_json_files"]
["tests.test_cli::test_human_cli", "tests.test_cli::test_human_cli_alternative_names", "tests.test_cli::test_human_cli_json", "tests.test_cli::test_tsv_files", "tests.test_cli::test_sniff_format", "tests.test_cli::test_format_overrides_sniff", "tests.test_cli::test_column_containing_dot", "tests.test_cli::test_semicolo...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
oceanbase__sql-lifecycle-management-67
oceanbase/sql-lifecycle-management
88521fe822b4112a53956cf73b435d01b7060a4b
diff --git a/src/api/monitor.py b/src/api/monitor.py index 5325fdf..1661d93 100644 --- a/src/api/monitor.py +++ b/src/api/monitor.py @@ -376,12 +376,14 @@ class DatabaseConnectionCheck(BaseAPI): message = "When approveType != null, approveScope/hostIp/hostPort/userName/password is required" ...
python
diff --git a/test/common/test_utils.py b/test/common/test_utils.py index 83c6de0..e6f5d06 100644 --- a/test/common/test_utils.py +++ b/test/common/test_utils.py @@ -16,6 +16,7 @@ import unittest from src.common.utils import Utils + class MyTestCase(unittest.TestCase): def test_remove_hint_and_annotate(self...
2023-07-06T07:42:08+00:00Z
[Bug]: Update Monitor report error 'Can not find any matching row in the user table' in log [Bug]: Update Monitor report error 'Can not find any matching row in the user table' in log
0.0.1-alpha
6f5d47d73b9a2d083e0d392ec8c2b092bfd464ad
["test.common.test_utils.MyTestCase::test_hint", "test.common.test_utils.MyTestCase::test_semicolon"]
["test.optimizer.test_formatter.MyTestCase::test_as", "test.optimizer.test_formatter.MyTestCase::test_delete", "test.optimizer.test_formatter.MyTestCase::test_sql_1", "test.optimizer.test_formatter.MyTestCase::test_subquery_limit", "test.optimizer.test_formatter.MyTestCase::test_union", "test.optimizer.test_formatter.M...
[]
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
pyprojectx__pyprojectx-156
pyprojectx/pyprojectx
a643193a52ee2cb41ffc66faf69efcda11a0566b
diff --git a/CHANGELOG.md b/CHANGELOG.md index a46c508..6ba13c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### Features & Improvements +- #156 omit uv warning and prompt when running with --lock + Release v3.2.6 (2025-08-01) ---------------------------- ### Features & Improvements diff --git a/src...
python
diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index 8164d6e..c68fea9 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -50,7 +50,13 @@ def test_run_tool(tmp_dir, mocker): assert venv_args[0].endswith(UV_EXE) assert venv_args[1] == "venv" assert venv_args[2].endswith(f"{tm...
2025-08-01T09:46:21+00:00Z
omit uv warning and prompt when locking tool context The uv warning and prompt for confirmation when running with --lock, should be silenced.
0.0.1-alpha
cdbd071c103ac7a3b0e29ab468349a36b329eaf6
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_install_context"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
[]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
oscal-compass__compliance-trestle-1544
oscal-compass/compliance-trestle
d72f1fdfe26cd03a92d07aabfa6cde37ab41bc70
diff --git a/trestle/tasks/csv_to_oscal_cd.py b/trestle/tasks/csv_to_oscal_cd.py index 7244735..455b613 100644 --- a/trestle/tasks/csv_to_oscal_cd.py +++ b/trestle/tasks/csv_to_oscal_cd.py @@ -61,6 +61,9 @@ PARAMETER_ID = f'{PARAMETER}_Id' PARAMETER_DESCRIPTION = f'{PARAMETER}_Description' PARAMETER_VALUE_DEFAULT = f...
python
diff --git a/tests/trestle/tasks/csv_to_oscal_cd_test.py b/tests/trestle/tasks/csv_to_oscal_cd_test.py index 392b4a5..e1d075e 100644 --- a/tests/trestle/tasks/csv_to_oscal_cd_test.py +++ b/tests/trestle/tasks/csv_to_oscal_cd_test.py @@ -1234,6 +1234,87 @@ def test_execute_add_property(tmp_path: pathlib.Path) -> None: ...
2024-06-13T16:39:59+00:00Z
Add RISK support in to component definition spread sheet (csv) support ## Issue description / feature objectives Add the following optional columns as expected but optional to the csv-to-oscal-cd task: - $Original_Risk_Rating - Provide the Original Risk Rating from the scanner - $Adjusted_Risk_Rating ...
Do risk-related columns need special handling? For example, they are ignored or required for validation component type? For validation, ignored. Otherwise, handling is the same for other optional columns that become OSCAL properties. On Thu, Jun 6, 2024 at 2:00 PM Ma1h01 ***@***.***> wrote: > Do risk-related col...
0.0.1-alpha
dbe8e051cd4ad2ab073438a4e837356924d6e062
["tests.trestle.tasks.csv_to_oscal_cd_test::test_execute_with_risk_properties", "tests.trestle.tasks.csv_to_oscal_cd_test::test_execute_with_ignored_risk_properties"]
["tests.trestle.cli_test::test_run", "tests.trestle.core.base_model_test::test_echo_tmp_path", "tests.trestle.core.base_model_test::test_is_oscal_base", "tests.trestle.core.base_model_test::test_no_timezone_exception", "tests.trestle.core.base_model_test::test_with_timezone", "tests.trestle.core.base_model_test::test_b...
["tests.trestle.core.base_model_test::test_stripped_instance", "tests.trestle.core.base_model_test::test_oscal_read", "tests.trestle.core.base_model_test::test_oscal_write", "tests.trestle.core.base_model_test::test_get_field_value_by_alias", "tests.trestle.core.base_model_test::test_get_field_by_alias", "tests.trestle...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
michaelhly__solana-py-33
michaelhly/solana-py
5e2fdfaf1e5043f189554c8f33da4b5d32c48653
diff --git a/solana/transaction.py b/solana/transaction.py index ce6400d..e9dcf6a 100644 --- a/solana/transaction.py +++ b/solana/transaction.py @@ -2,6 +2,7 @@ from __future__ import annotations from dataclasses import dataclass +from sys import maxsize from typing import Any, Dict, List, NamedTuple, NewType, Opt...
python
diff --git a/tests/unit/test_confirmed_block.py b/tests/unit/test_confirmed_block.py index 81720e8..ec5fb19 100644 --- a/tests/unit/test_confirmed_block.py +++ b/tests/unit/test_confirmed_block.py @@ -48,7 +48,7 @@ def test_verify_confirmed_block(stubbed_blockhash): # Verify signatures in confirmed_block asse...
2021-04-17T21:02:01+00:00Z
Require feePayer account before tx serialization Corresponding PR in solana-web3.js: https://github.com/solana-labs/solana-web3.js/commit/d98d759f5f208cb5896adf5d477fd0434d2a5267
0.0.1-alpha
246416ad8c26729fa1b2ce04921c2356cc3c51aa
["tests.unit.test_confirmed_block::test_verify_confirmed_block"]
["solana.account::solana.account.Account.sign", "solana.blockhash::solana.blockhash", "solana.instruction::solana.instruction.decode_data", "solana.instruction::solana.instruction.encode_data", "solana.message::solana.message.Message.deserialize", "solana.message::solana.message.Message.serialize", "solana.publickey::s...
["tests.integration.test_http_client::test_request_air_drop", "tests.integration.test_http_client::test_send_transaction_and_get_balance", "tests.integration.test_http_client::test_send_raw_transaction_and_get_balance", "tests.integration.test_http_client::test_get_block_commitment", "tests.integration.test_http_client...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
python-validators__validators-309
python-validators/validators
a2b4fc0e6fb45b9faa92908e244c424805d5bd88
diff --git a/CHANGES.md b/CHANGES.md index e2eb301..1913b96 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,25 @@ Note to self: Breaking changes must increment either --> +## 0.27.0 (2024-04-03) + +_**Breaking**_ ⚠️ + +- patch: moves `base58` and `base64` into `encoding` by @yozachar in [#354](https://github.c...
python
diff --git a/tests/test_url.py b/tests/test_url.py index 079e62e..6b36583 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -1,5 +1,8 @@ """Test URL.""" +# standard +from typing import Optional + # external import pytest @@ -107,6 +110,19 @@ def test_returns_true_on_valid_url(value: str): @pytest.ma...
2024-04-03T05:18:55+00:00Z
`url(public = True)` is broken Version 0.10.3 added the `public` argument to `validators.url` which would return 'False' for obvious local urls. This was very useful, but the functionality seems to be broken, maybe since c43826c0dab6d23162b0564c448a31469331b16e . Even the tests are removed. Nothing is mentioned in the...
Hi @haavardw, can you please provide a couple of use cases to consider? We have a system where you can submit a URL and get the web-site analyzed and scanned for phishing, malware etc. The argument `public=True` is used to prevent scanning of local resources, e.g. file:///etc/passwd or local cloud resources, which wou...
0.0.1-alpha
cab0c876c5ac9f0e61f2064593afd54ab730cd02
["tests.test_url::test_returns_true_on_valid_private_url[http://username:password@10.0.10.1/-True]", "tests.test_url::test_returns_true_on_valid_private_url[http://username:password@192.168.10.10:4010/-True]", "tests.test_url::test_returns_true_on_valid_private_url[http://127.0.0.1-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" }
vasp-dev__py4vasp-179
vasp-dev/py4vasp
fc9263830821a04c6f4120c87f128a4706a35deb
diff --git a/src/py4vasp/_analysis/mlff.py b/src/py4vasp/_analysis/mlff.py index 5fa5dea..db4048c 100644 --- a/src/py4vasp/_analysis/mlff.py +++ b/src/py4vasp/_analysis/mlff.py @@ -45,6 +45,8 @@ class MLFFErrorAnalysis: ... ) """ + TOTAL_ENERGY = "TOTEN" + def __init__(self, *args, **kwargs): ...
python
diff --git a/tests/analysis/test_mlff.py b/tests/analysis/test_mlff.py index 8caee88..37415ea 100644 --- a/tests/analysis/test_mlff.py +++ b/tests/analysis/test_mlff.py @@ -16,7 +16,7 @@ from py4vasp._calculation.stress import Stress class BaseCalculations: - def read(self): + def read(self, *args, **kwargs)...
2025-02-12T10:45:58+00:00Z
regarding error analysis using py4vasp after on the fly MLFF calculation in VASP I am encountering error while importing MLFFErrorAnalysis. "ImportError: cannot import name 'MLFFErrorAnalysis' from 'py4vasp' (c:\ProgramData\miniconda3\Lib\site-packages\py4vasp_init_.py)". Can you help me write alternative script f...
Can you elaborate please? Ideally with the short Python script that you used when you encountered this issue. > Can you elaborate please? Ideally with the short Python script that you used when you encountered this issue. that problem has solved. thank you, now I am facing something different, from py4vasp import MLFF...
0.0.1-alpha
36a8d990495d92aeddf78282fc75a08fefcc153d
["tests.analysis.test_mlff::test_read_from_data", "tests.analysis.test_mlff::test_attributes_from_data[mock_calculations]", "tests.analysis.test_mlff::test_attributes_from_data[mock_multiple_calculations]", "tests.analysis.test_mlff::test_validator", "tests.analysis.test_mlff::test_energy_per_atom_computation", "tests....
["tests.analysis.test_mlff::test_read_inputs_from_path", "tests.analysis.test_mlff::test_read_inputs_from_files", "tests.batch.test_batch::test_error_when_using_constructor", "tests.batch.test_batch::test_creation_from_paths", "tests.batch.test_batch::test_creation_from_paths_with_incorrect_input", "tests.batch.test_ba...
["tests.calculation.test_stoichiometry.TestSr2TiO4::test_to_mdtraj", "tests.calculation.test_stoichiometry.TestCa3AsBr3::test_to_mdtraj", "tests.calculation.test_stoichiometry.TestBa2MnO4::test_to_mdtraj[Sr2TiO4]", "tests.calculation.test_stoichiometry.TestBa2MnO4::test_to_mdtraj[Sr2TiO4 without ion types]", "tests.cal...
{ "key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0" }
more-itertools__more-itertools-410
more-itertools/more-itertools
d6e773411087fa494991d7a8ad81e6a9ad5ddd56
diff --git a/more_itertools/more.py b/more_itertools/more.py index f12c70f..f8361ab 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -609,6 +609,9 @@ def distinct_permutations(iterable, r=None): return iter([()]) if r > item_count: return iter(()) + if item_count == 1: + ...
python
diff --git a/tests/test_more.py b/tests/test_more.py index 591407f..2e62388 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -538,6 +538,12 @@ class DistinctPermutationsTests(TestCase): ([0, 1, 1, 0], 2), ([0, 1, 1, 0], 3), ([0, 1, 1, 0], 4), + (['a'], 0), + ...
2020-03-29T19:28:44+00:00Z
Inconsistent return type for distinct_permutations Before `r` was added to `distinct_permutations`, the function yielded tuples, like `permutations`: ```python >>> list(distinct_permutations([1, 0, 1])) [(1, 0, 1), (0, 1, 1), (1, 1, 0)] >>> list(distinct_permutations([1])) [(1,)] ``` With `r`, the function ...
Sounds right. Up for making PT with a patch?
0.0.1-alpha
c0465331cbc0d882cd7dce5c0bd19aaf46dfb968
["tests.test_more.DistinctPermutationsTests::test_r"]
["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" }
markkho__msdm-59
markkho/msdm
98c6416d7d60e396c42f3de6074b79fad7649d31
diff --git a/msdm/core/distributions/dictdistribution.py b/msdm/core/distributions/dictdistribution.py index 3113cb0..76da7ff 100644 --- a/msdm/core/distributions/dictdistribution.py +++ b/msdm/core/distributions/dictdistribution.py @@ -6,11 +6,15 @@ import random class UniformDistribution(FiniteDistribution): de...
python
diff --git a/msdm/tests/test_core_distributions.py b/msdm/tests/test_core_distributions.py index 50d17ea..4befb84 100644 --- a/msdm/tests/test_core_distributions.py +++ b/msdm/tests/test_core_distributions.py @@ -6,6 +6,7 @@ import pandas as pd from scipy.special import softmax from msdm.core.distributions import Dis...
2022-05-09T02:47:10+00:00Z
Uniform distribution The behavior for the `UniformDistribution` is inconsistent when it receives multiple copies of the same element. For instance: ```python from msdm.core.distributions import UniformDistribution, DictDistribution dist1 = UniformDistribution('abb') dist2 = DictDistribution({'a': 1/3, 'b': 2/3...
I can't entirely recall the context for our choices for Uniform/Deterministic distributions, but my memory is I'd added them to help with performance (DeterministicDistribution is pretty critical for deterministic MDPs at the very least). Figured the best way to preserve some of the performance (by avoiding a dictionar...
0.0.1-alpha
f5372d5dccecd649f191da716125619ae098bdee
["msdm.tests.test_core_distributions.DistributionTestCase::test_uniform_dist"]
["msdm.tests.test_assignment.CoreTestCase::test_AssignmentMap_encode", "msdm.tests.test_assignment.CoreTestCase::test_DefaultAssignmentMap", "msdm.tests.test_core_distributions.DistributionTestCase::test_and", "msdm.tests.test_core_distributions.DistributionTestCase::test_basics", "msdm.tests.test_core_distributions.Di...
["msdm.tests.test_fscboundedpolicyiteration::test_fsc_bpi_tiger_cvxpy"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
pyprojectx__pyprojectx-27
pyprojectx/pyprojectx
c82ecf0b29d20318b0a56923de5970b712432b26
diff --git a/src/pyprojectx/cli.py b/src/pyprojectx/cli.py index da70892..2576f2e 100644 --- a/src/pyprojectx/cli.py +++ b/src/pyprojectx/cli.py @@ -134,6 +134,8 @@ def _run_alias(alias_cmd: AliasCommand, pw_args: List[str], options, config) -> ) quoted_args = [f'"{a}"' for a in options.cmd_args] full_c...
python
diff --git a/tests/data/pw-test.toml b/tests/data/pw-test.toml index 793d129..f9fbaf7 100644 --- a/tests/data/pw-test.toml +++ b/tests/data/pw-test.toml @@ -27,11 +27,14 @@ list-files = "ls" say-post-install = "@post-install-pycowsay: pycowsay after-post-install" create-file = "touch post-install-file.txt" -ls-proj...
2024-01-01T19:27:30+00:00Z
(🎁) Set alias interpreter explicitly I don't want the execution of my aliases to be affected by user settings, I would like them to be reproducible. Maybe aliases should be definable per shell. ```toml [tool.pyprojectx.shell.pwsh.aliases] clean = "Remove-Item -Recurse build" ``` Or if not per shell, then be...
Something like this? ``` subprocess.run([shell, "-c", full_alias_command]) ``` And then configure it per alias: ```toml [tool.pyprojectx.aliases] clean = { cmd: "Remove-Item -Recurse build", shell = "pwsh.exe" } ``` or by default: ```toml [tool.pyprojectx.os.win] shell = "pwsh.exe" ```
0.0.1-alpha
1fc0bd574271117450e210fc05e4c2d656b8c947
["tests.unit.test_config::test_alias_config"]
["tests.integration.test_pw::test_install_ctx", "tests.integration.test_pw::test_logs_and_stdout_with_quiet", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_with_verbose[combine-pw-scripts]", "tests.integration.test_pw::test_logs_and_stdout_when_alias_invoked_from_sub_directory_w...
["tests.unit.test_cli::test_run_tool", "tests.unit.test_cli::test_run_tool_with_args", "tests.unit.test_cli::test_run_alias_with_ctx", "tests.unit.test_cli::test_run_alias_with_ctx_with_args", "tests.unit.test_cli::test_run_explicit_alias_with_ctx_with_arg", "tests.unit.test_cli::test_combined_alias_with_arg", "tests.u...
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }
radioactivedecay__radioactivedecay-87
radioactivedecay/radioactivedecay
efcd663ae08879d262c0ad3edf879487aaed3df7
diff --git a/CHANGELOG.md b/CHANGELOG.md index f61fbb7..d76d816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [0.4.17] - 2023-03-10 +- Fix bug where the conversion of dpm to other activity units, and vice versa, was incorrect (#87 & +#88). + ## [0.4.16] - 2022-10-29 - Added support f...
python
diff --git a/tests/test_converters.py b/tests/test_converters.py index f8d162d..5923c34 100644 --- a/tests/test_converters.py +++ b/tests/test_converters.py @@ -387,9 +387,7 @@ class TestUnitConverterFloat(unittest.TestCase): places=(18 + 15), ) - self.assertEqual( - UnitConver...
2023-03-10T05:35:50+00:00Z
disenigrations per minute <!-- Hi! Thank you for raising an issue with this package! Note if you have a general usage question or feature request, please use the Discussions tab instead. --> #### What is the issue? <!-- Tell us what happens instead of the expected behaviour --> After creating an inventory and ...
Hi @snuetzmann - thanks for this bug report 🙌 I just released v0.4.17 which corrects the problem. You can download it from PyPI now, and it will be available from conda-forge in the next few hours. BTW I hope it's ok, but I just edited your email address out of your message. This will hopefully protect against bots ...
0.0.1-alpha
2c4dd875c11bd7cb68f7b26d9a7e128418febfd7
["tests.test_converters.TestUnitConverterFloat::test_activity_unit_conv", "tests.test_converters.TestUnitConverterSympy::test_activity_unit_conv"]
["tests.test_converters.TestConverters::test_avogadro", "tests.test_converters.TestUnitConverterFloat::test___repr__", "tests.test_converters.TestUnitConverterFloat::test_class_attributes", "tests.test_converters.TestUnitConverterFloat::test_mass_unit_conv", "tests.test_converters.TestUnitConverterFloat::test_moles_uni...
["tests.test_decaydata.TestDecayMatricesSympy::test_instantiation", "tests.test_inventory.TestInventory::test___repr__"]
{ "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit" }