Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into format/hex-code-lit…
Browse files Browse the repository at this point in the history
…erals
  • Loading branch information
Shivansh-007 committed Mar 16, 2022
2 parents 69c9664 + 086ae68 commit 7d0e548
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1,115 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -31,8 +31,8 @@ repos:
files: '(CHANGES\.md|the_basics\.md)$'
additional_dependencies: *version_check_dependencies

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -41,7 +41,7 @@ repos:
- flake8-simplify

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
rev: v0.940
hooks:
- id: mypy
exclude: ^docs/conf.py
Expand All @@ -60,7 +60,7 @@ repos:
exclude: \.github/workflows/diff_shades\.yml

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -50,6 +50,8 @@

- On Python 3.11 and newer, use the standard library's `tomllib` instead of `tomli`
(#2903)
- `black-primer`, the deprecated internal devtool, has been removed and copied to a
[separate repository](https://github.com/cooperlees/black-primer) (#2924)

### Parser

Expand Down
6 changes: 0 additions & 6 deletions docs/contributing/gauging_changes.md
Expand Up @@ -7,12 +7,6 @@ It's recommended you evaluate the quantifiable changes your _Black_ formatting
modification causes before submitting a PR. Think about if the change seems disruptive
enough to cause frustration to projects that are already "black formatted".

## black-primer

`black-primer` is an obsolete tool (now replaced with `diff-shades`) that was used to
gauge the impact of changes in _Black_ on open-source code. It is no longer used
internally and will be removed from the _Black_ repository in the future.

## diff-shades

diff-shades is a tool that runs _Black_ across a list of Git cloneable OSS projects
Expand Down
8 changes: 0 additions & 8 deletions mypy.ini
Expand Up @@ -39,11 +39,3 @@ cache_dir=/dev/null
# The following is because of `patch_click()`. Remove when
# we drop Python 3.6 support.
warn_unused_ignores=False

[mypy-black_primer.*]
# Until we're not supporting 3.6 primer needs this
disallow_any_generics=False

[mypy-tests.test_primer]
# Until we're not supporting 3.6 primer needs this
disallow_any_generics=False
4 changes: 1 addition & 3 deletions setup.py
Expand Up @@ -58,7 +58,7 @@ def find_python_files(base: Path) -> List[Path]:
"black/__main__.py",
]
discovered = []
# black-primer and blackd have no good reason to be compiled.
# There's no good reason for blackd to be compiled.
discovered.extend(find_python_files(src / "black"))
discovered.extend(find_python_files(src / "blib2to3"))
mypyc_targets = [
Expand Down Expand Up @@ -92,7 +92,6 @@ def find_python_files(base: Path) -> List[Path]:
package_data={
"blib2to3": ["*.txt"],
"black": ["py.typed"],
"black_primer": ["primer.json"],
},
python_requires=">=3.6.2",
zip_safe=False,
Expand Down Expand Up @@ -132,7 +131,6 @@ def find_python_files(base: Path) -> List[Path]:
"console_scripts": [
"black=black:patched_main",
"blackd=blackd:patched_main [d]",
"black-primer=black_primer.cli:main",
]
},
)
1 change: 0 additions & 1 deletion src/black/mode.py
Expand Up @@ -127,7 +127,6 @@ class Preview(Enum):
"""Individual preview style features."""

string_processing = auto()
hug_simple_powers = auto()
hex_codes_in_unicode_sequences = auto()


Expand Down
Empty file removed src/black_primer/__init__.py
Empty file.
195 changes: 0 additions & 195 deletions src/black_primer/cli.py

This file was deleted.

0 comments on commit 7d0e548

Please sign in to comment.