Skip to content

Commit ce31fc9

Browse files
authored
chore: Remove unused [tool.black] and [tool.pycln] config (apache#2891)
# Rationale for this change This PR removes [tool.black] from pyproject.toml. This is an unused config since formatting now lives in [ruff.toml](https://github.com/apache/iceberg-python/blob/main/ruff.toml). Also, updates contributing.md to reference ruff instead of black. This PR removes dead config from pyproject.toml: - [tool.black] - replaced by ruff-format apache#127 - [tool.pycln] - replaced by ruff apache#1485 Also updates contributing.md to reference ruff instead of black. ## Are these changes tested? Yes ## Are there any user-facing changes? No
1 parent 3855f64 commit ce31fc9

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

mkdocs/docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ make lint
118118

119119
In addition to manually running `make lint`, you can install the pre-commit hooks in your local repo with `prek install`. By doing this, linting is run automatically every time you make a commit.
120120

121-
You can bump the integrations to the latest version using `prek auto-update`. This will check if there is a newer version of `{black,mypy,isort,...}` and update the yaml.
121+
You can bump the integrations to the latest version using `prek auto-update`. This will check if there is a newer version of `{ruff,mypy,...}` and update the yaml.
122122

123123
## Cleaning
124124

pyproject.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ filterwarnings = [
168168
"ignore:subprocess.*is still running:ResourceWarning",
169169
]
170170

171-
[tool.black]
172-
line-length = 130
173-
target-version = ['py38']
174-
175-
[tool.pycln]
176-
all = true
177-
178171
[tool.mypy]
179172
mypy_path = "python"
180173
no_implicit_optional = true

0 commit comments

Comments
 (0)