Skip to content

Commit

Permalink
Various updates to vscode environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Dec 9, 2021
1 parent 90513b8 commit 4dd8f14
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
"ms-python.python",
"sibiraj-s.vscode-scss-formatter",
"esbenp.prettier-vscode",
"batisteo.vscode-django"
],
"python.formatting.provider": "black",
"editor.formatOnSave": true
"batisteo.vscode-django",
"dbaeumer.vscode-eslint",
"ms-python.vscode-pylance",
"hookyqr.beautify",
"bradlc.vscode-tailwindcss",
"ms-azuretools.vscode-docker",
"csstools.postcss",
"knisterpeter.vscode-github"
]
}
5 changes: 5 additions & 0 deletions .jsbeautify
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"indent_size": 2,
"end_with_newline": true,
"wrap_attributes": "force-aligned"
}
39 changes: 38 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,48 @@
"**/templates/**/*.html": "django-html",
"**/templates/**/*": "django-txt"
},
"beautify.language": {
"html": ["htm", "html", "django-html"]
},
"python.formatting.provider": "black",
"python.pythonPath": "/usr/local/bin/python",
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django",
"--disable=C0111"
]
],
"python.testing.unittestEnabled": true,
"python.languageServer": "Pylance",
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.tabSize": 2
},
"[django-html]": {
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.formatOnSave": true,
"editor.defaultFormatter": "HookyQR.beautify"
},
"[html]": {
"editor.tabSize": 2,
"editor.quickSuggestions": {
"strings": true
}
},
"tailwindCSS.includeLanguages": {
"django-html": "html"
},
"python.testing.unittestArgs": [
"-v",
"-s",
"./{{ project_name }}",
"-p",
"test_*.py"
],
"python.testing.pytestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.analysis.typeCheckingMode": "basic"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is how I set up Django projects to get up and running as quick as possible.

To get started (replace `myapp` with the name of your app):

$ docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app django django-admin.py startproject --template https://github.com/bfirsh/django-docker-heroku-template/tarball/master --name .gitignore,.dockerignore,Dockerfile,README.md,app.json,package.json,script/clean myapp
$ docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app django django-admin.py startproject --template https://github.com/bfirsh/django-docker-heroku-template/tarball/master --name .gitignore,.dockerignore,Dockerfile,README.md,app.json,package.json,script/clean,.vscode/settings.json myapp
$ cd myapp
$ chmod +x ./manage.py script/*

Expand Down

0 comments on commit 4dd8f14

Please sign in to comment.