Configuring Formatting#
black#
Your black configuration should look similar to this:
[tool.black]
line-length = 88
verbose = false
include = "\\.pyi?$"
For further configuration options, see black configuration.
isort#
Ensure isort is configured with compatibility for black:
[tool.isort]
profile = "black"
force_grid_wrap = 2
For further configuration options, see isort options.
pyupgrade#
No initial configuration of pyupgrade is required. By default, this is
configured to be derived from the minimum Python version that your project supports
and is defined in the exasol.toolbox.config.BaseConfig.pyupgrade_argument().
For further configuration options, see the pyupgrade documentation.
ruff#
Ensure ruff is configured like so:
[tool.ruff.lint]
extend-ignore = [
"E", # Syntax errors
"F", # Pyflakes rules (excluding F401)
"UP", # pyupgrade rules
"D", # Docstring rules
]
extend-select = ["F401"]
unfixable = []
For further configuration options, see ruff options.