From 25cb2693346d57a6e75fd3af7d2d9735125ac8b2 Mon Sep 17 00:00:00 2001 From: Kronk Date: Sun, 25 Jun 2023 11:13:44 +0200 Subject: [PATCH] Added VSCode settings to README. Added .vscode to .gitignore. --- .gitignore | 3 +++ README.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/.gitignore b/.gitignore index 0916cb9..2b73a23 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ eslint_report.html # Demo sources demos/src_highres demos/src_lowres + +# Local dev environment settings +.vscode \ No newline at end of file diff --git a/README.md b/README.md index 16a3653..aa5757d 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,38 @@ To setup prospector, you need to run: + `prospector -s veryhigh -w mypy --max-line-length 88 .` + `black .` +For VSCode users, you can run those automatically in your IDE. Here is what your .vscode/settings.json file should include : + ```json + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/*.pyc": true, + "**/__pycache__": true + }, + // Replace by your own venv python path + "python.defaultInterpreterPath": "~\\.virtualenvs\\melpomene-ajDJjHHp\\Scripts\\python.exe", + "python.formatting.provider": "black", + "[python]": { + "editor.formatOnType": true, + }, + "python.linting.enabled": true, + "python.linting.prospectorEnabled": true, + "python.linting.prospectorArgs": [ + "-s", + "veryhigh", + "-w", + "mypy", + "--max-line-length", + "88" + ], + "editor.rulers": [ + 88 + ] + ``` # Credits Most examples and the documentation of Melpomene uses illustrations from David "Deevad" Revoy's "Pepper & Carrot" webcomic, which is published under CC-BY 4.0. Full licence [here](https://www.peppercarrot.com/en/license/index.html).