blob: 8e8d3e7af0457c72f1e5d77cbc44fc398ff5f229 [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 Pentchevf66083d2024-02-20 10:08:54 +020020 # The /x regex modifier is in common use across many languages
21 "FURB167",
22
Peter Pentchevb91fc932023-01-19 15:27:13 +020023 # Much too restrictive
24 "TRY003",
Peter Pentchevb91fc932023-01-19 15:27:13 +020025]
26
Peter Pentchev81fa7662024-01-18 13:19:34 +020027[tool.ruff.flake8-copyright]
28notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
29
Peter Pentchev2c01f8f2024-01-18 13:37:48 +020030[tool.ruff.isort]
31force-single-line = true
32known-first-party = ["gifn_apply"]
33lines-after-imports = 2
34single-line-exclusions = ["typing"]
35
Peter Pentchevb91fc932023-01-19 15:27:13 +020036[tool.ruff.per-file-ignores]
37# This is a test suite
Peter Pentchev096b8432024-01-18 13:53:09 +020038"tests/unit/*" = ["S101"]