From 511a8026dd62d25b958087fe5761e11c899314cc Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 27 Nov 2024 11:29:34 -0500 Subject: [PATCH] Update vscode settings --- .gitignore | 1 - .pre-commit-config.yaml | 3 +++ .vscode/extensions.json | 5 +++++ .vscode/settings.json | 8 ++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 10a41f7..adc7c03 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ __pycache__ .coverage .tox -.vscode build dist _version.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da65df1..aa217e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,9 @@ repos: - id: trailing-whitespace # Trims trailing whitespace. exclude_types: [python] # Covered by Ruff W291. + - id: pretty-format-json + args: ['--autofix'] + # Checks that all your JSON files are pretty. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.8.0 diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..3ff560f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "charliermarsh.ruff" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..61250de --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "editor.defaultFormatter": "charliermarsh.ruff", + "python.testing.pytestArgs": [ + "." + ], + "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false +}