From b6de0947b61e46e882a6b981cf26c6afc7c85feb Mon Sep 17 00:00:00 2001 From: Sir Mergealot <51328680+mergealot@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:08:35 +0200 Subject: [PATCH] chore(lint): ruff config [pulumi] --- ruff.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..74c19d6 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,26 @@ +# https://docs.astral.sh/ruff/configuration/ +exclude = ["manage.py"] +force-exclude = true +line-length = 120 +target-version = "py312" + +# Full list of available rules can be found on https://docs.astral.sh/ruff/rules/ +select = [ + "COM", # flake8-commas + "DJ001", # flake8-django: Avoid using null=True on string-based fields such as + "DJ012", # flake8-django: Order of model's inner classes, methods, and fields + "DTZ", # flake8-datetimez + "E", # Error + "F", # Pyflakes + "I", # isort + "PTH", # flake8-use-pathlib + "RSE", # flake8-raise + "Q", # flake8-quotes + "UP009", # pyupgrade: UTF-8 encoding declaration is unnecessary + "W" # Warning +] +ignore = [] + +# Allow autofix for all enabled rules (when `--fix`) is provided. +fixable = ["ALL"] +unfixable = []