| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Let's update the other .pre-commit-config.yaml hooks as well by running pre-commit autoupdate --jobs 0. We're on Ruff v0.11.8. Ruff 0.12.* gives out a lot of syntax errors, for example: "invalid-syntax: Cannot use type alias statement on Python 3.10 (syntax was added in Python 3.12)" If you like we can leave those for another time and just bump to to the latest 0.11: v0.11.13. |
Sorry, something went wrong.
I fixed this by specifying the target Python version. |
Sorry, something went wrong.
| - id: ruff | ||
| name: Run Ruff (lint) on Lib/test/ | ||
| args: [--exit-non-zero-on-fix] | ||
| args: [--exit-non-zero-on-fix, --target-version=py313] |
There was a problem hiding this comment.
I guess a low version was initially chosen to make backports easier?
Anyway, let's move the config to a .ruff.toml file so it also applies if running Ruff directly.
| args: [--exit-non-zero-on-fix, --target-version=py313] | |
| args: [--exit-non-zero-on-fix] |
We have a top-level that defines target-version = "py310".
Let's override that in Lib/test/.ruff.toml, either:
And we can also remove the t-string files from extend-exclude and put those under [per-file-target-version] for py314.
(Could do the same for test_grammar.py but it has some F811 errors that would need deciding about.)
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
There was a problem hiding this comment.
We can be a little more conservative here:
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @AA-Turner, @hugovk: please review the changes made to this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
Cheers
Sorry, something went wrong.
|
Thanks @mhsmith for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
(cherry picked from commit b36d23f) Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
Sorry, @mhsmith and @AA-Turner, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker b36d23f58e8ab85b8576ab59c2ce72572c2cb12a 3.13 |
Sorry, something went wrong.
|
GH-137621 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit b36d23f)
|
GH-137641 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-137641 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit b36d23f)
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot iOS ARM64 Simulator 3.13 (tier-3) has failed when building commit 5d64571. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1386/builds/1530 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/threading.py", line 994, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 240, in serve_forever
self._handle_request_noblock()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 320, in _handle_request_noblock
self.handle_error(request, client_address)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 318, in _handle_request_noblock
self.process_request(request, client_address)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 349, in process_request
self.finish_request(request, client_address)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 362, in finish_request
self.RequestHandlerClass(request, client_address, self)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 768, in __init__
self.finish()
~~~~~~~~~~~^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/socketserver.py", line 863, in finish
self.socket.sendto(self.wfile.getvalue(), self.client_address)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 54] Connection reset by peer
ERROR
Traceback (most recent call last):
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 222, in test_UnixDatagramServer
self.run_server(socketserver.UnixDatagramServer,
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socketserver.DatagramRequestHandler,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.dgram_examine)
^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/support/threading_helper.py", line 66, in decorator
return func(*args)
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 133, in run_server
testfunc(svrcls.address_family, addr)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 160, in dgram_examine
buf = data = receive(s, 100)
~~~~~~~^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 43, in receive
raise RuntimeError("timed out on %r" % (sock,))
RuntimeError: timed out on <socket.socket fd=31, family=1, type=2, proto=0, laddr=./test_python_pmk5csn_.sock>
Traceback (most recent call last):
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 222, in test_UnixDatagramServer
self.run_server(socketserver.UnixDatagramServer,
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socketserver.DatagramRequestHandler,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.dgram_examine)
^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/support/threading_helper.py", line 66, in decorator
return func(*args)
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 133, in run_server
testfunc(svrcls.address_family, addr)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 160, in dgram_examine
buf = data = receive(s, 100)
~~~~~~~^^^^^^^^
File "/Users/buildbot/Library/Developer/XCTestDevices/BC99FB54-7DA1-44B4-AE19-F8178A18EC35/data/Containers/Bundle/Application/E558837D-1277-4A40-A506-9968B4BB6A8B/iOSTestbed.app/python/lib/python3.13/test/test_socketserver.py", line 43, in receive
raise RuntimeError("timed out on %r" % (sock,))
RuntimeError: timed out on <socket.socket fd=31, family=1, type=2, proto=0, laddr=./test_python_16zmlugj.sock>
|
Sorry, something went wrong.
|
ConnectionResetError: [Errno 54] Connection reset by peer, unrelated. |
Sorry, something went wrong.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Split from #137186. That PR no longer needs the zizmor update, but since I've worked out exactly how to do it, we might as well merge it anyway.