blob: 3a363c0b208b6d1454e632620c9af4a57dfc3759 [file] [log] [blame]
# SPDX-FileCopyrightText: StorPool <support@storpool.com>
# SPDX-License-Identifier: BSD-2-Clause
[tool.ruff]
target-version = "py38"
line-length = 100
preview = true
[tool.ruff.lint]
select = []
ignore = [
# This is our style
"D203",
"D213",
# Much too restrictive
"EM",
# The /x regex modifier is in common use across many languages
"FURB167",
# Much too restrictive
"TRY003",
]
[tool.ruff.lint.flake8-copyright]
notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["gifn_apply"]
lines-after-imports = 2
single-line-exclusions = ["typing"]
[tool.ruff.lint.per-file-ignores]
# This is a test suite
"tests/unit/*" = ["S101"]