From f588299ee8f323ee0fe62405a273a5fc42732412 Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Wed, 11 Jun 2025 11:51:06 +0200 Subject: [PATCH] Add VSCode settings and update Ruff configuration --- .vscode/settings.json | 15 +++++++++++++++ ruff.toml | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cdf6b66 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "editor.defaultFormatter": "charliermarsh.ruff", + "python.testing.pytestArgs": ["tests"], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true, + "editor.rulers": [88], + "[python]": { + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit" + }, + "editor.defaultFormatter": "charliermarsh.ruff" + } +} diff --git a/ruff.toml b/ruff.toml index 28fd02e..6519b7c 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,4 +1,4 @@ -line-length = 120 +line-length = 88 [format] docstring-code-format = true @@ -7,6 +7,8 @@ quote-style = "double" indent-style = "space" [lint] +select = ["ALL"] +ignore = ["TRY003", "COM812", "N818"] [lint.per-file-ignores] "**/scripts/*" = [