blob: 3a363c0b208b6d1454e632620c9af4a57dfc3759 [file] [log] [blame]
Peter Pentchevb91fc932023-01-19 15:27:13 +02001# SPDX-FileCopyrightText: StorPool <support@storpool.com>
2# SPDX-License-Identifier: BSD-2-Clause
3
4[tool.ruff]
5target-version = "py38"
6line-length = 100
Peter Pentchev81fa7662024-01-18 13:19:34 +02007preview = true
Peter Pentchev48168662024-02-20 10:11:07 +02008
9[tool.ruff.lint]
Peter Pentchevb91fc932023-01-19 15:27:13 +020010select = []
11ignore = [
Peter Pentchevb91fc932023-01-19 15:27:13 +020012 # This is our style
13 "D203",
14 "D213",
15
16 # Much too restrictive
17 "EM",
18
Peter Pentchevf66083d2024-02-20 10:08:54 +020019 # The /x regex modifier is in common use across many languages
20 "FURB167",
21
Peter Pentchevb91fc932023-01-19 15:27:13 +020022 # Much too restrictive
23 "TRY003",
Peter Pentchevb91fc932023-01-19 15:27:13 +020024]
25
Peter Pentchev48168662024-02-20 10:11:07 +020026[tool.ruff.lint.flake8-copyright]
Peter Pentchev81fa7662024-01-18 13:19:34 +020027notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
28
Peter Pentchev48168662024-02-20 10:11:07 +020029[tool.ruff.lint.isort]
Peter Pentchev2c01f8f2024-01-18 13:37:48 +020030force-single-line = true
31known-first-party = ["gifn_apply"]
32lines-after-imports = 2
33single-line-exclusions = ["typing"]
34
Peter Pentchev48168662024-02-20 10:11:07 +020035[tool.ruff.lint.per-file-ignores]
Peter Pentchevb91fc932023-01-19 15:27:13 +020036# This is a test suite
Peter Pentchev096b8432024-01-18 13:53:09 +020037"tests/unit/*" = ["S101"]