blob: b46b7920df2848265b2727e97408f326dd2abc6a [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
13 # We leave most of the formatting to the 'black' tool
14 "COM812",
15
16 # This is our style
17 "D203",
18 "D213",
19
20 # Much too restrictive
21 "EM",
22
23 # We have slightly different ideas about the `typing` imports
24 "I",
25
26 # Much too restrictive
27 "TRY003",
Peter Pentchevb91fc932023-01-19 15:27:13 +020028]
29
Peter Pentchev81fa7662024-01-18 13:19:34 +020030[tool.ruff.flake8-copyright]
31notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
32
Peter Pentchevb91fc932023-01-19 15:27:13 +020033[tool.ruff.per-file-ignores]
34# This is a test suite
35"*/unit_tests/*" = ["S101"]