From 36998114fa17d481940bce277485b5fc8b6bd43a Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 21 Sep 2024 13:32:38 +0200 Subject: Add ruff.toml with lint settings This should be a reasonable selection of linters. Also make sure that ruff picks up 'later' by default, since it is missing the .py suffix. --- ruff.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..2a53694 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,14 @@ +include = ["later"] + +[lint] +# https://docs.astral.sh/ruff/rules/ +select = [ + "F", # pyflakes + "E", # pycodestyle + "W", # pycodestyle + "I", # isort + "UP", # pyupgrade + "B", # flake8-bugbear + "SIM", # flake8-simplify + "FURB" # refurb +] -- cgit v1.2.3-2-gb3c3