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/*" = [