Skip to content

Commit

Permalink
VSCode: ensure that text files are properly terminated per POSIX stan…
Browse files Browse the repository at this point in the history
…dard.

Text files should always end with a newline, so that all lines are complete
and simplistic tools do not skip the last line.
VSCode seems to apply this by default to py, but not to json files.
  • Loading branch information
make-all committed Oct 30, 2023
1 parent 4c872f2 commit 72dca99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"editor.formatOnType": true,
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"black-formatter.importStrategy": "fromEnvironment",
"python.testing.pytestEnabled": true,
"pylint.importStrategy": "fromEnvironment",
"python.linting.lintOnSave": true,
}
}

0 comments on commit 72dca99

Please sign in to comment.