]> 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:

Check self format for the whole repo (#3750)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Sun, 25 Jun 2023 13:53:26 +0000 (06:53 -0700)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 13:53:26 +0000 (06:53 -0700)
`black .` is changing things in gallery and scripts for me

.github/workflows/test.yml
gallery/gallery.py
scripts/make_width_table.py

index 3ca2a469147126ec233af52d30e75fe33f524ab9..608c58af2ee0419e6cee171a97b02db1d061702d 100644 (file)
@@ -103,4 +103,4 @@ jobs:
           python -m pip install -e ".[uvloop]"
 
       - name: Format ourselves
           python -m pip install -e ".[uvloop]"
 
       - name: Format ourselves
-        run: python -m black --check src/
+        run: python -m black --check .
index 38e52e3479571559715fa9ec9122945f91b10dfe..ba5d6f65fbe5c9c0034b1569d8897f28713780f0 100755 (executable)
@@ -243,11 +243,9 @@ def format_repos(repos: Tuple[Path, ...], options: Namespace) -> None:
 
 
 def main() -> None:
 
 
 def main() -> None:
-    parser = ArgumentParser(
-        description="""Black Gallery is a script that
+    parser = ArgumentParser(description="""Black Gallery is a script that
     automates the process of applying different Black versions to a selected
     automates the process of applying different Black versions to a selected
-    PyPI package and seeing the results between versions."""
-    )
+    PyPI package and seeing the results between versions.""")
 
     group = parser.add_mutually_exclusive_group(required=True)
     group.add_argument("-p", "--pypi-package", help="PyPI package to download.")
 
     group = parser.add_mutually_exclusive_group(required=True)
     group.add_argument("-p", "--pypi-package", help="PyPI package to download.")
index 09aca9c34b56bba43241a6e6f277b6fc83352d0d..89c202553d37b936fd96ad65ee7bef4c8b326695 100644 (file)
@@ -49,8 +49,7 @@ def make_width_table() -> Iterable[Tuple[int, int, int]]:
 def main() -> None:
     table_path = join(dirname(__file__), "..", "src", "black", "_width_table.py")
     with open(table_path, "w") as f:
 def main() -> None:
     table_path = join(dirname(__file__), "..", "src", "black", "_width_table.py")
     with open(table_path, "w") as f:
-        f.write(
-            f"""# Generated by {basename(__file__)}
+        f.write(f"""# Generated by {basename(__file__)}
 # wcwidth {wcwidth.__version__}
 # Unicode {wcwidth.list_versions()[-1]}
 import sys
 # wcwidth {wcwidth.__version__}
 # Unicode {wcwidth.list_versions()[-1]}
 import sys
@@ -62,8 +61,7 @@ else:
     from typing import Final
 
 WIDTH_TABLE: Final[List[Tuple[int, int, int]]] = [
     from typing import Final
 
 WIDTH_TABLE: Final[List[Tuple[int, int, int]]] = [
-"""
-        )
+""")
         for triple in make_width_table():
             f.write(f"    {triple!r},\n")
         f.write("]\n")
         for triple in make_width_table():
             f.write(f"    {triple!r},\n")
         f.write("]\n")