ironic/pyproject.toml
Doug Goldstein 231d7f47e5
enable ruff in pre-commit with some initial lints
Used pycodestyle, pyflakes, flake8-logging-format, and flake8-logging to
bring ruff to the ironic tree.

Change-Id: I4e355b0d2cf065f8844794b14474c34b65e7562b
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2024-12-16 09:07:39 -06:00

26 lines
525 B
TOML

[build-system]
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
build-backend = "pbr.build"
[tool.doc8]
ignore = ["D001"]
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
"E", # pycodestyle (error)
"F", # pyflakes
"G", # flake8-logging-format
"LOG", # flake8-logging
]
[tool.ruff.lint.per-file-ignores]
"ironic/tests/**/*.py" = [
"E402", # module-import-not-at-top-of-file
]
"ironic/drivers/modules/drac/raid.py" = [
"G003", # Logging statement uses `+`
]