blob: e7d7d066a1f35cdc11dcb2b6caa5fd9ca462b040 [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
Peter Pentchevb91fc932023-01-19 15:27:13 +02004target-version = "py38"
5line-length = 100
Peter Pentchev81fa7662024-01-18 13:19:34 +02006preview = true
Peter Pentchev48168662024-02-20 10:11:07 +02007
Peter Pentchev01ad6a32024-02-20 10:16:00 +02008[lint]
Peter Pentchevb91fc932023-01-19 15:27:13 +02009select = []
10ignore = [
Peter Pentchevb91fc932023-01-19 15:27:13 +020011 # This is our style
12 "D203",
13 "D213",
14
15 # Much too restrictive
16 "EM",
17
Peter Pentchevf66083d2024-02-20 10:08:54 +020018 # The /x regex modifier is in common use across many languages
19 "FURB167",
20
Peter Pentchevb91fc932023-01-19 15:27:13 +020021 # Much too restrictive
22 "TRY003",
Peter Pentchevb91fc932023-01-19 15:27:13 +020023]
24
Peter Pentchev01ad6a32024-02-20 10:16:00 +020025[lint.flake8-copyright]
Peter Pentchev81fa7662024-01-18 13:19:34 +020026notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S"
27
Peter Pentchev01ad6a32024-02-20 10:16:00 +020028[lint.isort]
Peter Pentchev2c01f8f2024-01-18 13:37:48 +020029force-single-line = true
30known-first-party = ["gifn_apply"]
31lines-after-imports = 2
32single-line-exclusions = ["typing"]
33
Peter Pentchev01ad6a32024-02-20 10:16:00 +020034[lint.per-file-ignores]
Peter Pentchevb91fc932023-01-19 15:27:13 +020035# This is a test suite
Peter Pentchev096b8432024-01-18 13:53:09 +020036"tests/unit/*" = ["S101"]