Skip to content

Instantly share code, notes, and snippets.

@al3xtjames
Created July 25, 2026 22:05
Show Gist options
  • Select an option

  • Save al3xtjames/22ff498fddbd0429dfeac7de307acba5 to your computer and use it in GitHub Desktop.

Select an option

Save al3xtjames/22ff498fddbd0429dfeac7de307acba5 to your computer and use it in GitHub Desktop.
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/ljvhlc74y10dk7d5n6p8c0b5prxwv32k-python3.13-black-26.5.1.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-metadata-check-hook.sh
Using pythonMetadataCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/i19ywgllhcvfz8dy13jh2rv1czrcwlj4-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tox.ini"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Setting SETUPTOOLS_SCM_PRETEND_VERSION to 26.5.1
Including all tracked files automatically
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built black-26.5.1-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for black-26.5.1-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Executing pypaInstallPhase
Successfully installed black-26.5.1-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
checking for references to /nix/var/nix/b/4s1nqjihwzc1pm0y3yfxhqwcji/ in /nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1...
patching script interpreter paths in /nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1
stripping (with command strip and flags -S) in /nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1/lib /nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1/bin
checking for references to /nix/var/nix/b/4s1nqjihwzc1pm0y3yfxhqwcji/ in /nix/store/p2w8gzz7jysqyizjh9rv17q43mxgamxx-python3.13-black-26.5.1-dist...
patching script interpreter paths in /nix/store/p2w8gzz7jysqyizjh9rv17q43mxgamxx-python3.13-black-26.5.1-dist
Rewriting #!/nix/store/rry0klmcnwx2jg493w5li2p7i8q8zpdp-python3-3.13.14/bin/python3.13 to #!/nix/store/rry0klmcnwx2jg493w5li2p7i8q8zpdp-python3-3.13.14
wrapping `/nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1/bin/blackd'...
Rewriting #!/nix/store/rry0klmcnwx2jg493w5li2p7i8q8zpdp-python3-3.13.14/bin/python3.13 to #!/nix/store/rry0klmcnwx2jg493w5li2p7i8q8zpdp-python3-3.13.14
wrapping `/nix/store/m4kwbw4d5aby7hys146qngx73pqdx3jq-python3.13-black-26.5.1/bin/black'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Executing pythonImportsCheckPhase
Running phase: pythonMetadataCheckPhase
@nix { "action": "setPhase", "phase": "pythonMetadataCheckPhase" }
Executing pythonMetadataCheckPhase
Running phase: pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Executing pytestCheckPhase
pytest flags: -m pytest -k not\ \(test_gen_check_output\)\ and\ not\ \(test_expression_diff\)\ and\ not\ \(test_bpo_2142_workaround\)\ and\ not\ \(test_skip_magic_trailing_comma\) -Wignore::DeprecationWarning
============================= test session starts ==============================
platform darwin -- Python 3.13.14, pytest-9.1.1, pluggy-1.6.0
rootdir: /nix/var/nix/b/4s1nqjihwzc1pm0y3yfxhqwcji/source
configfile: pyproject.toml
collected 519 items / 5 deselected / 514 selected
tests/test_black.py .................................................... [ 10%]
........................................................................ [ 24%]
.............................. [ 29%]
tests/test_blackd.py .................................. [ 36%]
tests/test_concurrency_manager_shutdown.py . [ 36%]
tests/test_docs.py . [ 36%]
tests/test_format.py ................................................... [ 46%]
........................................................................ [ 60%]
........................................................................ [ 74%]
................... [ 78%]
tests/test_ipynb.py .................................................... [ 88%]
..................... [ 92%]
tests/test_no_ipynb.py ss [ 93%]
tests/test_ranges.py ............................... [ 99%]
tests/test_schema.py . [ 99%]
tests/test_tokenize.py .. [ 99%]
tests/test_trans.py . [100%]Traceback (most recent call last):
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/pathlib.py", line 367, in cleanup_numbered_dir
try_cleanup(path, consider_lock_dead_if_created_before)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed scandir iterator <posix.ScandirIterator object at 0x109ebc4b0>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 203, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/pytest/__main__.py", line 9, in <module>
raise SystemExit(_console_main())
~~~~~~~~~~~~~^^
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/config/__init__.py", line 253, in _console_main
code = _main(prog=_get_prog_name(sys.argv))
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/config/__init__.py", line 235, in _main
config._ensure_unconfigure()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1212, in _ensure_unconfigure
self.hook.pytest_unconfigure(config=self)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/nix/store/99ym0lvv3idnk1r1cxs0pylbxbxbk5i8-python3.13-pluggy-1.6.0/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/99ym0lvv3idnk1r1cxs0pylbxbxbk5i8-python3.13-pluggy-1.6.0/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/99ym0lvv3idnk1r1cxs0pylbxbxbk5i8-python3.13-pluggy-1.6.0/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/nix/store/99ym0lvv3idnk1r1cxs0pylbxbxbk5i8-python3.13-pluggy-1.6.0/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/unraisableexception.py", line 173, in pytest_unconfigure
collect_unraisable(config)
~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/unraisableexception.py", line 79, in collect_unraisable
raise errors[0]
File "/nix/store/iijgwrs7rlildqdz04xsi29j3sm7pgwv-python3.13-pytest-9.1.1/lib/python3.13/site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pytest.PytestUnraisableExceptionWarning: Exception ignored in: <posix.ScandirIterator object at 0x109ebc4b0>
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment