Loading .gitignore +0 −1 Changes for .gitignore: 0 added lines, 1 removed line. Original line number Diff line number Diff line .venv .coverage _build .DS_Store Loading src/black/__init__.py +2 −7 Changes for src/black/__init__.py: 2 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -5351,15 +5351,10 @@ def normalize_numeric_literal(leaf: Leaf) -> None: def format_hex(text: str) -> str: """ Formats a hexadecimal string like "0x12b3" Uses lowercase because of similarity between "B" and "8", which can cause security issues. see: https://github.com/psf/black/issues/1692 Formats a hexadecimal string like "0x12B3" """ before, after = text[:2], text[2:] return f"{before}{after.lower()}" return f"{before}{after.upper()}" def format_scientific_notation(text: str) -> str: Loading src/black_primer/primer.json +5 −5 Changes for src/black_primer/primer.json: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ }, "attrs": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/python-attrs/attrs.git", "long_checkout": false, "py_versions": ["all"] Loading Loading @@ -47,7 +47,7 @@ }, "hypothesis": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/HypothesisWorks/hypothesis.git", "long_checkout": false, "py_versions": ["all"] Loading @@ -63,7 +63,7 @@ }, "pillow": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/python-pillow/Pillow.git", "long_checkout": false, "py_versions": ["all"] Loading @@ -77,7 +77,7 @@ }, "pyramid": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/Pylons/pyramid.git", "long_checkout": false, "py_versions": ["all"] Loading Loading @@ -112,7 +112,7 @@ }, "virtualenv": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/pypa/virtualenv.git", "long_checkout": false, "py_versions": ["all"] Loading src/blib2to3/pytree.py +1 −1 Changes for src/blib2to3/pytree.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ import sys from io import StringIO HUGE: int = 0x7fffffff # maximum repeat count, default max HUGE: int = 0x7FFFFFFF # maximum repeat count, default max _type_reprs: Dict[int, Union[Text, int]] = {} Loading tests/data/numeric_literals.py +2 −2 Changes for tests/data/numeric_literals.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ x = 123456789E123456789 x = 123456789J x = 123456789.123456789J x = 0Xb1aCc x = 0XB1ACC x = 0B1011 x = 0O777 x = 0.000000006 Loading @@ -36,7 +36,7 @@ x = 123456789e123456789 x = 123456789j x = 123456789.123456789j x = 0xb1acc x = 0xB1ACC x = 0b1011 x = 0o777 x = 0.000000006 Loading Loading
.gitignore +0 −1 Changes for .gitignore: 0 added lines, 1 removed line. Original line number Diff line number Diff line .venv .coverage _build .DS_Store Loading
src/black/__init__.py +2 −7 Changes for src/black/__init__.py: 2 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -5351,15 +5351,10 @@ def normalize_numeric_literal(leaf: Leaf) -> None: def format_hex(text: str) -> str: """ Formats a hexadecimal string like "0x12b3" Uses lowercase because of similarity between "B" and "8", which can cause security issues. see: https://github.com/psf/black/issues/1692 Formats a hexadecimal string like "0x12B3" """ before, after = text[:2], text[2:] return f"{before}{after.lower()}" return f"{before}{after.upper()}" def format_scientific_notation(text: str) -> str: Loading
src/black_primer/primer.json +5 −5 Changes for src/black_primer/primer.json: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ }, "attrs": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/python-attrs/attrs.git", "long_checkout": false, "py_versions": ["all"] Loading Loading @@ -47,7 +47,7 @@ }, "hypothesis": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/HypothesisWorks/hypothesis.git", "long_checkout": false, "py_versions": ["all"] Loading @@ -63,7 +63,7 @@ }, "pillow": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/python-pillow/Pillow.git", "long_checkout": false, "py_versions": ["all"] Loading @@ -77,7 +77,7 @@ }, "pyramid": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/Pylons/pyramid.git", "long_checkout": false, "py_versions": ["all"] Loading Loading @@ -112,7 +112,7 @@ }, "virtualenv": { "cli_arguments": [], "expect_formatting_changes": true, "expect_formatting_changes": false, "git_clone_url": "https://github.com/pypa/virtualenv.git", "long_checkout": false, "py_versions": ["all"] Loading
src/blib2to3/pytree.py +1 −1 Changes for src/blib2to3/pytree.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ import sys from io import StringIO HUGE: int = 0x7fffffff # maximum repeat count, default max HUGE: int = 0x7FFFFFFF # maximum repeat count, default max _type_reprs: Dict[int, Union[Text, int]] = {} Loading
tests/data/numeric_literals.py +2 −2 Changes for tests/data/numeric_literals.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ x = 123456789E123456789 x = 123456789J x = 123456789.123456789J x = 0Xb1aCc x = 0XB1ACC x = 0B1011 x = 0O777 x = 0.000000006 Loading @@ -36,7 +36,7 @@ x = 123456789e123456789 x = 123456789j x = 123456789.123456789j x = 0xb1acc x = 0xB1ACC x = 0b1011 x = 0o777 x = 0.000000006 Loading