From 3e4185913b584f5cc9a54f16f3c223861e11ec18 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 16 Apr 2026 17:14:23 +0200 Subject: Introduce a new marco - %e and migrate the project from GitHub to Codeberg --- .ruff.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.ruff.toml') diff --git a/.ruff.toml b/.ruff.toml index add2491..769f83c 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -1,11 +1,11 @@ cache-dir = "~/.cache/ruff" indent-width = 4 line-length = 79 -target-version = "py312" +target-version = "py310" [lint] select = ["ALL"] -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"] +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"] # D105 - Missing docstring in magic method # D200 - One-line docstring should fit on one line # D203 - 1 blank line required before class docstring @@ -42,6 +42,10 @@ ignore = ["ANN", "COM812", "D105", "D202", "D203", "D205", "D211", "D212", "D400 fixable = ["ALL"] unfixable = [] +[lint.per-file-ignores] +"tests/*.py" = ["ANN"] # Do not require annotations for tests + + [format] # Like Black, use double quotes for strings. quote-style = "single" -- cgit v1.3