Skip to content
  1. Jul 24, 2025
  2. Jul 06, 2025
  3. Jun 03, 2025
    • Matthew Clarkson's avatar
      ci: update to `1.5.0` component · 6606f012
      Matthew Clarkson authored
      6606f012
    • Matthew Clarkson's avatar
      chore: remove unnecessary `Output` class · 2eab0cbe
      Matthew Clarkson authored
      We can use the `TemporaryRedirectFile` class directly as it implements the `SupportsWriteFlush[str]` protocol.
      2eab0cbe
    • Matthew Clarkson's avatar
      chore: remove trailing comma · f303f8c8
      Matthew Clarkson authored
      f303f8c8
    • Matthew Clarkson's avatar
      build: add local `ruff` formatting hook · 73ff12e2
      Matthew Clarkson authored
      73ff12e2
    • Matthew Clarkson's avatar
      fix: correct temporary output move when using YAML `SafeDumper` · ba670a07
      Matthew Clarkson authored
      When a `CSafeDumper` is not available, we fallback to `SafeDumper`.
      
      This correctly invokes the `__del__` function in the order that the garbage collector runs.
      
      It results in the following error:
      
      ```
      Exception ignored in: <function Closer.__del__ at 0x7f9547c3b420>
      Traceback (most recent call last):
        File ".../pre-commit/config/cli.runfiles/_main/pre-commit/config/cli.py", line 175, in __del__
          self.close()
        File ".../pre-commit/config/cli.runfiles/_main/pre-commit/config/cli.py", line 170, in close
          self.__file.flush()
        File ".../python3.13/tempfile.py", line 499, in func_wrapper
          return func(*args, **kwargs)
      ValueError: I/O operation on closed file.
      ```
      
      This occurs because the `NamedTemporaryFile.__del__` runs before the `Closer.__del__`.
      
      The `NamedTemporaryFile.__del__` closes then, then deletes the file. Setting `delete=False` will not help.
      
      We move the `NamedTemporaryFile` into the `Closer` (renamed to `TemporaryRedirectFile`) to correct the closing order.
      ba670a07
  4. May 16, 2025
  5. May 12, 2025
    • Sebastian Birunt's avatar
      fix: multi-platform wheel repo fetch · 835a7252
      Sebastian Birunt authored
      Add `experimental_index_url` to fetch available wheel repos
      for needed platforms.
      
      This does not mean that rules_python is fetching the wheels eagerly,
      but it rather means that it is calling the PyPI server to get the
      Simple API response to get the list of all available source and
      wheel distributions.
      835a7252
  6. May 06, 2025
    • Sebastian Birunt's avatar
      fix: pip spoke whl repository platform · 6daa9df9
      Sebastian Birunt authored
      Having:
      ```py
      pip.parse(
          hub_name = "pre-commit-hook-{}".format(version),
          python_version = version,
          requirements_lock = "//pre-commit/hook/requirements:lock.txt",
      ),
      ```
      and using `requirements_lock` attribute will create pip spoke whl
      repositories just for the host platform.
      
      This can have potential issues when the repository is platform
      dependent and the host platform is different of execution platform
      (common case for RBE build).
      
      The change sets pip requirements for different platforms separately.
      
      Specifying platforms as:
        - `"linux_*"`
        - `"osx_*"`
        - `"windows_*"`
      allows the pip to create repositories for different platforms and
      picks up correct one for the execution platform.
      6daa9df9
  7. Mar 23, 2025
  8. Mar 10, 2025
  9. Mar 07, 2025
  10. Mar 05, 2025
  11. Feb 28, 2025
  12. Feb 27, 2025
  13. Feb 20, 2025
Loading