Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .editorconfig and a minimal VS Code configuration #78

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{md,py}]
charset = utf-8

[*.py]
indent_style = tab
trim_trailing_whitespace = true
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,17 @@ desktop.ini
/*.zip
test*
*.lnk
manifest.ini
manifest.ini

# Created by https://www.toptal.com/developers/gitignore/api/code
# Edit at https://www.toptal.com/developers/gitignore?templates=code

### Code ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# End of https://www.toptal.com/developers/gitignore/api/code
32 changes: 32 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"editor.accessibilitySupport": "on",
"pythonIndent.useTabOnHangingIndent": true,
"editor.tabCompletion": "on",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.exclude": {
"**/.git": true,
"**/env/**": true,
"**/venv/**": true,
"**/virtualenv/**": true,
"**/__pycache__": true,
"**/**/*.pyc": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/__pycache__": true,
"**/**/*.pyc": true
},
"python.formatting.provider": "autopep8",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.linting.pylintArgs": [
"-d W0312",
"--indent-string='\t'",
"--indent-after-paren=1",
"--additional-builtins=_", // _ is used for localization
"--extension-pkg-whitelist=wx",
"--init-hook='import sys; sys.path.append(\"%USERPROFILE%/src/nvaccess/nvda/source\")'"
]
}