Skip to content

Commit

Permalink
ci: Deprecate Black completely
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Dec 8, 2023
1 parent 5a56ded commit 62d0d9e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 218 deletions.
6 changes: 0 additions & 6 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pants_version = "2.17.0"
pythonpath = ["%(buildroot)s/tools/pants-plugins"]
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.typecheck.mypy",
"pants.backend.shell",
"pants.backend.experimental.python",
Expand Down Expand Up @@ -68,7 +67,6 @@ indexes = ["https://dist.backend.ai/pypi/simple/", "https://pypi.org/simple/"]
python-default = "python.lock"
python-kernel = "python-kernel.lock"
pants-plugins = "tools/pants-plugins.lock"
black = "tools/black.lock"
ruff = "tools/ruff.lock"
pytest = "tools/pytest.lock"
coverage-py = "tools/coverage-py.lock"
Expand All @@ -89,10 +87,6 @@ known_versions = [
# When trying a new pex version, you could find out the hash and size-in-bytes as follows:
# $ curl -s -L https://github.com/pantsbuild/pex/releases/download/v2.1.99/pex | tee >(wc -c) >(shasum -a 256) >/dev/null

[black]
install_from_resolve = "black"
interpreter_constraints = ["CPython==3.11.6"] # don't know why this is required... (maybe a Pants bug?)

[ruff]
install_from_resolve = "ruff"

Expand Down
5 changes: 0 additions & 5 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ python_requirements(
source="ruff-requirements.txt",
resolve="ruff",
)
python_requirements(
name="reqs-black",
source="black-requirements.txt",
resolve="black",
)
python_requirements(
name="reqs-mypy",
source="mypy-requirements.txt",
Expand Down
1 change: 0 additions & 1 deletion tools/black-requirements.txt

This file was deleted.

206 changes: 0 additions & 206 deletions tools/black.lock

This file was deleted.

0 comments on commit 62d0d9e

Please sign in to comment.