diff options
| author | Simeon Simeonov | 2026-04-16 17:14:23 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2026-04-16 17:14:23 +0200 |
| commit | 3e4185913b584f5cc9a54f16f3c223861e11ec18 (patch) | |
| tree | 33877fd0f3e34e13d911d98641227eb5d03fbb9d /.ruff.toml | |
| parent | bba82a86b137c73832ad7b6a397d3db24fcc625f (diff) | |
Introduce a new marco - %e and migrate the project from GitHub to Codeberg2.2.0
Diffstat (limited to '.ruff.toml')
| -rw-r--r-- | .ruff.toml | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,11 +1,11 @@ | |||
| 1 | cache-dir = "~/.cache/ruff" | 1 | cache-dir = "~/.cache/ruff" |
| 2 | indent-width = 4 | 2 | indent-width = 4 |
| 3 | line-length = 79 | 3 | line-length = 79 |
| 4 | target-version = "py312" | 4 | target-version = "py310" |
| 5 | 5 | ||
| 6 | [lint] | 6 | [lint] |
| 7 | select = ["ALL"] | 7 | select = ["ALL"] |
| 8 | ignore = ["ANN", "COM812", "D105", "D202", "D203", "D205", "D211", "D212", "D400", "D401", "D403", "D415", "ERA001", "FBT001", "FBT002", "PTH111", "RUF012", "RUF013", "S101", "TRY300", "BLE001", "UP020", "C901", "D200", "D402", "EM101", "EM102", "FBT003", "INP001", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLW2901", "S603", "T201", "TRY003", "TRY400"] | 8 | ignore = ["COM812", "D105", "D202", "D203", "D205", "D211", "D212", "D400", "D401", "D403", "D415", "ERA001", "FBT001", "FBT002", "PTH111", "RUF012", "RUF013", "S101", "TRY300", "BLE001", "UP020", "C901", "D200", "D402", "EM101", "EM102", "FBT003", "INP001", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLW2901", "S603", "T201", "TRY003", "TRY400"] |
| 9 | # D105 - Missing docstring in magic method | 9 | # D105 - Missing docstring in magic method |
| 10 | # D200 - One-line docstring should fit on one line | 10 | # D200 - One-line docstring should fit on one line |
| 11 | # D203 - 1 blank line required before class docstring | 11 | # D203 - 1 blank line required before class docstring |
| @@ -42,6 +42,10 @@ ignore = ["ANN", "COM812", "D105", "D202", "D203", "D205", "D211", "D212", "D400 | |||
| 42 | fixable = ["ALL"] | 42 | fixable = ["ALL"] |
| 43 | unfixable = [] | 43 | unfixable = [] |
| 44 | 44 | ||
| 45 | [lint.per-file-ignores] | ||
| 46 | "tests/*.py" = ["ANN"] # Do not require annotations for tests | ||
| 47 | |||
| 48 | |||
| 45 | [format] | 49 | [format] |
| 46 | # Like Black, use double quotes for strings. | 50 | # Like Black, use double quotes for strings. |
| 47 | quote-style = "single" | 51 | quote-style = "single" |
