-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add VS Code integration * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * prettierrc * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit f20660d. * Fix prettierrc * conditional * fmt * jinja and whitespace … * choice --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3f3bd13
commit bc81e1b
Showing
10 changed files
with
120 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
overrides: | ||
# JSON with comments and trailing commas | ||
- files: "**/*.vscode*/*.json" | ||
options: | ||
parser: json5 | ||
quoteProps: preserve | ||
singleQuote: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...kiecutter.project_name}}/{% if cookiecutter.ide_integration %}.prettierrc.yaml{% endif %}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
overrides: | ||
# JSON with comments and trailing commas | ||
- files: .vscode/*.json | ||
options: | ||
parser: json5 | ||
quoteProps: preserve | ||
singleQuote: false |
18 changes: 18 additions & 0 deletions
18
...ct_name}}/{{".vscode" if cookiecutter.ide_integration else "DELETE-ME" }}/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"recommendations": [ | ||
// GitHub integration | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
// Language support | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-toolsai.jupyter", | ||
"tamasfe.even-better-toml", | ||
// Dependency management | ||
"ninoseki.vscode-mogami", | ||
// Linting and formatting | ||
"editorconfig.editorconfig", | ||
"charliermarsh.ruff", | ||
"esbenp.prettier-vscode", | ||
], | ||
} |
33 changes: 33 additions & 0 deletions
33
...roject_name}}/{{".vscode" if cookiecutter.ide_integration else "DELETE-ME" }}/launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
// 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: Build Documentation", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "sphinx", | ||
"args": ["-M", "html", ".", "_build"], | ||
"cwd": "${workspaceFolder}/docs", | ||
"console": "internalConsole", | ||
"justMyCode": false, | ||
}, | ||
{ | ||
"name": "Python: Debug Test", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"purpose": ["debug-test"], | ||
"console": "internalConsole", | ||
"justMyCode": false, | ||
"env": { | ||
"PYTEST_ADDOPTS": "--color=yes", | ||
}, | ||
"presentation": { | ||
"hidden": true, | ||
}, | ||
}, | ||
], | ||
} |
18 changes: 18 additions & 0 deletions
18
...ject_name}}/{{".vscode" if cookiecutter.ide_integration else "DELETE-ME" }}/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"[python][jsonc][yaml]": { | ||
"editor.formatOnSave": true, | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "always", | ||
"source.organizeImports": "always", | ||
}, | ||
}, | ||
"[jsonc][yaml]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
}, | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.pytestArgs": ["-vv", "--color=yes"], | ||
} |