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.
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
93989e9)
`black .` is changing things in gallery and scripts for me
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 .
- 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.")
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
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")