blob: b9bd0ec754c75303cfba2edb4724309aee5f7abc [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 Pentchevb91fc932023-01-19 15:27:13 +02008select = []
9ignore = [
10 # We know what "self" is, we hope
11 "ANN101",
12
Peter Pentchevb91fc932023-01-19 15:27:13 +020013 # This is our style
14 "D203",
15 "D213",
16
17 # Much too restrictive
18 "EM",
19
Peter Pentchevb91fc932023-01-19 15:27:13 +020020 # Much too restrictive
21 "TRY003",
Peter Pentchevb91fc932023-01-19 15:27:13 +020022]
23
Peter Pentchev81fa7662024-01-18 13:19:34 +020024[tool.ruff.flake8-copyright]
25notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
26
Peter Pentchev2c01f8f2024-01-18 13:37:48 +020027[tool.ruff.isort]
28force-single-line = true
29known-first-party = ["gifn_apply"]
30lines-after-imports = 2
31single-line-exclusions = ["typing"]
32
Peter Pentchevb91fc932023-01-19 15:27:13 +020033[tool.ruff.per-file-ignores]
34# This is a test suite
Peter Pentchev096b8432024-01-18 13:53:09 +020035"tests/unit/*" = ["S101"]