Skip to content

Commit

Permalink
more settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfire1900 committed Mar 23, 2024
1 parent a2b0b38 commit ca52ee3
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,15 @@ xontrib/__init__.py
# Copier
.copier-answers.yml

.vscode/*
!.vscode/settings.default.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
12 changes: 12 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"recommendations": [
"charliermarsh.ruff",
"dangmai.workspace-default-settings",
"donjayamanne.python-extension-pack",
"esbenp.prettier-vscode",
"ms-python.isort",
"ms-python.pylint",
"tamasfe.even-better-toml",
"eeyore.yapf",
]
}
43 changes: 43 additions & 0 deletions .vscode/settings.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.associations": {
"**/settings.default.json": "jsonc"
},
"json.schemas": [
{
"fileMatch": [
"/.vscode/settings.default.json"
],
"url": "vscode://schemas/settings/folder"
}
],
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.formatOnSaveMode": "modifications",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"python.formatting.provider": "yapf",
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.diagnosticMode": "workspace",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.flake8Enabled": false,
"python.linting.pydocstyleEnabled": false,
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"python.testing.pytestArgs": [
"src"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"ruff.fixAll": false,
"ruff.organizeImports": false,
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"workspace-default-settings.jsonIndentation": 4,
"workspace-default-settings.runOnActivation": true,
}
4 changes: 4 additions & 0 deletions xontrib_pygitstatus/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ def _load_xontrib_(xsh: XonshSession, **_):

from .event_hooks import listen_cd
xsh.builtins.events.on_chdir(listen_cd)

def _unload_xontrib_(xsh: XonshSession, **kwargs) -> dict:
"""If you want your extension to be unloadable, put that logic here"""
raise NotImplementedError('unload of pygitstatusnot implemented')

0 comments on commit ca52ee3

Please sign in to comment.