This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 6172f5c720 Python: Add more Ruff rules (#8652)
6172f5c720 is described below
commit 6172f5c7207899a0983b28a09026644d568595ab
Author: Fokko Driesprong <[email protected]>
AuthorDate: Fri Sep 29 00:48:28 2023 +0200
Python: Add more Ruff rules (#8652)
---
python/pyproject.toml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/python/pyproject.toml b/python/pyproject.toml
index fe295371a2..5090e29cbb 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -293,10 +293,15 @@ source = ['pyiceberg/']
[tool.ruff]
src = ['pyiceberg','tests']
extend-exclude = ["dev/provision.py"]
-# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
-# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
-# McCabe complexity (`C901`) by default.
-select = ["E", "F", "W", "I", "UP"]
+select = [
+ "E", # pycodestyle
+ "W", # pycodestyle
+ "F", # Pyflakes
+ "B", # flake8-bugbear
+ "C4", # flake8-comprehensions
+ "I", # isort
+ "UP", # pyupgrade
+]
ignore = ["E501","E203","B024","B028"]
# Allow autofix for all enabled rules (when `--fix`) is provided.