summaryrefslogtreecommitdiff
path: root/.ruff.toml
diff options
context:
space:
mode:
authorSimeon Simeonov2026-04-16 17:14:23 +0200
committerSimeon Simeonov2026-04-16 17:14:23 +0200
commit3e4185913b584f5cc9a54f16f3c223861e11ec18 (patch)
tree33877fd0f3e34e13d911d98641227eb5d03fbb9d /.ruff.toml
parentbba82a86b137c73832ad7b6a397d3db24fcc625f (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.toml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.ruff.toml b/.ruff.toml
index add2491..769f83c 100644
--- a/.ruff.toml
+++ b/.ruff.toml
@@ -1,11 +1,11 @@
1cache-dir = "~/.cache/ruff" 1cache-dir = "~/.cache/ruff"
2indent-width = 4 2indent-width = 4
3line-length = 79 3line-length = 79
4target-version = "py312" 4target-version = "py310"
5 5
6[lint] 6[lint]
7select = ["ALL"] 7select = ["ALL"]
8ignore = ["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"] 8ignore = ["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
42fixable = ["ALL"] 42fixable = ["ALL"]
43unfixable = [] 43unfixable = []
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.
47quote-style = "single" 51quote-style = "single"