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 | |
| 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 Pentchev | b91fc93 | 2023-01-19 15:27:13 +0200 | [diff] [blame] | 28 | ] |
| 29 | |
Peter Pentchev | 81fa766 | 2024-01-18 13:19:34 +0200 | [diff] [blame^] | 30 | [tool.ruff.flake8-copyright] |
| 31 | notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S" |
| 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"] |