-
-
Save konstin/c7183dda99e65c7a1acbd970d2f44b42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/tools/gen_ut_cmakelists.py | |
@@ -177,9 +177,10 @@ | |
- assert re.compile("^test_[0-9a-zA-Z_]+").search( | |
- name | |
- ), """If line is not the header of table, the test name must begin with "test_" """ """and the following substring must include at least one char of "0-9", "a-z", "A-Z" or "_".""" | |
+ assert re.compile("^test_[0-9a-zA-Z_]+").search(name), ( | |
+ """If line is not the header of table, the test name must begin with "test_" """ | |
+ """and the following substring must include at least one char of "0-9", "a-z", "A-Z" or "_".""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/PaddlePaddle:Paddle/test/ipu/distributed/test_dist_pod128_sample.py | |
@@ -88,8 +88,7 @@ | |
- "global_replica_offset": # Paddle : int(os.environ.get("PADDLE_TRAINER_ID")) * 32 | |
- # PopRun : int(os.environ.get("POPDIST_REPLICA_INDEX_OFFSET")) | |
+ "global_replica_offset": # PopRun : int(os.environ.get("POPDIST_REPLICA_INDEX_OFFSET")) # Paddle : int(os.environ.get("PADDLE_TRAINER_ID")) * 32 | |
Unstable formatting /home/konsti/ruff/target/checkouts/hongquan:CurliPie/tests/test_curlipie.py | |
@@ -67,7 +67,10 @@ | |
- curl = """curl -XPUT elastic.dev/movies/_doc/1 -d '{"director": "Burton, Tim", """ """ "year": 1996, "title": "Mars Attacks!"}' -H 'Content-Type: application/json'""" | |
+ curl = ( | |
+ """curl -XPUT elastic.dev/movies/_doc/1 -d '{"director": "Burton, Tim", """ | |
+ """ "year": 1996, "title": "Mars Attacks!"}' -H 'Content-Type: application/json'""" | |
+ ) | |
@@ -76,7 +79,11 @@ | |
- curl = """curl -XPUT elastic.dev/movies/_doc/1 -d '{"genre": ["Comedy", "Sci-Fi"],""" """ "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"]}' """ """-H 'Content-Type: application/json'""" | |
+ curl = ( | |
+ """curl -XPUT elastic.dev/movies/_doc/1 -d '{"genre": ["Comedy", "Sci-Fi"],""" | |
+ """ "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"]}' """ | |
+ """-H 'Content-Type: application/json'""" | |
+ ) | |
@@ -86,7 +93,16 @@ | |
- curl = """curl --location --request POST 'http://stupid.site/sync-info' \\""" """--header 'Content-Type: application/json' \\""" "--data-raw '{" ' "userId": "4-abc-xyz",' ' "planAmount": 50000,' ' "isPromotion": false,' ' "createdAt": "2019-12-13 10:00:00"' "}'" | |
+ curl = ( | |
+ """curl --location --request POST 'http://stupid.site/sync-info' \\""" | |
+ """--header 'Content-Type: application/json' \\""" | |
+ "--data-raw '{" | |
+ ' "userId": "4-abc-xyz",' | |
+ ' "planAmount": 50000,' | |
+ ' "isPromotion": false,' | |
+ ' "createdAt": "2019-12-13 10:00:00"' | |
+ "}'" | |
+ ) | |
@@ -95,7 +111,18 @@ | |
- curl = """curl -X POST \\\nhttp://172.16.0.19/api/access-cards/2392919198/call-elevator \\\n-H 'Accept: */*' """ """\\\n-H 'Accept-Encoding: gzip, deflate' \\\n-H 'Authorization: """ """Basic dXNlcjp4eHg=' \\\n-H 'Cache-Control: no-cache' """ """\\\n-H 'Connection: keep-alive' \\\n-H 'Content-Length: 407' \\\n""" """-H 'Content-Type: multipart/form-data; boundary=--------------------------539724411903816199149731' """ """\\\n-H 'Host: 172.16.0.19' \\\n-H 'Postman-Token: 24e4f6f7' \\\n""" """-H 'User-Agent: PostmanRuntime/7.19.0' """ """\\\n-H 'cache-control: no-cache' \\\n-H 'content-type: multipart/form-data; """ """boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n""" """-F boarding_floor=1 \\\n-F destination_floor=9 \\\n-F elevator_bank_number=3""" | |
+ curl = ( | |
+ """curl -X POST \\\nhttp://172.16.0.19/api/access-cards/2392919198/call-elevator \\\n-H 'Accept: */*' """ | |
+ """\\\n-H 'Accept-Encoding: gzip, deflate' \\\n-H 'Authorization: """ | |
+ """Basic dXNlcjp4eHg=' \\\n-H 'Cache-Control: no-cache' """ | |
+ """\\\n-H 'Connection: keep-alive' \\\n-H 'Content-Length: 407' \\\n""" | |
+ """-H 'Content-Type: multipart/form-data; boundary=--------------------------539724411903816199149731' """ | |
+ """\\\n-H 'Host: 172.16.0.19' \\\n-H 'Postman-Token: 24e4f6f7' \\\n""" | |
+ """-H 'User-Agent: PostmanRuntime/7.19.0' """ | |
+ """\\\n-H 'cache-control: no-cache' \\\n-H 'content-type: multipart/form-data; """ | |
+ """boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n""" | |
+ """-F boarding_floor=1 \\\n-F destination_floor=9 \\\n-F elevator_bank_number=3""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/weien8899:airflow-latest/airflow/utils/db.py | |
@@ -961,7 +961,7 @@ | |
- yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
+ yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
Unstable formatting /home/konsti/ruff/target/checkouts/PyCQA:astroid/astroid/brain/brain_numpy_core_umath.py | |
@@ -13,7 +13,10 @@ | |
- ufunc_optional_keyword_arguments = """out=None, where=True, casting='same_kind', order='K', """ """dtype=None, subok=True""" | |
+ ufunc_optional_keyword_arguments = ( | |
+ """out=None, where=True, casting='same_kind', order='K', """ | |
+ """dtype=None, subok=True""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/pypa:cibuildwheel/test/test_before_build.py | |
@@ -43,7 +43,10 @@ | |
- before_build = """python -c "import sys; open('{output_dir}pythonversion.txt', 'w').write(sys.version)" && """ '''python -c "import sys; open('{output_dir}pythonexecutable.txt', 'w').write(sys.executable)"''' | |
+ before_build = ( | |
+ """python -c "import sys; open('{output_dir}pythonversion.txt', 'w').write(sys.version)" && """ | |
+ '''python -c "import sys; open('{output_dir}pythonexecutable.txt', 'w').write(sys.executable)"''' | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/wandb:wandb/wandb/sdk/internal/system/assets/gpu_apple.py | |
@@ -57,9 +57,9 @@ | |
- subprocess.check_output(command, universal_newlines=True).strip().split( | |
- "\n" | |
- )[0] | |
+ subprocess.check_output(command, universal_newlines=True) | |
+ .strip() | |
+ .split("\n")[0] | |
Unstable formatting /home/konsti/ruff/target/checkouts/wandb:wandb/wandb/sdk/internal/system/assets/gpu_amd.py | |
@@ -33,7 +33,9 @@ | |
- subprocess.check_output(command, universal_newlines=True).strip().split("\n")[0] | |
+ subprocess.check_output(command, universal_newlines=True) | |
+ .strip() | |
+ .split("\n")[0] | |
Unstable formatting /home/konsti/ruff/target/checkouts/gsemyong:posthog1/posthog/api/activity_log.py | |
@@ -53,10 +53,13 @@ | |
- self.queryset.exclude(user=user).filter(team_id=self.team.id).filter( | |
+ self.queryset.exclude(user=user) | |
+ .filter(team_id=self.team.id) | |
+ .filter( | |
- ).order_by("-created_at")[:10] | |
+ ) | |
+ .order_by("-created_at")[:10] | |
Unstable formatting /home/konsti/ruff/target/checkouts/streamlink:streamlink/tests/cli/test_cmdline.py | |
@@ -183,7 +183,8 @@ | |
- """c:\\Program Files\\Player\\player.exe --input-title-format "Poker \\"Stars\\""""", | |
+ """c:\\Program Files\\Player\\player.exe --input-title-format "Poker \\"Stars\\""" | |
+ "", | |
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines-escaping/gyptest-defines-escaping.py | |
@@ -16,9 +16,10 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n' """ r"""test_args='"Simple test of %s with a literal"'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n' """ | |
+ r"""test_args='"Simple test of %s with a literal"'""" | |
+ ) | |
@@ -52,9 +53,14 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args='"\"These,\"",""" r""" "\"words,\"",""" r""" "\"are,\"",""" r""" "\"in,\"",""" r""" "\"quotes.\""'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s %s %s %s %s\n' """ | |
+ r"""test_args='"\"These,\"",""" | |
+ r""" "\"words,\"",""" | |
+ r""" "\"are,\"",""" | |
+ r""" "\"in,\"",""" | |
+ r""" "\"quotes.\""'""" | |
+ ) | |
@@ -71,9 +77,14 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args="\"'These,'\",""" r""" \"'words,'\",""" r""" \"'are,'\",""" r""" \"'in,'\",""" r""" \"'quotes.'\"" """ | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s %s %s %s %s\n' """ | |
+ r"""test_args="\"'These,'\",""" | |
+ r""" \"'words,'\",""" | |
+ r""" \"'are,'\",""" | |
+ r""" \"'in,'\",""" | |
+ r""" \"'quotes.'\"" """ | |
+ ) | |
@@ -91,9 +102,12 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n%s\n%s\n' """ r"""test_args='"\\\"1 visible slash\\\"",""" r""" "\\\\\"2 visible slashes\\\\\"",""" r""" "\\\\\\\"3 visible slashes\\\\\\\""'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n%s\n%s\n' """ | |
+ r"""test_args='"\\\"1 visible slash\\\"",""" | |
+ r""" "\\\\\"2 visible slashes\\\\\"",""" | |
+ r""" "\\\\\\\"3 visible slashes\\\\\\\""'""" | |
+ ) | |
@@ -112,9 +126,9 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n' """ r"""test_args='"$foo, " `foo`;"'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n' """ r"""test_args='"$foo, " `foo`;"'""" | |
+ ) | |
@@ -148,9 +162,9 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" # Same thing again, but enclosed in visible quotes. | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" | |
+ ) # Same thing again, but enclosed in visible quotes. | |
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines/gyptest-defines.py | |
@@ -23,7 +23,12 @@ | |
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n""" | |
+ expect_stderr = ( | |
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the""" | |
+ """ compiler command line because many compilers do not support it.\n""" | |
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" | |
+ """Consider defining the macro in a (configured) header file.\n\n""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/bolucat:Firefox/third_party/python/gyp/test/defines/gyptest-define-override.py | |
@@ -16,7 +16,12 @@ | |
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n""" | |
+ expect_stderr = ( | |
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the""" | |
+ """ compiler command line because many compilers do not support it.\n""" | |
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" | |
+ """Consider defining the macro in a (configured) header file.\n\n""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/klen:muffin-rest/muffin_rest/handler.py | |
@@ -278,8 +278,10 @@ | |
- res = await self.dump(request, resource) if resource else self.dump( | |
- request, data=self.collection, many=True | |
+ res = ( | |
+ await self.dump(request, resource) | |
+ if resource | |
+ else self.dump(request, data=self.collection, many=True) | |
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/dosisod:refurb/refurb/checks/readability/use_literal.py: source contains syntax errors (parser error): ParseError { error: UnrecognizedToken(Name { name: "case" }, Some("\"case\"")), offset: 831, source_path: "<filename>" } | |
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/dosisod:refurb/refurb/checks/function/use_implicit_default.py: source contains syntax errors (parser error): ParseError { error: UnrecognizedToken(Name { name: "case" }, None), offset: 4571, source_path: "<filename>" } | |
Error reading /home/konsti/ruff/target/checkouts/oryon-dominik:dotfiles/scripts/python/cliTube.py: No such file or directory (os error 2) | |
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/danielperna84:custom_homematic/custom_components/homematicip_local/entity_helpers.py: source contains syntax errors (parser error): ParseError { error: UnrecognizedToken(Newline, Some("\":\"")), offset: 25771, source_path: "<filename>" } | |
Unstable formatting /home/konsti/ruff/target/checkouts/sphinx-doc:sphinx/tests/test_intl.py | |
@@ -800,15 +800,25 @@ | |
- expect1 = """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ expect1 = ( | |
+ """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ ) | |
- expect2 = """<p><span class="versionmodified added">New in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n""" | |
+ expect2 = ( | |
+ """<p><span class="versionmodified added">New in version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n""" | |
+ ) | |
- expect3 = """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n""" | |
+ expect3 = ( | |
+ """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n""" | |
+ ) | |
@@ -1178,17 +1188,32 @@ | |
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf"><stdio.h></span>""" | |
+ expected_expr = ( | |
+ """<span class="cp">#include</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="cpf"><stdio.h></span>""" | |
+ ) | |
- expected_expr = """<span class="n">literal</span>""" """<span class="o">-</span>""" """<span class="n">block</span>\n""" """<span class="k">in</span>""" """<span class="w"> </span>""" """<span class="n">list</span>""" | |
+ expected_expr = ( | |
+ """<span class="n">literal</span>""" | |
+ """<span class="o">-</span>""" | |
+ """<span class="n">block</span>\n""" | |
+ """<span class="k">in</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="n">list</span>""" | |
+ ) | |
- expected_expr = """<span class="gp">>>> </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># sys importing</span>""" | |
+ expected_expr = ( | |
+ """<span class="gp">>>> </span>""" | |
+ """<span class="kn">import</span> <span class="nn">sys</span> """ | |
+ """<span class="c1"># sys importing</span>""" | |
+ ) | |
@@ -1247,17 +1272,32 @@ | |
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf"><STDIO.H></span>""" | |
+ expected_expr = ( | |
+ """<span class="cp">#include</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="cpf"><STDIO.H></span>""" | |
+ ) | |
- expected_expr = """<span class="no">LITERAL</span>""" """<span class="o">-</span>""" """<span class="no">BLOCK</span>\n""" """<span class="no">IN</span>""" """<span class="w"> </span>""" """<span class="no">LIST</span>""" | |
+ expected_expr = ( | |
+ """<span class="no">LITERAL</span>""" | |
+ """<span class="o">-</span>""" | |
+ """<span class="no">BLOCK</span>\n""" | |
+ """<span class="no">IN</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="no">LIST</span>""" | |
+ ) | |
- expected_expr = """<span class="gp">>>> </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># SYS IMPORTING</span>""" | |
+ expected_expr = ( | |
+ """<span class="gp">>>> </span>""" | |
+ """<span class="kn">import</span> <span class="nn">sys</span> """ | |
+ """<span class="c1"># SYS IMPORTING</span>""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines-escaping/gyptest-defines-escaping.py | |
@@ -16,9 +16,10 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n' """ r"""test_args='"Simple test of %s with a literal"'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n' """ | |
+ r"""test_args='"Simple test of %s with a literal"'""" | |
+ ) | |
@@ -52,9 +53,14 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args='"\"These,\"",""" r""" "\"words,\"",""" r""" "\"are,\"",""" r""" "\"in,\"",""" r""" "\"quotes.\""'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s %s %s %s %s\n' """ | |
+ r"""test_args='"\"These,\"",""" | |
+ r""" "\"words,\"",""" | |
+ r""" "\"are,\"",""" | |
+ r""" "\"in,\"",""" | |
+ r""" "\"quotes.\""'""" | |
+ ) | |
@@ -71,9 +77,14 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s %s %s %s %s\n' """ r"""test_args="\"'These,'\",""" r""" \"'words,'\",""" r""" \"'are,'\",""" r""" \"'in,'\",""" r""" \"'quotes.'\"" """ | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s %s %s %s %s\n' """ | |
+ r"""test_args="\"'These,'\",""" | |
+ r""" \"'words,'\",""" | |
+ r""" \"'are,'\",""" | |
+ r""" \"'in,'\",""" | |
+ r""" \"'quotes.'\"" """ | |
+ ) | |
@@ -91,9 +102,12 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n%s\n%s\n' """ r"""test_args='"\\\"1 visible slash\\\"",""" r""" "\\\\\"2 visible slashes\\\\\"",""" r""" "\\\\\\\"3 visible slashes\\\\\\\""'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n%s\n%s\n' """ | |
+ r"""test_args='"\\\"1 visible slash\\\"",""" | |
+ r""" "\\\\\"2 visible slashes\\\\\"",""" | |
+ r""" "\\\\\\\"3 visible slashes\\\\\\\""'""" | |
+ ) | |
@@ -112,9 +126,9 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n' """ r"""test_args='"$foo, " `foo`;"'""" | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n' """ r"""test_args='"$foo, " `foo`;"'""" | |
+ ) | |
@@ -148,9 +162,9 @@ | |
- os.environ[ | |
- "GYP_DEFINES" | |
- ] = r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" # Same thing again, but enclosed in visible quotes. | |
+ os.environ["GYP_DEFINES"] = ( | |
+ r"""test_format='\n%s\n%s\n' """ r"""test_args='"\\, \\\\;",""" | |
+ ) # Same thing again, but enclosed in visible quotes. | |
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines/gyptest-defines.py | |
@@ -23,7 +23,12 @@ | |
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n""" | |
+ expect_stderr = ( | |
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the""" | |
+ """ compiler command line because many compilers do not support it.\n""" | |
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" | |
+ """Consider defining the macro in a (configured) header file.\n\n""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/mozilla:gecko-dev/third_party/python/gyp/test/defines/gyptest-define-override.py | |
@@ -16,7 +16,12 @@ | |
- expect_stderr = """WARNING: Preprocessor definitions containing '#' may not be passed on the""" """ compiler command line because many compilers do not support it.\n""" """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" """Consider defining the macro in a (configured) header file.\n\n""" | |
+ expect_stderr = ( | |
+ """WARNING: Preprocessor definitions containing '#' may not be passed on the""" | |
+ """ compiler command line because many compilers do not support it.\n""" | |
+ """CMake is dropping a preprocessor definition: HASH_VALUE="a#1"\n""" | |
+ """Consider defining the macro in a (configured) header file.\n\n""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/TheAlgorithms:Python/ciphers/affine_cipher.py | |
@@ -3,7 +3,10 @@ | |
-SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`""" r"""abcdefghijklmnopqrstuvwxyz{|}~""" | |
+SYMBOLS = ( | |
+ r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`""" | |
+ r"""abcdefghijklmnopqrstuvwxyz{|}~""" | |
+) | |
Unstable formatting /home/konsti/ruff/target/checkouts/apache:airflow/airflow/utils/db.py | |
@@ -989,7 +989,7 @@ | |
- yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
+ yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
Unstable formatting /home/konsti/ruff/target/checkouts/a0x8o:airflow/airflow/utils/db.py | |
@@ -989,7 +989,7 @@ | |
- yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
+ yield f"Seems you have mixed case usernames in {model.__table__.name} table.\n" # type: ignore | |
Unstable formatting /home/konsti/ruff/target/checkouts/josescasanova:posthog/posthog/api/activity_log.py | |
@@ -53,10 +53,13 @@ | |
- self.queryset.exclude(user=user).filter(team_id=self.team.id).filter( | |
+ self.queryset.exclude(user=user) | |
+ .filter(team_id=self.team.id) | |
+ .filter( | |
- ).order_by("-created_at")[:10] | |
+ ) | |
+ .order_by("-created_at")[:10] | |
Unstable formatting /home/konsti/ruff/target/checkouts/pylint-dev:astroid/astroid/brain/brain_numpy_core_umath.py | |
@@ -13,7 +13,10 @@ | |
- ufunc_optional_keyword_arguments = """out=None, where=True, casting='same_kind', order='K', """ """dtype=None, subok=True""" | |
+ ufunc_optional_keyword_arguments = ( | |
+ """out=None, where=True, casting='same_kind', order='K', """ | |
+ """dtype=None, subok=True""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/PostHog:posthog/posthog/api/activity_log.py | |
@@ -57,10 +57,13 @@ | |
- self.queryset.exclude(user=user).filter(team_id=self.team.id).filter( | |
+ self.queryset.exclude(user=user) | |
+ .filter(team_id=self.team.id) | |
+ .filter( | |
- ).order_by("-created_at")[:10] | |
+ ) | |
+ .order_by("-created_at")[:10] | |
Unstable formatting /home/konsti/ruff/target/checkouts/Blue-Yonder-OSS:cyclic-boosting/cyclic_boosting/common_smoothers.py | |
@@ -77,8 +77,7 @@ | |
- flags.IS_SEASONAL: # the seasonal smoother does not work with offset_tozero | |
- # when the normalization is done within the smoother | |
+ flags.IS_SEASONAL: # when the normalization is done within the smoother # the seasonal smoother does not work with offset_tozero | |
Unstable formatting /home/konsti/ruff/target/checkouts/theRealProHacker:Positron/src/positron/utils/aio.py | |
@@ -66,9 +66,11 @@ | |
- return await callback(*_args, **kwargs) if inspect.iscoroutinefunction( | |
- callback | |
- ) else asyncio.to_thread(callback, *_args, **kwargs) | |
+ return ( | |
+ await callback(*_args, **kwargs) | |
+ if inspect.iscoroutinefunction(callback) | |
+ else asyncio.to_thread(callback, *_args, **kwargs) | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/django-cms:django-cms/cms/tests/test_templatetags.py | |
@@ -91,7 +91,10 @@ | |
- template = """{% load cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ """type="text/javascript"></script>""" | |
+ template = ( | |
+ """{% load cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ | |
+ """type="text/javascript"></script>""" | |
+ ) | |
@@ -107,7 +110,10 @@ | |
- template = """{% load static cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ """type="text/javascript"></script>""" | |
+ template = ( | |
+ """{% load static cms_static %}<script src="{% static_with_version "cms/css/cms.base.css" %}" """ | |
+ """type="text/javascript"></script>""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/django-cms:django-cms/cms/utils/permissions.py | |
@@ -125,9 +125,9 @@ | |
- PagePermission.objects.get_with_change_permissions( | |
- user, site | |
- ).select_related("page").order_by("page__node__path")[0] | |
+ PagePermission.objects.get_with_change_permissions(user, site) | |
+ .select_related("page") | |
+ .order_by("page__node__path")[0] | |
Unstable formatting /home/konsti/ruff/target/checkouts/Gobot1234:steam.py/steam/ext/commands/help.py | |
@@ -54,8 +54,8 @@ | |
- return await self.send_group_help(command) if isinstance(command, Group) else self.send_command_help( | |
- command | |
+ return ( | |
+ await self.send_group_help(command) if isinstance(command, Group) else self.send_command_help(command) | |
Formatter generated invalid syntax /home/konsti/ruff/target/checkouts/python-babel:babel/tests/messages/test_pofile.py: source contains syntax errors (parser error): ParseError { error: Lexical(OtherError("cannot mix bytes and nonbytes literals")), offset: 16565, source_path: "<filename>" } | |
Unstable formatting /home/konsti/ruff/target/checkouts/sailfishos-mirror:sphinx/tests/test_intl.py | |
@@ -800,15 +800,25 @@ | |
- expect1 = """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ expect1 = ( | |
+ """<p><span class="versionmodified deprecated">Deprecated since version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ """<p>THIS IS THE <em>SECOND</em> PARAGRAPH OF DEPRECATED.</p>\n""" | |
+ ) | |
- expect2 = """<p><span class="versionmodified added">New in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n""" | |
+ expect2 = ( | |
+ """<p><span class="versionmodified added">New in version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONADDED.</p>\n""" | |
+ ) | |
- expect3 = """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n""" | |
+ expect3 = ( | |
+ """<p><span class="versionmodified changed">Changed in version 1.0: </span>""" | |
+ """THIS IS THE <em>FIRST</em> PARAGRAPH OF VERSIONCHANGED.</p>\n""" | |
+ ) | |
@@ -1178,17 +1188,32 @@ | |
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf"><stdio.h></span>""" | |
+ expected_expr = ( | |
+ """<span class="cp">#include</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="cpf"><stdio.h></span>""" | |
+ ) | |
- expected_expr = """<span class="n">literal</span>""" """<span class="o">-</span>""" """<span class="n">block</span>\n""" """<span class="k">in</span>""" """<span class="w"> </span>""" """<span class="n">list</span>""" | |
+ expected_expr = ( | |
+ """<span class="n">literal</span>""" | |
+ """<span class="o">-</span>""" | |
+ """<span class="n">block</span>\n""" | |
+ """<span class="k">in</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="n">list</span>""" | |
+ ) | |
- expected_expr = """<span class="gp">>>> </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># sys importing</span>""" | |
+ expected_expr = ( | |
+ """<span class="gp">>>> </span>""" | |
+ """<span class="kn">import</span> <span class="nn">sys</span> """ | |
+ """<span class="c1"># sys importing</span>""" | |
+ ) | |
@@ -1247,17 +1272,32 @@ | |
- expected_expr = """<span class="cp">#include</span>""" """<span class="w"> </span>""" """<span class="cpf"><STDIO.H></span>""" | |
+ expected_expr = ( | |
+ """<span class="cp">#include</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="cpf"><STDIO.H></span>""" | |
+ ) | |
- expected_expr = """<span class="no">LITERAL</span>""" """<span class="o">-</span>""" """<span class="no">BLOCK</span>\n""" """<span class="no">IN</span>""" """<span class="w"> </span>""" """<span class="no">LIST</span>""" | |
+ expected_expr = ( | |
+ """<span class="no">LITERAL</span>""" | |
+ """<span class="o">-</span>""" | |
+ """<span class="no">BLOCK</span>\n""" | |
+ """<span class="no">IN</span>""" | |
+ """<span class="w"> </span>""" | |
+ """<span class="no">LIST</span>""" | |
+ ) | |
- expected_expr = """<span class="gp">>>> </span>""" """<span class="kn">import</span> <span class="nn">sys</span> """ """<span class="c1"># SYS IMPORTING</span>""" | |
+ expected_expr = ( | |
+ """<span class="gp">>>> </span>""" | |
+ """<span class="kn">import</span> <span class="nn">sys</span> """ | |
+ """<span class="c1"># SYS IMPORTING</span>""" | |
+ ) | |
Formatter error for /home/konsti/ruff/target/checkouts/Somnium-Recordings:TD-Arena/Lib/ToxManager/ToxManager.py: syntax error: Expected colon marking the end of the case header but found another token instead. | |
Unstable formatting /home/konsti/ruff/target/checkouts/dschiffer12:posthog/posthog/api/activity_log.py | |
@@ -53,10 +53,13 @@ | |
- self.queryset.exclude(user=user).filter(team_id=self.team.id).filter( | |
+ self.queryset.exclude(user=user) | |
+ .filter(team_id=self.team.id) | |
+ .filter( | |
- ).order_by("-created_at")[:10] | |
+ ) | |
+ .order_by("-created_at")[:10] | |
Unstable formatting /home/konsti/ruff/target/checkouts/pandas-dev:pandas/pandas/tests/io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,ZZ""" | |
+ """,999,,,,ZZ-ZZZZ,ZZZ,ZZZ,ZZZ-ZZZZ,ZZZ-ZZZZ,,,99.99,99.99""" | |
+ """,,,9.99,9.99,9.99,9.99,ZZZ-ZZZZ,,,ZZZ-ZZZZZ,,,,,-9.99,-""" | |
+ """9.99,-9.99,-9.99,,,,,,,,,ZZZ-ZZZZ,,9,9.99,9.99,99ZZ,,-9""" | |
+ """.99,-9.99,ZZZ-ZZZZ,,,,,,,ZZZ-ZZZZ,9.99,9.99,9999,,,,,,,""" | |
+ """,,,-9.9,Z/Z-ZZZZ,999.99,9.99,,999.99,ZZ-ZZZZ,ZZ-ZZZZ,9.""" | |
+ """99,9.99,9.99,9.99,9.99,9.99,,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ-ZZ""" | |
+ """ZZZ,ZZZ-ZZZZZ,ZZZ-ZZZZZ,ZZZ,ZZZ,ZZZ,ZZZ,9.99,,,-9.99,ZZ""" | |
+ """-ZZZZ,-999.99,,-9999,,999.99,,,,999.99,99.99,,,ZZ-ZZZZZ""" | |
+ """ZZZ,ZZ-ZZZZ-ZZZZZZZ,,,,ZZ-ZZ-ZZZZZZZZ,ZZZZZZZZ,ZZZ-ZZZZ""" | |
+ """,9999,999.99,ZZZ-ZZZZ,-9.99,-9.99,ZZZ-ZZZZ,99:99:99,,99""" | |
+ """,99,,9.99,,-99.99,,,,,,9.99,ZZZ-ZZZZ,-9.99,-9.99,9.99,9""" | |
+ """.99,,ZZZ,,,,,,,ZZZ,ZZZ,,,,,""" | |
+ ) | |
Unstable formatting /home/konsti/ruff/target/checkouts/SMAT-Lab:Scalpel/tests/test-cases/cfg-tests/pytorch-test-test_nn.py | |
@@ -17986,8 +17986,9 @@ | |
- lambda self, device, dtype: # Compute sum of the large tensor sizes: | |
- # (im.numel() + small_image.numel() + small_image.grad.numel() + | |
+ lambda self, | |
+ device, | |
+ dtype: # (im.numel() + small_image.numel() + small_image.grad.numel() + # Compute sum of the large tensor sizes: | |
@@ -18043,8 +18044,9 @@ | |
- lambda self, device, dtype: # Compute sum of the large tensor sizes: | |
- # (im.numel() + small_image.numel() + small_image.grad.numel() + | |
+ lambda self, | |
+ device, | |
+ dtype: # (im.numel() + small_image.numel() + small_image.grad.numel() + # Compute sum of the large tensor sizes: | |
Unstable formatting /home/konsti/ruff/target/checkouts/Epic-Institute:positive-disruption/podi/energy.py | |
@@ -169,7 +169,9 @@ | |
- ).set_index("product_category").loc[ | |
+ ) | |
+ .set_index("product_category") | |
+ .loc[ | |
@@ -208,7 +210,9 @@ | |
- ).set_index("flow_category").loc[ | |
+ ) | |
+ .set_index("flow_category") | |
+ .loc[ | |
Unstable formatting /home/konsti/ruff/target/checkouts/PostHog:posthog-foss/posthog/api/activity_log.py | |
@@ -57,10 +57,13 @@ | |
- self.queryset.exclude(user=user).filter(team_id=self.team.id).filter( | |
+ self.queryset.exclude(user=user) | |
+ .filter(team_id=self.team.id) | |
+ .filter( | |
- ).order_by("-created_at")[:10] | |
+ ) | |
+ .order_by("-created_at")[:10] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment