Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: StorPool <support@storpool.com> |
| 2 | # SPDX-License-Identifier: BSD-2-Clause |
| 3 | |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 4 | target-version = "py38" |
| 5 | line-length = 100 |
Peter Pentchev | 81fa766 | 2024-01-18 13:19:34 +0200 | [diff] [blame] | 6 | preview = true |
Peter Pentchev | 4816866 | 2024-02-20 10:11:07 +0200 | [diff] [blame] | 7 | |
Peter Pentchev | 01ad6a3 | 2024-02-20 10:16:00 +0200 | [diff] [blame] | 8 | [lint] |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 9 | select = [] |
| 10 | ignore = [ |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 11 | # This is our style |
| 12 | "D203", |
| 13 | "D213", |
| 14 | |
| 15 | # Much too restrictive |
| 16 | "EM", |
| 17 | |
Peter Pentchev | f66083d | 2024-02-20 10:08:54 +0200 | [diff] [blame] | 18 | # The /x regex modifier is in common use across many languages |
| 19 | "FURB167", |
| 20 | |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 21 | # Much too restrictive |
| 22 | "TRY003", |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 23 | ] |
| 24 | |
Peter Pentchev | 01ad6a3 | 2024-02-20 10:16:00 +0200 | [diff] [blame] | 25 | [lint.flake8-copyright] |
Peter Pentchev | 81fa766 | 2024-01-18 13:19:34 +0200 | [diff] [blame] | 26 | notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S" |
| 27 | |
Peter Pentchev | 01ad6a3 | 2024-02-20 10:16:00 +0200 | [diff] [blame] | 28 | [lint.isort] |
Peter Pentchev | 2c01f8f | 2024-01-18 13:37:48 +0200 | [diff] [blame] | 29 | force-single-line = true |
| 30 | known-first-party = ["gifn_apply"] |
| 31 | lines-after-imports = 2 |
| 32 | single-line-exclusions = ["typing"] |
| 33 | |
Peter Pentchev | 01ad6a3 | 2024-02-20 10:16:00 +0200 | [diff] [blame] | 34 | [lint.per-file-ignores] |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 35 | # This is a test suite |
Peter Pentchev | 096b843 | 2024-01-18 13:53:09 +0200 | [diff] [blame] | 36 | "tests/unit/*" = ["S101"] |