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 | |
| 4 | [tool.ruff] |
| 5 | target-version = "py38" |
| 6 | line-length = 100 |
Peter Pentchev | 81fa766 | 2024-01-18 13:19:34 +0200 | [diff] [blame] | 7 | preview = true |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 8 | select = [] |
| 9 | ignore = [ |
| 10 | # We know what "self" is, we hope |
| 11 | "ANN101", |
| 12 | |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 13 | # This is our style |
| 14 | "D203", |
| 15 | "D213", |
| 16 | |
| 17 | # Much too restrictive |
| 18 | "EM", |
| 19 | |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 20 | # Much too restrictive |
| 21 | "TRY003", |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 22 | ] |
| 23 | |
Peter Pentchev | 81fa766 | 2024-01-18 13:19:34 +0200 | [diff] [blame] | 24 | [tool.ruff.flake8-copyright] |
| 25 | notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S" |
| 26 | |
Peter Pentchev | 2c01f8f | 2024-01-18 13:37:48 +0200 | [diff] [blame^] | 27 | [tool.ruff.isort] |
| 28 | force-single-line = true |
| 29 | known-first-party = ["gifn_apply"] |
| 30 | lines-after-imports = 2 |
| 31 | single-line-exclusions = ["typing"] |
| 32 | |
Peter Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 33 | [tool.ruff.per-file-ignores] |
| 34 | # This is a test suite |
| 35 | "*/unit_tests/*" = ["S101"] |