From 539cdf5cb7eda970a0b84fd9e6414b61ac3528f4 Mon Sep 17 00:00:00 2001 From: Dan Sahagian <45240763+dansahagian@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:23:08 -0800 Subject: [PATCH] add some configuration for cursor --- .gitignore | 1 - .vscode/launch.json | 19 +++++++++++++++++++ .vscode/settings.json | 12 ++++++++++++ pyproject.toml | 3 +++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 3e0fe2b..ec5cef5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ __pycache__ .DS_Store .idea/ -.vscode/ .env prod.env diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..07184f6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Django", + "type": "debugpy", + "request": "launch", + "args": [ + "runserver" + ], + "django": true, + "autoStartBrowser": false, + "program": "${workspaceFolder}/manage.py", + }, + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..055ea0c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "python.analysis.typeCheckingMode": "basic", + "[python]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + "ruff.nativeServer": "on", + +} diff --git a/pyproject.toml b/pyproject.toml index 22977cc..facb965 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,6 @@ exclude = [ "venv", ".venv", ] + +[tool.ruff.lint] +select = ["C", "E", "F", "W"]