]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove ENV_PATH on Black action completion (#3759)
authorChristian Proud <christian.jay.proud.cic@gmail.com>
Tue, 8 Aug 2023 18:12:05 +0000 (02:12 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 18:12:05 +0000 (11:12 -0700)
CHANGES.md
action/main.py

index d084498f404ab4696847adbd93be0e550d2c7de5..8bf4188606c8c64d3646f0e52ab19cd1acc937ab 100644 (file)
@@ -50,6 +50,8 @@
   [official pre-commit mirror](https://github.com/psf/black-pre-commit-mirror). Swapping
   `https://github.com/psf/black` to `https://github.com/psf/black-pre-commit-mirror` in
   your `.pre-commit-config.yaml` will make Black about 2x faster (#3828)
   [official pre-commit mirror](https://github.com/psf/black-pre-commit-mirror). Swapping
   `https://github.com/psf/black` to `https://github.com/psf/black-pre-commit-mirror` in
   your `.pre-commit-config.yaml` will make Black about 2x faster (#3828)
+- The `.black.env` folder specified by `ENV_PATH` will now be removed on the completion
+  of the GitHub Action. (#3759)
 
 ### Documentation
 
 
 ### Documentation
 
index 1911cfd7a013ab816929b35fd98a43e5ab0f4809..c0af3930dbbe6f31745e941712e81df3ddb2cae3 100644 (file)
@@ -1,5 +1,6 @@
 import os
 import shlex
 import os
 import shlex
+import shutil
 import sys
 from pathlib import Path
 from subprocess import PIPE, STDOUT, run
 import sys
 from pathlib import Path
 from subprocess import PIPE, STDOUT, run
@@ -73,5 +74,6 @@ else:
         stderr=STDOUT,
         encoding="utf-8",
     )
         stderr=STDOUT,
         encoding="utf-8",
     )
+shutil.rmtree(ENV_PATH, ignore_errors=True)
 print(proc.stdout)
 sys.exit(proc.returncode)
 print(proc.stdout)
 sys.exit(proc.returncode)