Skip to content

Commit

Permalink
Python: Add more Ruff rules (apache#8652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Sep 28, 2023
1 parent 28dd49f commit 6172f5c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6172f5c

Please sign in to comment.