From 2ecdbe89db5d9cd74c9f19b969885cf7d72d0dcb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 28 Apr 2024 12:47:07 -0300 Subject: ruff: initial commit Most of this config is stolen from Gio! --- ruff.toml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ruff.toml (limited to 'ruff.toml') diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..3284303 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,33 @@ +[lint] +select = [ + "F", # pyflakes + "E", # pycodestyle errors + "E1", # Matching indent + "E225", # Whitespace around operator + "W", # pycodestyle warnings + "C", # complexity + "N", # naming + "YTT", # flake8 + "ASYNC", + "S", # flake8 bandit + "BLE", # blind except + "FBT", # boolean trap + "A", # builtins + "COM", # commas + "C4", # comprehensions + "EM", # errormsg + "G010", # warn/warning + "PIE", + "RSE", + "RET", + "TD", # TODO + "FIX", # FIXME + # "ERA", # eradicate commented code + "B", # bugbears + "ARG", + "RUF" +] + +ignore = [ + "S101" +] -- cgit 1.3.0-6-gf8a5